/* ═══════════════════════════════════════════════════
   AI Studio — Main Stylesheet (WOW Edition)
   Glassmorphism + Dark Theme + Amber Glow
   ═══════════════════════════════════════════════════ */

:root {
  --bg-deep: #060608;
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f15;
  --bg-card: rgba(20, 20, 30, 0.6);
  --bg-card-solid: #14141e;
  --bg-card-hover: rgba(28, 28, 42, 0.7);
  --bg-card-active: rgba(245, 158, 11, 0.06);
  --bg-input: rgba(15, 15, 22, 0.8);
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --bg-glass: rgba(20, 20, 30, 0.4);

  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --accent-dark: #D97706;
  --accent-glow-1: rgba(245, 158, 11, 0.25);
  --accent-glow-2: rgba(245, 158, 11, 0.12);
  --accent-glow-3: rgba(245, 158, 11, 0.05);

  --text-primary: #e8e8ed;
  --text-secondary: #a0a0b0;
  --text-muted: #606078;
  --text-on-accent: #0a0a0f;

  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #F59E0B;
  --error: #EF4444;
  --error-glow: rgba(239, 68, 68, 0.2);
  --info: #60A5FA;

  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(245, 158, 11, 0.2);

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.1);
  --shadow-glow-strong: 0 0 60px rgba(245, 158, 11, 0.2);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

/* ── Animated Background Particles ── */
.bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.05; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Ambient glow orbs ── */
body::before {
  content: ''; position: fixed; top: -300px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.04) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
body::after {
  content: ''; position: fixed; bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.03) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}

/* Typography */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
a { color: var(--accent-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }

code, pre, .prompt-area { font-family: var(--font-mono); font-size: 0.9rem; }

::selection { background: rgba(245,158,11,0.3); color: white; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── App Layout ── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.logo-accent { color: var(--accent); }
.header__nav { display: flex; gap: 4px; align-items: center; }

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition-fast); position: relative;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link.active {
  color: var(--accent); background: rgba(245,158,11,0.08);
  box-shadow: 0 0 20px rgba(245,158,11,0.05);
}

.app-content {
  flex: 1; position: relative; z-index: 1;
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 32px 24px;
}

.app-footer {
  position: relative; z-index: 1;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer__right { display: flex; align-items: center; gap: 6px; }
.cost-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow-1);
}

/* Responsive */
@media (max-width: 768px) {
  .header__inner { padding: 8px 12px; }
  .header__nav { gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 0.8rem; }
  .nav-link svg { width: 14px; height: 14px; }
  .app-content { padding: 16px 12px; }
  h1 { font-size: 1.75rem; }
}
