/* 
   KahveKader Custom CSS 
   Contains specific animations and glassmorphism utilities that complement Tailwind.
*/

:root {
    --brand-glow: rgba(139, 92, 246, 0.4);
}

/* Glassmorphism Utilities */
.glass-header {
    background: linear-gradient(to bottom, rgba(15, 9, 26, 0.8), rgba(15, 9, 26, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Custom Buttons */
.btn-brand {
    background-color: var(--brand-color, #8B5CF6);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-brand:hover {
    box-shadow: 0 0 20px var(--brand-glow);
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.brand-glow {
    background-color: var(--brand-color, #8B5CF6);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

@keyframes pulseSlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }

    50% {
        opacity: .7;
        transform: scale(0.95);
        filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.1));
    }
}

.animate-pulse-slow {
    animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- EXOTIC THEME ADDITIONS --- */

.gold-gradient-text {
    background: linear-gradient(135deg, var(--secondary-color, #EAB308) 0%, #FEF08A 50%, var(--secondary-color, #CA8A04) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
}

.gold-border {
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.gold-border:hover {
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
}

/* Mystic Smoke / Nebula Effect */
@keyframes exoticSmoke {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    33% {
        transform: scale(1.2) translate(30px, -50px) rotate(10deg);
        opacity: 0.5;
    }

    66% {
        transform: scale(0.8) translate(-20px, 20px) rotate(-5deg);
        opacity: 0.2;
    }

    100% {
        transform: scale(1) translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
}

.animate-exotic-smoke {
    animation: exoticSmoke 25s ease-in-out infinite alternate;
}

/* Floating Runes (Background esoteric objects) */
@keyframes floatRune {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) rotate(45deg);
        opacity: 0;
    }
}

.rune-float {
    animation: floatRune 15s linear infinite;
    color: var(--secondary-color, #D4AF37);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* FAQ Accordion Transition */
.accordion-content {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* Arbitrary large number */
    opacity: 1;
    padding-bottom: 1.5rem;
}

.accordion-item .fa-chevron-down {
    transition: transform 0.4s ease;
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}