/**
 * Aangan Aura — Core Design System (Orange Theme, Mobile-First)
 */

/* ==========================================
   1. CSS VARIABLES (LIGHT & DARK THEMES)
   ========================================== */
:root {
  /* Light Theme Defaults */
  --primary: #F97316;
  --primary-dark: #EA580C;
  --accent: #FDBA74;
  --gold: #D4A017;
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #78716C;
  --border: #FED7AA;
  
  --logo-angan: #09090B;
  --logo-aura: #EA580C;
  --logo-tagline: #1C1917;
  
  --shadow-sm: 0 2px 8px rgba(249, 115, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(249, 115, 22, 0.08);
  --shadow-lg: 0 16px 36px rgba(249, 115, 22, 0.12);
  --card-glow: 0 10px 25px rgba(249, 115, 22, 0.06);

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-hindi: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

html.dark {
  /* Dark Theme Overrides */
  --primary: #FB923C;
  --primary-dark: #F97316;
  --accent: #7C2D12;
  --gold: #E8B931;
  --bg: #0C0A09;
  --surface: #1C1917;
  --text: #FAFAF9;
  --muted: #A8A29E;
  --border: #292524;

  --logo-angan: #09090B;
  --logo-aura: #EA580C;
  --logo-tagline: #1C1917;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.8);
  --card-glow: 0 0 20px rgba(251, 146, 60, 0.12);
}

}

/* ==========================================
   2. GLOBAL BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip; /* clip prevents horizontal scroll without breaking position: sticky */
}

/* Typography Base */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Tap Target Enforcement */
button, a, input, select {
  min-height: 44px;
  touch-action: manipulation;
}

/* ==========================================
   3. PRIMITIVE COMPONENTS
   ========================================== */

/* 16px Rounded Cards */
.aa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-glow);
  padding: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.aa-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Full-Round Pill Buttons */
.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
}

.aa-btn:active {
  transform: scale(0.96);
}

.aa-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.aa-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  opacity: 0.95;
}

.aa-btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.aa-btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.aa-btn-gold {
  background: linear-gradient(135deg, #F59E0B, var(--gold));
  color: #1C1917;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

/* Badge Component */
.aa-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aa-badge-certified {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.aa-badge-discount {
  background: #EF4444;
  color: #FFFFFF;
}

/* ==========================================
   4. THEME TOGGLE SWITCH
   ========================================== */
.theme-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  width: 52px;
  height: 28px;
  min-height: 28px;
  background: var(--border);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 2px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
}

.theme-toggle-knob {
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

html.dark .theme-toggle-knob {
  transform: translateX(24px);
  background: #1C1917;
}

.theme-toggle-knob svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
}

/* ==========================================
   5. MICRO-ANIMATIONS & SHIMMER
   ========================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Toast Notification Floating */
.aa-toast-container {
  position: fixed;
  bottom: 72px; /* Above mobile bottom bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 380px;
  pointer-events: none;
}

.aa-toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.3s ease;
  pointer-events: auto;
}

/* Mobile responsive fixes */
@media (min-width: 768px) {
  .aa-toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}

/* ==========================================
   6. TICKER MARQUEE & SHOPS SECTIONS
   ========================================== */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Shoppable Reel Video Cards */
.reel-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.reel-card:hover {
  transform: scale(1.03);
}

.reel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #FFFFFF;
}

/* Custom Scrollbar Hide for horizontal sliders */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}


/* ==========================================
   POLICY & CMS PAGES ENHANCED BRIGHT/HIGH CONTRAST TYPOGRAPHY
   ========================================== */
.policy-article {
  color: #1C1917 !important;
}

.policy-article p,
.policy-article li {
  color: #1C1917 !important;
  font-size: 13.5px;
  line-height: 1.7;
}

.policy-article h1,
.policy-article h2,
.policy-article h3,
.policy-article h4 {
  color: #0C0A09 !important;
  font-weight: 700 !important;
}

.policy-article strong,
.policy-article b {
  color: #000000 !important;
  font-weight: 700 !important;
}

.policy-article .text-stone-500,
.policy-article .text-stone-600,
.policy-article .text-stone-700,
.policy-article .text-stone-400 {
  color: #292524 !important;
}
