/* ==========================================================================
   AnupSagar Pro - Core Design System & Tokens
   Ultra-Modern AI Prompt & Video Editing Hub (2026 Edition)
   ========================================================================== */

:root {
  /* Signature Sunset Amber & Flame Brand Colors */
  --primary: #ff5722;
  --primary-hover: #ff7a00;
  --primary-glow: rgba(255, 87, 34, 0.35);
  --primary-rgb: 255, 87, 34;

  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Smooth Transitions & Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------- Dark Theme (Default Signature Look) ----------------- */
[data-theme="dark"], :root {
  --bg-main: #070b14;
  --bg-surface: #0e1626;
  --bg-card: rgba(18, 27, 44, 0.75);
  --bg-card-hover: rgba(26, 38, 62, 0.9);
  --bg-input: #121d30;
  --bg-badge: rgba(255, 87, 34, 0.12);
  --bg-ticker: rgba(14, 22, 38, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070b14;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 87, 34, 0.6);
  --border-glow: rgba(255, 87, 34, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(255, 87, 34, 0.25);

  --glass-blur: blur(16px);
  --glass-bg: rgba(14, 22, 38, 0.82);
}

/* ----------------- Light Theme ----------------- */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;
  --bg-badge: rgba(255, 87, 34, 0.08);
  --bg-ticker: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(255, 87, 34, 0.7);
  --border-glow: rgba(255, 87, 34, 0.35);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 8px 30px rgba(255, 87, 34, 0.18);

  --glass-blur: blur(16px);
  --glass-bg: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   CSS Resets & Global Styles
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle glowing background ambient orbs */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.12) 0%, rgba(245, 158, 11, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.03) 60%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-badge);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a855f7;
  border-color: rgba(139, 92, 246, 0.3);
}
