/* =====================================================
   GCash-Style Announcement Poster Popup Modal
   Lumiere Nexus - IEAS Days 2026 Announcement
   ===================================================== */

/* Overlay Container */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    padding: 16px;
    box-sizing: border-box;
}

.promo-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.promo-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 10, 18, 0.84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Modal Content Container */
.promo-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: min(92vw, 420px);
    max-height: 94vh;
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-modal.active .promo-container {
    transform: scale(1) translateY(0);
}

.promo-modal.closing .promo-container {
    transform: scale(0.9) translateY(15px);
    opacity: 0;
    transition: transform 0.25s ease-in, opacity 0.25s ease-in;
}

/* Close Button (Upper Right) */
.promo-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.95);
    border: 1.5px solid rgba(212, 175, 55, 0.8);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 14px rgba(212, 175, 55, 0.4);
    z-index: 20;
    transition: all 0.25s ease;
}

.promo-close-btn:hover {
    background: #d4af37;
    color: #0b0f19;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.8);
}

/* Poster Card */
.promo-card {
    position: relative;
    width: fit-content;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #0b101b;
    border: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    display: flex;
    line-height: 0;
}

.promo-poster-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 18px;
    transition: transform 0.35s ease;
}

.promo-card:hover .promo-poster-img {
    transform: scale(1.015);
}

/* Bottom Dismiss Action (GCash style "Remind me later") */
.promo-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.promo-dismiss-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-dismiss-btn:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Floating Reopen Pill Button */
.promo-reopen-pill {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #182238 0%, #0d1322 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    padding: 10px 18px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 175, 55, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-reopen-pill:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: #ffd700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.5);
    color: #ffd700;
}

.promo-reopen-pill i {
    font-size: 17px;
    color: #d4af37;
    animation: promoMegaphonePulse 2s infinite ease-in-out;
}

@keyframes promoMegaphonePulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(-8deg); }
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .promo-container {
        max-width: 90vw;
        max-height: 94vh;
    }
    
    .promo-poster-img {
        max-height: 72vh;
    }

    .promo-close-btn {
        top: -10px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .promo-dismiss-btn {
        font-size: 14px;
    }

    .promo-reopen-pill {
        bottom: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* =====================================================
   Interactive Video Ad Theater Modal
   ===================================================== */
.video-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    padding: 16px;
    box-sizing: border-box;
}

.video-ad-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.video-ad-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 16, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.video-ad-container {
    position: relative;
    z-index: 10;
    width: min(94vw, 860px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: rgba(10, 18, 34, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.25);
    overflow: hidden;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-ad-modal.active .video-ad-container {
    transform: scale(1) translateY(0);
}

.video-ad-modal.closing .video-ad-container {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
}

/* Ad Header Bar */
.video-ad-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(6, 12, 22, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.video-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffd700;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.video-ad-badge i {
    font-size: 0.95rem;
    animation: goldShimmer 2s infinite ease-in-out;
}

@keyframes goldShimmer {
    0%, 100% { opacity: 0.7; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(15deg) scale(1.15); filter: drop-shadow(0 0 6px #ffd700); }
}

.video-ad-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-ad-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.video-ad-skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: not-allowed;
    transition: all 0.25s ease;
}

.video-ad-skip-btn.ready {
    background: linear-gradient(135deg, #ffd700, #ffae00);
    color: #0b1a30;
    border-color: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
    transform: scale(1.02);
}

.video-ad-skip-btn.ready:hover {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.8);
}

.video-ad-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-ad-close-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: #ff3b30;
    color: #fff;
}

/* Video Player Frame */
.video-ad-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 56vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.promo-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Center Play/Pause Pulsing Button */
.video-ad-center-play {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(11, 26, 48, 0.8);
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 5;
}

.video-ad-player-wrapper.paused .video-ad-center-play,
.video-ad-player-wrapper:hover .video-ad-center-play {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* In-Video Overlay Controls Bar */
.video-ad-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 70%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 6;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-ad-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px;
}

.video-ad-ctrl-btn:hover {
    color: #ffd700;
    transform: scale(1.15);
}

.video-ad-progress-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.video-ad-progress-bar:hover {
    height: 8px;
}

.video-ad-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #ff9900);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* End Card Overlay */
.video-ad-endcard {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 20, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    z-index: 8;
    animation: endcardFadeIn 0.35s ease forwards;
}

.video-ad-endcard.active {
    display: flex;
}

@keyframes endcardFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.video-ad-endcard-content {
    text-align: center;
    padding: 20px;
    max-width: 440px;
}

.video-ad-endcard-logo {
    width: 60px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.video-ad-endcard-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
}

.video-ad-endcard-sub {
    margin: 0 0 18px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.video-ad-endcard-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bottom CTA Footer Card */
.video-ad-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(7, 13, 24, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    gap: 14px;
}

.video-ad-footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.video-ad-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.video-ad-footer-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-ad-footer-text h4 {
    margin: 0;
    font-size: 0.92rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-ad-footer-text p {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-ad-action-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mobile Screens (< 640px) */
@media (max-width: 640px) {
    .video-ad-container {
        width: 96vw;
        max-height: 96vh;
        border-radius: 16px;
    }

    .video-ad-topbar {
        padding: 8px 12px;
    }

    .video-ad-badge {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .video-ad-skip-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .video-ad-player-wrapper {
        aspect-ratio: 16 / 9;
        max-height: 40vh;
    }

    .video-ad-footer-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 14px;
    }

    .video-ad-footer-info {
        gap: 10px;
    }

    .video-ad-thumb {
        width: 40px;
        height: 40px;
    }

    .video-ad-footer-text h4 {
        font-size: 0.85rem;
    }

    .video-ad-footer-text p {
        font-size: 0.74rem;
    }

    .video-ad-action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .video-ad-endcard-content h3 {
        font-size: 1.25rem;
    }

    .video-ad-endcard-actions {
        flex-direction: column;
        width: 100%;
    }

    .video-ad-endcard-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

