/* static/css/style.css */

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

@layer components {
    .glass-nav {
        @apply bg-white/70 dark:bg-antigravity-800/60 backdrop-blur-md border-b border-white/20 dark:border-white/10;
    }
    
    .glass-card {
        @apply relative bg-white/60 dark:bg-antigravity-800/40 backdrop-blur-xl border border-white/40 dark:border-white/10 shadow-[0_8px_32px_0_rgba(0,0,0,0.05)] dark:shadow-[0_8px_32px_0_rgba(0,0,0,0.3)] overflow-hidden transition-all duration-500;
    }
    
    .glass-card::before {
        content: '';
        @apply absolute inset-0 opacity-0 transition-opacity duration-500 pointer-events-none;
        background: linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0) 100%);
        transform: translateX(-100%);
    }

    .glass-card:hover::before {
        @apply opacity-100;
        transform: translateX(100%);
        transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .glass-card-glow:hover {
        box-shadow: 0 0 25px 0 rgba(0, 242, 254, 0.3), inset 0 0 10px 0 rgba(254, 9, 121, 0.2);
        @apply border-antigravity-accent/50;
    }

    .btn-primary {
        @apply inline-flex items-center px-6 py-3 rounded-xl font-semibold text-white bg-gradient-to-r from-antigravity-accent to-blue-600 hover:from-blue-500 hover:to-purple-600 shadow-lg shadow-antigravity-accent/30 hover:shadow-antigravity-accent/50 transition-all duration-300;
    }

    .btn-outline {
        @apply inline-flex items-center px-6 py-3 rounded-xl font-semibold border-2 border-antigravity-accent text-antigravity-accent hover:bg-antigravity-accent hover:text-antigravity-900 transition-all duration-300;
    }

    .nav-link {
        @apply relative font-medium text-slate-600 dark:text-slate-300 hover:text-antigravity-accent dark:hover:text-antigravity-accent transition-colors;
    }

    .nav-link::after {
        content: '';
        @apply absolute -bottom-1 left-0 w-0 h-0.5 bg-antigravity-accent transition-all duration-300;
    }

    .nav-link:hover::after {
        @apply w-full;
    }
}

/* Antigravity floating animation */
.hover-lift {
    @apply transition-transform duration-300 hover:-translate-y-2;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00f2fe;
    border-bottom-color: #fe0979;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: #00f2fe;
    border-right-color: #fe0979;
    animation: spin 0.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background Stars */
.stars-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.3;
}

.dark .stars-bg {
    opacity: 0.5;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

/* Animations */
.animate-pulse-slow {
    animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    @apply bg-transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    @apply bg-slate-300 dark:bg-slate-700 rounded-full;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    @apply bg-antigravity-accent;
}
