@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Exact variables from gclass-brand.html */
  --bg-base: #14161A;
  --bg-panel: #1B1E22;
  --bg-panel-2: #20242A;
  --teal: #4E9C8F;
  --teal-bright: #69B8AB;
  --clay: #C97C63;
  --grid-line: rgba(78,156,143,0.08);
  --text-hi: #F1ECE2;
  --text-mid: #A9AFAE;
  --text-low: #6C7370;
  
  /* Brand warning yellow */
  --brand-yellow: #E3B341;
  
  /* Neon glow helper variables */
  --neon-pink: #FF007F;
  --neon-cyan: #00F3FF;
  --neon-pink-glow: rgba(255, 0, 127, 0.45);
  --neon-cyan-glow: rgba(0, 243, 255, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.015) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(0,0,0,0.15) 2px, transparent 2px);
  background-size: 20px 20px, 40px 40px;
  color: var(--text-hi);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* 3D Physical Wall Switch Plate */
.wall-plate {
  width: 340px;
  background-color: var(--bg-panel);
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 30px 40px;
  /* 3D skeuomorphic plate shadows */
  box-shadow: 
    inset 1px 1px 1px rgba(255, 255, 255, 0.08), 
    inset -1px -1px 2px rgba(0, 0, 0, 0.6), 
    inset 0 12px 24px rgba(255, 255, 255, 0.02),
    0 1px 0px rgba(0, 0, 0, 0.9),
    0 10px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255,255,255,0.01);
}

/* Secure Flathead Screws */
.screw {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #4C5056, #0E0F11);
  border-radius: 50%;
  position: absolute;
  box-shadow: 
    inset 0.5px 0.5px 1px rgba(255,255,255,0.2),
    0 1px 2px rgba(0,0,0,0.6);
}

.screw-top {
  top: 16px;
  left: calc(50% - 7px);
}

.screw-bottom {
  bottom: 16px;
  left: calc(50% - 7px);
}

.screw::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 2px;
  width: 10px;
  height: 1.8px;
  background-color: #050607;
  transform: rotate(45deg);
}

/* Embossed Dymo Label Maker Tape */
.dymo-label {
  background-color: #0C0D0F;
  border-left: 2px solid #000;
  border-top: 1px solid #1A1C20;
  border-bottom: 2.5px solid #000;
  padding: 6px 14px;
  border-radius: 3px;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.05),
    1px 2px 4px rgba(0,0,0,0.4);
  margin-bottom: 18px;
  user-select: none;
}

.dymo-text {
  font-family: 'Space Grotesk', sans-serif; /* Retained Space Grotesk 700 display rules */
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-hi);
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.8), 0px -0.5px 0px rgba(255, 255, 255, 0.4);
}

/* Plate printed description (using exact .t-body rules from brand direction) */
.plate-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px; /* Exact size from .t-body / .sub in brand HTML */
  color: var(--brand-yellow);
  text-align: center;
  max-width: 90%;
  margin-bottom: 24px;
  line-height: 1.45;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Recessed Input Well */
.input-well {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

/* Label uses exact .label monospace rules from brand direction */
.plate-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; /* Exact size from .label in brand HTML */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em; /* Exact spacing from .label in brand HTML */
  color: var(--text-hi); /* Custom white override from user */
  margin-bottom: 6px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  display: block;
  text-align: left;
  width: 100%;
}

/* Input field uses .t-mono / utility fonts */
.plate-input {
  width: 100%;
  padding: 12px 14px;
  background-color: #0D0E10;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; /* T-mono style scaling */
  color: var(--text-hi);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.9);
  outline: none;
  transition: all 0.3s ease;
}

.plate-input::placeholder {
  color: var(--text-low);
}

.plate-input:focus {
  border-color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px var(--neon-cyan-glow);
  color: var(--neon-cyan);
}

/* 3D Recessed Well (Inner Button Slot) */
.button-well {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background-color: #0C0D0F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 3px 3px 6px rgba(0, 0, 0, 0.95), 
    inset -1px -1px 2px rgba(255, 255, 255, 0.03),
    0 1px 0px rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
  position: relative;
}

