/* Wedding Enhancements - Premium Styles */

/* --- Active Event Highlight --- */
/* This class will be added by JS when the date matches */
.active-event-card {
    position: relative;
    z-index: 50;
    /* Ensure it floats above others */
    transform: scale(1.05) !important;
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.6),
        /* Gold Glow */
        0 0 60px rgba(190, 24, 93, 0.4),
        /* Pink Glow */
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    border: 3px solid #D4AF37 !important;
    /* Royal Gold Border */
    animation: pulse-gold 2s infinite alternate;
}

.active-event-card::after {
    content: '★ TODAY ★';
    position: absolute;
    top: -20px;
    right: -10px;
    background: linear-gradient(135deg, #D4AF37, #F7E7CE);
    color: #4a0404;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: bounce-badge 1s infinite alternate;
    z-index: 100;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 0 rgba(190, 24, 93, 0);
    }

    100% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 30px rgba(190, 24, 93, 0.4);
    }
}

@keyframes bounce-badge {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* --- Sticky Top Banner --- */
#today-event-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Above navbar (z-50) */
    background: linear-gradient(90deg, #be185d, #db2777, #be185d);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.4);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#today-event-banner.visible {
    transform: translateY(0);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.banner-btn {
    background: white;
    color: #be185d;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Adjust navbar if banner is present */
body.has-banner nav {
    top: 50px;
    /* Push navbar down roughly height of banner */
    transition: top 0.5s ease;
}

@media (max-width: 768px) {
    .banner-content {
        font-size: 0.9rem;
    }

    .banner-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

/* --- Countdown Finished State (OLD) --- */
.countdown-finished-message {
    text-align: center;
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Canvas Flowers --- */
#flower-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Touches pass through */
    z-index: 80;
    /* Behind navbar but above bg */
}

/* --- LOADING SCREEN REMOVED --- */

/* --- MAGICAL CURSOR TRAIL (Pink Hearts) --- */
.trail-heart {
    position: fixed;
    pointer-events: none;
    font-size: 1rem;
    color: #be185d;
    z-index: 9999;
    animation: floatAndFade 1s forwards ease-out;
}

@keyframes floatAndFade {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(30px) scale(0.5) rotate(45deg);
        opacity: 0;
    }
}

/* --- POST WEDDING PREMIUM TEXT --- */
.perfect-couple-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    background: linear-gradient(90deg, #be185d, #db2777, #be185d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerText 3s linear infinite;
    margin-bottom: 10px;
}

.happily-married-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #881337;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.happily-married-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #be185d;
    margin: 10px auto 0;
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

/* --- ELAPSED TIME COUNTER (Positive Timer) --- */
/* Reuse container but add specific enhancements */
.glass-panel.elapsed-mode {
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(190, 24, 93, 0.15);
    background: rgba(255, 255, 255, 0.4);
}

.timer-label-premium {
    font-size: 0.9rem;
    color: #be185d;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CELEBRATION BOX (March 11) --- */
.celebration-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: box-glow 3s infinite alternate;
}

@keyframes box-glow {
    from {
        box-shadow: 0 0 20px rgba(190, 24, 93, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }

    to {
        box-shadow: 0 0 40px rgba(190, 24, 93, 0.5);
        border-color: rgba(190, 24, 93, 0.3);
    }
}

/* --- GRADIENT TEXT --- */
.gradient-text-animate {
    background: linear-gradient(to right,
            #be185d 0%,
            #ff3e89 25%,
            #be185d 50%,
            #ff3e89 75%,
            #be185d 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-flow 3s linear infinite;
    display: inline-block;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- TYPING ANIMATION --- */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #be185d;
    width: 0;
    /* Type (3.5s) -> Hold (2s) -> Delete/Snap (0.5s) = 6s Total Loop */
    animation:
        typing 6s steps(45, end) infinite,
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0
    }

    50% {
        width: 100%
    }

    /* Type out */
    85% {
        width: 100%
    }

    /* Pause */
    100% {
        width: 0
    }

    /* Reset */
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #be185d
    }
}

/* Utility to ensure typing fits on mobile */
@media (max-width: 768px) {
    .typing-container {
        white-space: normal;
        /* Wrap on mobile */
        border-right: none;
        width: 100%;
        animation: fadeIn 2s forwards;
        /* Fallback to fade in */
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}
/* --- LIGHTBOX STYLES --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Lightbox Buttons */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-btn {
    top: 20px;
    right: 20px;
}

.prev-btn {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(255,255,255,0.15); /* Slightly more visible on mobile */
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}
