/* ============================================
   MARQUEE & BULB EFFECTS
   Vintage Vegas Wedding - Jac & Ben
   ============================================ */

/* ============================================
   3D MARQUEE BOUNCE ENTRANCE
   ============================================ */

.marquee-3d-container {
    opacity: 0;
    transform: scale(0);
}

.marquee-3d-container.bounce-in {
    animation: marqueeBounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes marqueeBounceIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-5deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(2deg);
    }
    70% {
        transform: scale(0.95) rotate(-1deg);
    }
    85% {
        transform: scale(1.02) rotate(0.5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   MARQUEE BORDER
   ============================================ */

.marquee-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Section with chase light border */
.section-with-border {
    position: relative;
    overflow: hidden;
}

.section-with-border .marquee-border {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.bulb-row {
    position: absolute;
    display: flex;
}

.bulb-row.top,
.bulb-row.bottom {
    left: 0;
    right: 0;
    height: 20px;
    justify-content: space-around;
}

.bulb-row.top {
    top: 0;
}

.bulb-row.bottom {
    bottom: 0;
}

.bulb-row.left,
.bulb-row.right {
    top: 20px;
    bottom: 20px;
    width: 20px;
    flex-direction: column;
    justify-content: space-around;
}

.bulb-row.left {
    left: 0;
}

.bulb-row.right {
    right: 0;
}

/* Individual bulbs are generated by JS */
.bulb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bulb-off);
    transition: background 0.15s, box-shadow 0.15s;
    /* `contain: strict` keeps each bulb's paint isolated (good).
       `will-change` was removed here because bulbs only animate color
       and shadow (not transform/opacity), so the hint didn't help —
       but it DID force the browser to keep potentially hundreds of
       promoted layers alive, which crushed mobile scroll perf. */
    contain: strict;
}

.bulb.on {
    background: var(--bulb-warm);
    box-shadow: 0 0 8px var(--bulb-warm);
}

.bulb.hot {
    background: var(--bulb-hot);
    box-shadow: 0 0 10px var(--bulb-hot);
}

/* Chase animation classes */
.bulb.chase-1 { animation: bulbChase 2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.05s); }
.bulb.chase-2 { animation: bulbChase 2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.05s + 1s); }

@keyframes bulbChase {
    0%, 100% {
        background: var(--bulb-off);
        box-shadow: none;
    }
    20%, 80% {
        background: var(--bulb-warm);
        box-shadow: 
            0 0 5px var(--bulb-warm),
            0 0 10px var(--bulb-warm);
    }
    50% {
        background: var(--bulb-hot);
        box-shadow: 
            0 0 8px var(--bulb-hot),
            0 0 15px var(--bulb-warm),
            0 0 20px rgba(255, 221, 119, 0.5);
    }
}

/* ============================================
   SCROLLING BULB BANNERS
   ============================================ */

.bulb-banner {
    overflow: hidden;
    background: var(--navy);
    padding: 30px 0;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    position: relative;
    box-shadow: 
        0 0 30px rgba(255, 204, 0, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.bulb-banner.tilted-banner {
    transform: rotate(-1deg);
    /* No negative horizontal margin — extending past the viewport creates
       horizontal overflow at every breakpoint. Rotation tilt is visually
       preserved without expanding the layout box. */
    margin: -5px 0;
    padding: 35px 20px;
}

.bulb-banner::before,
.bulb-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.bulb-banner::before {
    left: 0;
    background: linear-gradient(90deg, var(--navy), transparent);
}

.bulb-banner::after {
    right: 0;
    background: linear-gradient(-90deg, var(--navy), transparent);
}

.banner-track {
    display: flex;
    width: max-content;
    animation: scrollBanner 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.banner-track.reverse {
    animation: scrollBannerReverse 25s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

@keyframes scrollBanner {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollBannerReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Bulb Text Effect */
.bulb-text {
    font-family: var(--font-ozone);
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: 0.1em;
    color: var(--gold);
    text-shadow: 
        0 0 10px var(--gold),
        0 0 20px var(--gold),
        0 0 30px rgba(255, 204, 0, 0.5);
    position: relative;
}

.bulb-text.jackpot {
    font-family: var(--font-ozone);
    color: var(--neon-pink);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px rgba(255, 45, 123, 0.5);
}

.bulb-star {
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--gold);
    text-shadow: 
        0 0 10px var(--gold),
        0 0 20px var(--gold);
    animation: starPulse 1s ease-in-out infinite;
}

.banner-2 .bulb-star {
    color: var(--neon-red);
    text-shadow: 
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red);
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* ============================================
   LETTER BULB STYLE
   (Individual letters made of dots)
   ============================================ */

.letter-bulbs {
    display: inline-flex;
    gap: 2px;
    flex-wrap: wrap;
    max-width: 40px;
}

.letter-bulbs .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bulb-warm);
    box-shadow: 0 0 3px var(--bulb-warm);
}

.letter-bulbs .dot.off {
    background: var(--bulb-off);
    box-shadow: none;
}

/* ============================================
   PANEL LIGHTS
   (For event schedule panels)
   ============================================ */

.panel-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--gold);
    z-index: 0;
}

.panel-lights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.event-panel .panel-lights {
    overflow: hidden;
}

/* Generate bulbs via CSS pseudo-elements */
.event-panel::before {
    content: '● ● ● ● ● ● ● ● ● ● ● ● ● ● ●';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    font-size: 8px;
    letter-spacing: 8px;
    text-align: center;
    color: var(--bulb-off);
    z-index: 1;
    animation: panelChase 3s linear infinite;
}

.event-panel.main-event::before {
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold);
    animation: panelChaseGold 2s linear infinite;
}

@keyframes panelChase {
    0% {
        text-shadow: 
            0 0 5px var(--bulb-warm),
            20px 0 0 var(--bulb-off),
            40px 0 0 var(--bulb-off);
    }
    33% {
        text-shadow: 
            0 0 0 var(--bulb-off),
            20px 0 5px var(--bulb-warm),
            40px 0 0 var(--bulb-off);
    }
    66% {
        text-shadow: 
            0 0 0 var(--bulb-off),
            20px 0 0 var(--bulb-off),
            40px 0 5px var(--bulb-warm);
    }
    100% {
        text-shadow: 
            0 0 5px var(--bulb-warm),
            20px 0 0 var(--bulb-off),
            40px 0 0 var(--bulb-off);
    }
}

@keyframes panelChaseGold {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* ============================================
   HEART BULB PATTERN
   ============================================ */

.heart-bulb-border {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heart-bulb-border .bulb {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bulb-off);
}

.heart-bulb-border .bulb.on {
    background: var(--neon-red);
    box-shadow: 
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red);
}

/* ============================================
   VINTAGE MARQUEE PATTERNS
   ============================================ */

/* Diamond pattern border */
.diamond-border {
    position: relative;
    padding: 30px;
}

.diamond-border::before {
    content: '◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold);
    animation: diamondPulse 2s ease-in-out infinite;
}

.diamond-border::after {
    content: '◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold);
    animation: diamondPulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes diamondPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .marquee-border {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .bulb {
        width: 8px;
        height: 8px;
    }
    
    .bulb-banner {
        padding: 20px 0;
    }
    
    .banner-track {
        animation-duration: 20s;
    }
    
    .banner-track.reverse {
        animation-duration: 18s;
    }
}

@media (max-width: 480px) {
    .marquee-border {
        display: none;
    }
    
    .bulb-text {
        font-size: 1.8rem;
    }
    
    .banner-content {
        gap: 20px;
    }
}