/* The 3D Push Button */
.physical-button {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 1px solid #121316;
  background: radial-gradient(circle at 35% 35%, #35383F 0%, #1D1E22 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.12),
    inset 0 -3px 4px rgba(0, 0, 0, 0.65),
    0 8px 16px rgba(0, 0, 0, 0.7);
  color: var(--teal);
  position: relative;
  z-index: 2;
}

.physical-button:hover {
  background: radial-gradient(circle at 35% 35%, #3E414A 0%, #202227 100%);
}

/* Pressed State */
.wall-plate[data-state="recording"] .physical-button {
  transform: translateY(3px);
  background: radial-gradient(circle at 35% 35%, #151619 0%, #0C0D0F 100%);
  box-shadow: 
    inset 0 4px 6px rgba(0, 0, 0, 0.85),
    inset 0 -1px 2px rgba(255, 255, 255, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.4);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.classic-phone-svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin="round";
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: all 0.3s;
}

.wall-plate[data-state="recording"] .classic-phone-svg {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
  animation: softPulseHandset 1.8s infinite alternate ease-in-out;
}

@keyframes softPulseHandset {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

/* Concentric Sound Waves (Neon Pink) */
.wave-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.wall-plate[data-state="recording"] .wave-ring-1 {
  animation: physicalRipple 1.8s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wall-plate[data-state="recording"] .wave-ring-2 {
  animation: physicalRipple 1.8s infinite cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s;
}

.wall-plate[data-state="recording"] .wave-ring-3 {
  animation: physicalRipple 1.8s infinite cubic-bezier(0.165, 0.84, 0.44, 1) 1.2s;
}

@keyframes physicalRipple {
  0% {
    width: 126px;
    height: 126px;
    opacity: 0.85;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink), inset 0 0 5px var(--neon-pink-glow);
  }
  100% {
    width: 175px;
    height: 175px;
    opacity: 0;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0);
  }
}

/* Circular Progress fill ring */
.progress-ring-svg {
  position: absolute;
  top: -4px; left: -4px;
  width: 160px; height: 160px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 3px;
}

.progress-fill {
  fill: none;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s, filter 0.3s;
}

.wall-plate[data-state="recording"] .progress-fill {
  stroke: var(--neon-cyan);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.wall-plate[data-state="recorded"] .progress-fill {
  stroke: var(--teal);
  filter: none;
}

/* LED Indicator Panel (using monospace brand rules) */
.led-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.led-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0E0F11;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.85);
  transition: all 0.3s;
}

/* LED label inherits brand .label monospace styles */
.led-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; /* Matching brand .label */
  letter-spacing: .14em; /* Matching brand .label */
  text-transform: uppercase;
  color: var(--text-hi); /* Custom white override from user */
  font-weight: 500;
}

/* Active LED state */
.wall-plate[data-state="recording"] .led-indicator {
  background-color: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink), inset 0 1px 1px rgba(255,255,255,0.6);
  animation: flashLed 0.8s infinite alternate ease-in-out;
}

.wall-plate[data-state="recording"] .led-label {
  color: var(--neon-pink);
  text-shadow: 0 0 6px var(--neon-pink-glow);
}

@keyframes flashLed {
  0% { opacity: 0.5; box-shadow: 0 0 4px var(--neon-pink-glow); }
  100% { opacity: 1; box-shadow: 0 0 12px var(--neon-pink), inset 0 1px 1px rgba(255,255,255,0.6); }
}

/* Orbiting Satellites */
.satellite-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-panel-2);
  border: 1px solid #141518;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hi);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translate(0, 0) scale(0.5);
  pointer-events: none;
  box-shadow: 
    inset 0 1px 1px rgba(255,255,255,0.05),
    0 4px 8px rgba(0,0,0,0.5);
}

.satellite-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.satellite-btn:hover {
  transform: scale(1.1) !important;
}

.sat-delete {
  color: var(--clay);
  border-color: rgba(201, 124, 99, 0.2);
}
.sat-delete:hover {
  background-color: rgba(201, 124, 99, 0.1);
  border-color: var(--clay);
}

.sat-submit {
  color: var(--teal-bright);
  border-color: rgba(105, 184, 171, 0.2);
}
.sat-submit:hover {
  background-color: rgba(105, 184, 171, 0.1);
  border-color: var(--teal-bright);
}

.wall-plate[data-state="recorded"] .sat-delete {
  opacity: 1;
  transform: translate(-105px, 0px) scale(1);
  pointer-events: auto;
}

.wall-plate[data-state="recorded"] .sat-submit {
  opacity: 1;
  transform: translate(105px, 0px) scale(1);
  pointer-events: auto;
}

/* Disclaimer row (keeps Inter body font rules) */
.disclaimer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--brand-yellow);
  margin-top: 36px;
  cursor: pointer;
  width: 100%;
  user-select: none;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 24px;
}

.disclaimer-row input[type="checkbox"] {
  margin-top: 4px;
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

/* Recessed Transcript styling */
.transcript-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

.led-label-mini {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
  transition: all 0.3s ease;
}

.led-label-mini.listening {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.transcript-textarea {
  resize: none;
  height: 80px;
  line-height: 1.5;
  font-size: 12.5px;
}
