@import url("./youtube-studio.css?v=v14_mobile_app_shell");

:root {
  /* Executive Dark Tech - Apple Music Overhaul */
  --bg-deep: #0a0a0c;
  --bg-surface: #121216;
  --bg-elevated: #1a1a20;
  
  --accent: #00f2ff; /* Electric Cyan */
  --accent-glow: rgba(0, 242, 255, 0.4);
  --accent-soft: rgba(0, 242, 255, 0.1);
  
  --red: #ff3e3e;
  --red-soft: rgba(255, 62, 62, 0.12);
  --green: #00ffa3;
  --green-soft: rgba(0, 255, 163, 0.12);
  
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  
  --ink: #ffffff;
  --muted: #80808a;
  --muted-strong: #b0b0ba;

  --radius-lg: 16px; /* Industrial Sharpness */
  --radius-md: 12px;
  --radius-sm: 8px;
}

html,
body {
  background:
    radial-gradient(circle at 5% 5%, rgba(0, 242, 255, 0.08), transparent 25%),
    radial-gradient(circle at 95% 5%, rgba(126, 87, 255, 0.05), transparent 20%),
    var(--bg-deep);
  background-attachment: fixed;
}

.topbar {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.topbar:hover {
  box-shadow: 0 48px 100px rgba(0, 0, 0, 0.72), 0 0 30px rgba(0, 242, 255, 0.05);
}

.topbar::after {
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent);
  height: 2px;
}

.action {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 255, 0.3);
  background: linear-gradient(135deg, #00d1ff, #0080ff);
  box-shadow: 0 8px 20px rgba(0, 128, 255, 0.2);
  color: #000814;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 128, 255, 0.3), 0 0 15px rgba(0, 242, 255, 0.2);
  border-color: var(--accent);
}

.action.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.select-input {
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
}

.select-input:hover,
.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.05);
}

.system-card,
.summary-chip,
.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.workflow-step {
  border: 1px dashed rgba(0, 242, 255, 0.2);
  background: rgba(0, 242, 255, 0.02);
  border-radius: var(--radius-lg);
}

.geo-shell,
.audience-shell {
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 242, 255, 0.05), transparent 40%),
    rgba(18, 18, 22, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.geo-silhouette {
  fill: rgba(255, 255, 255, 0.02);
  stroke: rgba(255, 255, 255, 0.04);
}

.geo-ring.country {
  fill: rgba(0, 242, 255, 0.05);
  stroke: rgba(0, 242, 255, 0.15);
}

.geo-dot.country {
  fill: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent));
}

.audience-fill.gender {
  background: linear-gradient(90deg, #00f2ff, #0080ff);
}

.audience-fill.age {
  background: linear-gradient(90deg, #7e57ff, #00f2ff);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 5% 5%, rgba(14, 165, 233, 0.08), transparent 24%),
    radial-gradient(circle at 95% 5%, rgba(59, 130, 246, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fbfd 0%, #edf3f7 100%);
}

html[data-theme="light"] .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="light"] .select-input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--ink);
}

html[data-theme="light"] .select-input:hover,
html[data-theme="light"] .select-input:focus {
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.05);
}

html[data-theme="light"] .system-card,
html[data-theme="light"] .summary-chip,
html[data-theme="light"] .audience-card,
html[data-theme="light"] .workflow-step,
html[data-theme="light"] .geo-shell,
html[data-theme="light"] .audience-shell {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .workflow-step {
  background: rgba(14, 165, 233, 0.04);
  border-style: dashed;
}

html[data-theme="light"] .geo-silhouette {
  fill: rgba(15, 23, 42, 0.04);
  stroke: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .geo-ring.country {
  fill: rgba(14, 165, 233, 0.06);
  stroke: rgba(14, 165, 233, 0.16);
}

@media (max-width: 1100px) {
  .control-grid {
    grid-template-columns: 1fr;
  }
  .geo-legend {
    grid-template-columns: 1fr;
  }
  .audience-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .control-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .select-input {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .action,
  .action.ghost {
    width: 100%;
    min-height: 48px;
  }

  .system-card,
  .summary-chip,
  .audience-card {
    padding: 18px;
  }

  .workflow-step {
    padding: 16px;
  }

  .geo-shell,
  .audience-shell {
    padding: 18px;
  }

  .geo-legend {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .system-card,
  .summary-chip,
  .audience-card {
    padding: 14px;
    border-radius: 14px;
  }

  .workflow-step {
    padding: 14px;
    border-radius: 14px;
  }

  .geo-shell,
  .audience-shell {
    padding: 14px;
    border-radius: 14px;
  }

  .audience-row {
    gap: 12px;
  }
}
