/* ==========================================================================
   MonicaCraft - Professional UI Animations & Micro-Interactions (FAZ 9 & FAZ 12)
   Clean, Tasteful Transitions Without Flashing Neon Glare
   ========================================================================== */

:root {
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Entry Smooth Fade-In */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in,
.page-wrapper {
    animation: pageEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar active indicator subtle animation */
@media (min-width: 768px) {
    .navbar .nav-item.active::after {
        animation: navEnter 0.2s ease-out;
    }

    @keyframes navEnter {
        from {
            transform: scaleX(0.5);
            opacity: 0;
        }
        to {
            transform: scaleX(1);
            opacity: 1;
        }
    }
}

/* VIP Card Tiers - Professional Subtle Borders & Accents (FAZ 5) */
.vip-card {
    position: relative;
    border-radius: 0.65rem;
    background: var(--mc-bg-card, #161D27);
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--mc-border, #303948);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vip-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #0B0F14;
}

.vip-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.vip-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

/* VIP 1: Clean Starter Tier */
.vip-card-1 {
    border-top: 3px solid #8B5CF6 !important;
}
.vip-card-1:hover {
    transform: translateY(-4px);
    border-color: #8B5CF6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* VIP 2: Advanced Blue Accent */
.vip-card-2 {
    border-top: 3px solid #3B82F6 !important;
}
.vip-card-2:hover {
    transform: translateY(-4px);
    border-color: #3B82F6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* VIP 3: Cyan Elite Accent */
.vip-card-3 {
    border-top: 3px solid #06B6D4 !important;
}
.vip-card-3:hover {
    transform: translateY(-4px);
    border-color: #06B6D4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* VIP 4: Green Master Tier */
.vip-card-4 {
    border-top: 3px solid #10B981 !important;
}
.vip-card-4:hover {
    transform: translateY(-4px);
    border-color: #10B981;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}

/* VIP 5: Golden Champion Tier */
.vip-card-5 {
    border-top: 3px solid #EAB308 !important;
}
.vip-card-5:hover {
    transform: translateY(-4px);
    border-color: #EAB308;
    box-shadow: 0 10px 24px rgba(234, 179, 8, 0.3);
}

/* VIP 6: Mythic Crown Tier */
.vip-card-6 {
    border-top: 3px solid #F43F5E !important;
}
.vip-card-6 .vip-crown-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #F43F5E, #A855F7);
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}
.vip-card-6:hover {
    transform: translateY(-4px);
    border-color: #F43F5E;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.4);
}

/* VIP Sponsor: Ultimate Golden Mythic Tier */
.vip-card-sponsor {
    border-top: 3px solid #FFD700 !important;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.08), rgba(20, 16, 38, 0.95)) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}
.vip-card-sponsor .vip-crown-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #A855F7 100%);
    color: #000000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.vip-card-sponsor:hover {
    transform: translateY(-5px);
    border-color: #FFD700 !important;
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.35);
}

/* VIP Perk Badges */
.vip-perk-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--mc-text-secondary, #A4ADBA);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* Stagger card entry */
.stagger-card {
    opacity: 0;
    animation: cardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.stagger-card:nth-child(1) { animation-delay: 0.02s; }
.stagger-card:nth-child(2) { animation-delay: 0.05s; }
.stagger-card:nth-child(3) { animation-delay: 0.08s; }
.stagger-card:nth-child(4) { animation-delay: 0.11s; }
.stagger-card:nth-child(5) { animation-delay: 0.14s; }
.stagger-card:nth-child(6) { animation-delay: 0.17s; }

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }
}
