@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
      /* DEFAULT THEME: Light Blue */
      --bg-primary: #FFFFFF;
      --bg-secondary: #F8FAFC;
      --text-primary: #0F172A;
      --text-secondary: #64748B;
      --accent: #3B82F6;
      --accent-hover: #2563EB;
      --border-color: #E2E8F0;
      --glass-bg: rgba(255, 255, 255, 0.8);
      --shadow-color: rgba(0, 0, 0, 0.05);
      --card-shadow: inset 2px 2px 4px rgba(255,255,255,0.8), inset -2px -2px 8px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.05);
      --btn-text: #ffffff;
      --aurora-1: rgba(186, 230, 253, 0.4);
      --aurora-2: rgba(191, 219, 254, 0.4);
  }

  [data-theme="dark-purple"] {
      /* THEME 2: Dark Purple */
      --bg-primary: #000000;
      --bg-secondary: #0A0A0A;
      --text-primary: #F8FAFC;
      --text-secondary: #94A3B8;
      --accent: #A855F7;
      --accent-hover: #9333EA;
      --border-color: #1E293B;
      --glass-bg: rgba(0, 0, 0, 0.7);
      --shadow-color: rgba(168, 85, 247, 0.15);
      --card-shadow: inset 2px 2px 4px rgba(255,255,255,0.03), inset -2px -2px 8px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
      --btn-text: #ffffff;
      --aurora-1: rgba(168, 85, 247, 0.15);
      --aurora-2: rgba(192, 132, 252, 0.15);
  }

  [data-theme="light-pink"] {
      /* THEME 3: Light Pink */
      --bg-primary: #FFF1F2;
      --bg-secondary: #FFFFFF;
      --text-primary: #3F3F46;
      --text-secondary: #71717A;
      --accent: #F43F5E;
      --accent-hover: #E11D48;
      --border-color: #FFE4E6;
      --glass-bg: rgba(255, 241, 242, 0.8);
      --shadow-color: rgba(244, 63, 94, 0.1);
      --card-shadow: inset 2px 2px 4px rgba(255,255,255,1), inset -2px -2px 8px rgba(244,63,94,0.05), 0 10px 30px rgba(244,63,94,0.05);
      --btn-text: #ffffff;
      --aurora-1: rgba(254, 205, 211, 0.5);
      --aurora-2: rgba(253, 164, 175, 0.5);
  }
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom styles */

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-bg::before, .aurora-bg::after {
    content: "";
    position: absolute;
    width: 80vw;
    height: 80vh;
    border-radius: 50%;
    filter: blur(100px);
    animation: aurora-move 20s infinite alternate ease-in-out;
    transition: background 0.5s ease;
}

.aurora-bg::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--aurora-1) 0%, rgba(0,0,0,0) 70%);
}

.aurora-bg::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--aurora-2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes aurora-move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.clay-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.4s ease;
}

.clay-card:hover {
    transform: translateY(-5px);
}

.shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--border-color);
}

.shimmer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
    content: '';
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}
.animate-float-slow {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Background Panning/Zooming Animations */
@keyframes pan-slow {
    0% { transform: scale(1.1) translateX(-2%); }
    50% { transform: scale(1.2) translateX(2%); }
    100% { transform: scale(1.1) translateX(-2%); }
}
.animate-pan-bg {
    animation: pan-slow 40s ease-in-out infinite;
}

@keyframes zoom-pan {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-3%); }
    100% { transform: scale(1) translateY(0); }
}
.animate-zoom-pan {
    animation: zoom-pan 30s ease-in-out infinite;
}

/* Marquee / Ticker Tape */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Subtle dot pattern */
.bg-dots {
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Hides scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.dynamic-island { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.island-expanded { width: 300px !important; height: 60px !important; border-radius: 30px !important; }

.mega-menu { opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; }
.mega-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.bottom-sheet { transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.bottom-sheet.open { transform: translateY(0); }

.parallax-section { position: relative; overflow: hidden; }
