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

/* OLED Base & Core Defaults */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --text-primary: #000000;
    --text-secondary: #86868B;
    --accent: #00449E;
}

.dark {
    --bg-primary: #000000;      /* True OLED Black */
    --bg-secondary: #09090b;    /* Deep Slate */
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --accent: #00449E;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

/* Typography Enhancements for Spatial UI */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.04em;
}

/* Floating Navigation (Glassmorphism) */
.glass-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.dark .glass-pill {
    background: rgba(20, 20, 20, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Dynamic Island (Mobile Alerts) */
.dynamic-island {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: black;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.dark .dynamic-island {
    background: #1c1c1e;
    border: 1px solid #333;
}

/* Aurora UI / Mesh Gradient */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background: var(--bg-primary);
    overflow: hidden;
}

.aurora-bg::before, .aurora-bg::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.aurora-bg::before {
    background: radial-gradient(circle, rgba(0, 68, 158, 0.3) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.aurora-bg::after {
    background: radial-gradient(circle, rgba(100, 150, 255, 0.1) 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -10s;
}

.dark .aurora-bg::before {
    background: radial-gradient(circle, rgba(0, 68, 158, 0.15) 0%, transparent 70%);
}

.dark .aurora-bg::after {
    background: radial-gradient(circle, rgba(20, 40, 80, 0.15) 0%, transparent 70%);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Claymorphism (Soft Inner Shadows) */
.clay-card {
    background: var(--bg-secondary);
    border-radius: 32px;
    box-shadow: 
        10px 10px 30px rgba(0, 0, 0, 0.05),
        -10px -10px 30px rgba(255, 255, 255, 0.8),
        inset 2px 2px 5px rgba(255, 255, 255, 0.5),
        inset -3px -3px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dark .clay-card {
    background: #0f0f11;
    box-shadow: 
        10px 10px 30px rgba(0, 0, 0, 0.8),
        -5px -5px 15px rgba(255, 255, 255, 0.03),
        inset 1px 1px 2px rgba(255, 255, 255, 0.05),
        inset -2px -2px 4px rgba(0, 0, 0, 0.4);
}

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

/* Neumorphism (Tags & Buttons) */
.neu-tag {
    background: var(--bg-secondary);
    border-radius: 999px;
    box-shadow: 
        4px 4px 10px rgba(0, 0, 0, 0.06),
        -4px -4px 10px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.dark .neu-tag {
    background: #18181b;
    box-shadow: 
        4px 4px 10px rgba(0, 0, 0, 0.5),
        -2px -2px 5px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.02);
}

/* Shimmer Loading State */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.dark .shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Parallax Container */
.parallax-wrapper {
    perspective: 1px;
    transform-style: preserve-3d;
}

/* Stepper UI */
.stepper-line {
    transition: width 0.4s ease;
}

/* Logo blend modes */
.brand-logo {
    mix-blend-mode: multiply;
}
.dark .brand-logo {
    mix-blend-mode: screen;
}


