/**
 * public/css/tools/mouse-click-test.css
 * Mouse Click Test Tool Styles — Game Boy Retro Industrial Style
 */

/* ─── Control Bar ─── */
.mct-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.mct-duration {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  min-width: 80px;
}

/* ─── Click Area ─── */
.mct-click-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: rgb(239, 236, 233);
  border: 1px solid #b3afab;
  border-radius: 10px;
  box-shadow: 3px 3px 6px rgba(82, 87, 99, 0.15), -2px -2px 4px rgba(248, 246, 242, 0.6);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.mct-click-area.mct-active {
  cursor: pointer;
  background: rgb(245, 242, 237);
  box-shadow: 3px 3px 6px rgba(82, 87, 99, 0.15), -2px -2px 4px rgba(248, 246, 242, 0.6), 0 0 30px rgba(148, 181, 79, 0.2);
  border-color: var(--screen-green, #94b54f);
}

/* ─── Timer Ring ─── */
.mct-timer-ring {
  position: relative;
  width: 140px;
  height: 140px;
}
.mct-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mct-timer-bg {
  fill: none;
  stroke: #e0ddd5;
  stroke-width: 6;
}
.mct-timer-progress {
  fill: none;
  stroke: var(--screen-green, #94b54f);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.mct-timer-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mct-timer-value {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--screen-green, #94b54f);
  line-height: 1;
}
.mct-timer-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #747276;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── CPS Stats ─── */
.mct-stats-grid {
  display: flex;
  gap: 16px;
}
.mct-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(230, 227, 222, 0.4);
  border: 1px solid rgba(149, 146, 146, 0.25);
  border-radius: 8px;
  padding: 12px 22px;
  min-width: 90px;
}
.mct-stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--screen-green, #94b54f);
}
.mct-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #747276;
  text-transform: uppercase;
}

/* ─── Result Panel ─── */
.mct-final-panel {
  margin-top: 16px;
  padding: 20px;
  text-align: center;
}
.mct-final-panel h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--dpad-500, #2b2f36);
}
.mct-final-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mct-final-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mct-final-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--screen-green, #94b54f);
}
.mct-final-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #747276;
  text-transform: uppercase;
}
.mct-pb-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--fog-200, #ccc8c3);
}
.mct-pb-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-blue, #525ca8);
}
.mct-pb-label span {
  color: var(--screen-dark, #708d3d);
  font-weight: 700;
  font-size: 16px;
}

/* ─── Dark Theme ─── */
[data-theme="dark"] .mct-click-area {
  background: #1a1e1a;
  border-color: #3a3e3a;
}
[data-theme="dark"] .mct-click-area.mct-active {
  background: #1e241e;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(40, 40, 40, 0.3), 0 0 30px rgba(148, 181, 79, 0.2);
}
[data-theme="dark"] .mct-timer-bg { stroke: #2a2e2a; }
[data-theme="dark"] .mct-timer-value { color: var(--screen-green, #94b54f); }
[data-theme="dark"] .mct-timer-unit { color: #5a5e5a; }
[data-theme="dark"] .mct-stat-card {
  background: rgba(30, 35, 30, 0.5);
  border-color: rgba(70, 70, 70, 0.25);
}
[data-theme="dark"] .mct-stat-value { color: var(--screen-green, #94b54f); }
[data-theme="dark"] .mct-stat-label { color: #5a5e5a; }
[data-theme="dark"] .mct-final-panel h3 { color: #aaba7a; }
[data-theme="dark"] .mct-final-value { color: var(--screen-green, #94b54f); }
[data-theme="dark"] .mct-final-label { color: #5a5e5a; }
[data-theme="dark"] .mct-pb-row { border-top-color: #2a2e2a; }
[data-theme="dark"] .mct-pb-label { color: #8a9a6a; }
[data-theme="dark"] .mct-pb-label span { color: var(--screen-green, #94b54f); }

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .mct-timer-ring { width: 110px; height: 110px; }
  .mct-timer-value { font-size: 28px; }
  .mct-stat-card { padding: 10px 16px; min-width: 70px; }
  .mct-stat-value { font-size: 22px; }
  .mct-final-value { font-size: 26px; }
  .mct-pb-row { flex-direction: column; gap: 8px; }
}
