/* Custom Animations and Styles */

/* ===== THEME SYSTEM ===== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #030712;
    --bg-secondary: #111827;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-from: #581c87;
    --gradient-via: #030712;
    --gradient-to: #1e3a8a;
}

.light-theme {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.15);
    --gradient-from: #f9fafb;
    --gradient-via: #ffffff;
    --gradient-to: #f3f4f6;
}

/* Apply theme colors */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.light-theme .bg-gray-950 {
    background-color: var(--bg-primary) !important;
}

.light-theme .text-white {
    color: var(--text-primary) !important;
}

.light-theme .text-gray-300 {
    color: var(--text-secondary) !important;
}

.light-theme .text-gray-400 {
    color: var(--text-tertiary) !important;
}

.light-theme .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.light-theme .border-white\/15 {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Light theme background gradient */
.light-theme .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f9fafb, #ffffff, #f3f4f6) !important;
}

/* Light theme body background */
.light-theme body {
    background: linear-gradient(to bottom right, #f9fafb, #ffffff, #f3f4f6) !important;
}

/* Light theme glass effects */
.light-theme .glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .glass-strong {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Light theme floating orbs - HIDE THEM */
.light-theme .bg-purple-500\/10,
.light-theme .bg-blue-500\/10 {
    display: none !important;
}

/* Light theme navigation */
.light-theme nav {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Light theme navigation links */
.light-theme .nav-link {
    color: #4b5563 !important;
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
    color: #111827 !important;
}

/* Light theme logo text */
.light-theme .bg-gradient-to-r.from-purple-400.to-blue-400 {
    background: linear-gradient(to right, #8B5CF6, #06B6D4) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

/* Light theme hover effects */
.light-theme .hover\:bg-white\/10:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light theme buttons */
.light-theme .glass.rounded-xl {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

.light-theme .glass.rounded-xl:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Light theme bot card banners */
.light-theme .bot-card .bg-gradient-to-t {
    background: linear-gradient(to top, #ffffff, transparent) !important;
}

/* Light theme footer */
.light-theme footer {
    background-color: rgba(249, 250, 251, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Light theme scrollbar */
.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6, #06B6D4);
}

/* ===== END THEME SYSTEM ===== */


/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelayed {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6, #06B6D4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9F7AEA, #0EA5E9);
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: rgba(255, 255, 255, 1);
}

/* Bot Card Hover Effects */
.bot-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bot-card:hover {
    transform: translateY(-8px);
}

.bot-card:hover::before {
    opacity: 1;
}

/* Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Gradient Borders */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid transparent;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    -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.5;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Fade In On Scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .bot-card:hover {
        transform: translateY(-4px);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}