/* ===================================
   AURORA UI - PREMIUM GRADIENTS
   Enhanced design system for AI Chat Pro
   =================================== */

/* Import base design system */
@import url('design-system.css');

:root {
    /* === AURORA GRADIENT SYSTEM === */

    /* Primary Aurora - Blue to Purple */
    --gradient-aurora-primary: linear-gradient(135deg,
            #0080FF 0%,
            /* Electric Blue */
            #2563EB 25%,
            /* Primary Blue */
            #6366F1 50%,
            /* Indigo */
            #8B5CF6 75%,
            /* Purple */
            #A855F7 100%
            /* Bright Purple */
        );

    /* Accent Aurora - Gold to Orange */
    --gradient-aurora-accent: linear-gradient(135deg,
            #D4AF37 0%,
            /* Gold */
            #FFD700 25%,
            /* Bright Gold */
            #FFA500 50%,
            /* Orange */
            #FF8C00 75%,
            /* Dark Orange */
            #D4AF37 100%
            /* Back to Gold */
        );

    /* Hero Background - Animated Aurora */
    --gradient-aurora-hero: radial-gradient(circle at 20% 30%,
            rgba(0, 128, 255, 0.25) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 70%,
            rgba(212, 175, 55, 0.15) 0%,
            transparent 50%),
        linear-gradient(135deg, #0A0A0F 0%, #1A0B2E 100%);

    /* Mesh Gradient for Cards */
    --gradient-mesh-blue:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);

    --gradient-mesh-gold:
        radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 215, 0, 0.08) 0px, transparent 50%);

    /* === UPDATED TYPOGRAPHY === */
    --font-heading: 'Poppins', 'Be Vietnam Pro', sans-serif;
    --font-body: 'Open Sans', 'Be Vietnam Pro', sans-serif;

    /* === ENHANCED GLASSMORPHISM === */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px) saturate(180%);

    /* === AURORA SHADOWS === */
    --shadow-aurora-blue: 0 20px 60px rgba(37, 99, 235, 0.3);
    --shadow-aurora-gold: 0 20px 60px rgba(212, 175, 55, 0.3);
    --shadow-aurora-purple: 0 20px 60px rgba(139, 92, 246, 0.3);
}

/* === TYPOGRAPHY OVERRIDES === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body,
p,
li,
a,
input,
button {
    font-family: var(--font-body);
}

/* === ENHANCED GLASS CARDS === */
.glass-card-enhanced {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Gradient Border Effect */
.glass-card-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-aurora-primary);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card-enhanced:hover::before {
    opacity: 0.6;
}

/* Mesh Gradient Overlay */
.glass-card-enhanced::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh-blue);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card-enhanced:hover::after {
    opacity: 1;
}

/* === ANIMATED GRADIENTS === */
.gradient-text-animated {
    background: var(--gradient-aurora-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* === AURORA ORBS === */
.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-aurora 20s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float-aurora {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 40px) scale(0.9);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* Special case for orb-3 to maintain center */
.orb-3 {
    animation-name: float-aurora-center;
}

@keyframes float-aurora-center {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    25% {
        transform: translate(calc(-50% + 50px), calc(-50% - 30px)) scale(1.1);
    }

    50% {
        transform: translate(calc(-50% - 30px), calc(-50% + 40px)) scale(0.9);
    }

    75% {
        transform: translate(calc(-50% + 40px), calc(-50% + 30px)) scale(1.05);
    }
}

/* === PREMIUM BUTTON EFFECTS === */
.btn-aurora {
    position: relative;
    background: var(--gradient-aurora-primary);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn-aurora::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-aurora-primary);
    border-radius: inherit;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-aurora:hover::before {
    opacity: 0.8;
}

.btn-aurora:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-aurora-blue);
}

/* === SCROLL ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-in-up:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in-up:nth-child(5) {
    transition-delay: 0.5s;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

    .aurora-orb,
    .gradient-text-animated,
    .btn-aurora::before {
        animation: none !important;
    }

    .fade-in-up {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .aurora-orb {
        filter: blur(60px);
        opacity: 0.4;
    }

    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
    }

    .orb-3 {
        width: 300px;
        height: 300px;
    }
}