/* Full Width Banner Component */
.fifa-banner-wrapper {
    width: 100vw;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #F9B909;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.fifa-banner-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.fifa-banner-video,
.fifa-banner-img,
.fifa-banner-img-small {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.fifa-banner-video {
    display: block;
}

.fifa-banner-img {
    display: none;
}

.fifa-banner-img-small {
    display: none;
}

/* FIFA Goal Box Component - Base styles in style.css */
.fifa-goal-box .contest-btn {
    display: inline-block;
    background-color: #FBBD47;
    color: #175E54;
    padding: 15px 25px;
    border-radius: 100px;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
}
}

.fifa-goal-box .contest-btn:hover {
    background-color: #D39826;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 148, 30, 0.3);
}

/* ==========================================================================
   CAMPAIGN PAGE COMPONENTS
   ========================================================================== */

/* Campaign Info Box - bordered callout boxes like "How to Enter" */
.campaign-info-box {
    background-color: #f9f9f9;
    border-left: 4px solid #00BC70;
    padding: 24px 28px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.campaign-info-box h3,
.campaign-info-box h4 {
    color: #00BC70;
    margin-top: 0;
    margin-bottom: 12px;
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 700;
}

.campaign-info-box ol,
.campaign-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.campaign-info-box li {
    margin-bottom: 8px;
}

/* Campaign Action Button - for table and inline buttons */
.campaign-btn {
    display: inline-block;
    background-color: transparent;
    color: #175E54;
    border: 2px solid #175E54;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.campaign-btn:hover {
    background-color: #175E54;
    color: white;
}

.campaign-btn-primary {
    background-color: #175E54;
    color: white;
    border-color: #175E54;
}

.campaign-btn-primary:hover {
    background-color: #0f4439;
    border-color: #0f4439;
}

/* Campaign Note - for disclaimers and notes */
.campaign-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #00BC70;
    margin: 16px 0;
}

.campaign-note::before {
    content: "\2713";
    font-weight: bold;
}

/* Campaign CTA Banner - full-width call to action */
.campaign-cta-banner {
    background-color: #F9B909;
    padding: 20px 24px;
    border-radius: 8px;
    text-align: center;
    margin: 24px 0;
}

.campaign-cta-banner a {
    color: #175E54;
    font-weight: 600;
    text-decoration: underline;
}

.campaign-cta-banner a:hover {
    color: #0f4439;
}

/* ==========================================================================
   CAMPAIGN MODAL COMPONENTS
   ========================================================================== */

/* Campaign Modal Overlay - shared by contest rules and PDF modals */
.campaign-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* Contest Rules Modal Content */
.campaign-contest-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 20px;
}

.campaign-contest-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.campaign-contest-modal-header h2 {
    margin: 0;
    font-family: 'Serifa', serif;
    color: #175E54;
}

.campaign-modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #175E54;
    line-height: 1;
}

.campaign-modal-body {
    font-family: 'Scandia', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.campaign-modal-body a {
    color: #00BC70;
    font-weight: 600;
    text-decoration: underline;
}

.campaign-modal-body .no-pdf-notice {
    color: #999;
    font-style: italic;
}

/* Campaign PDF Buttons Container */
.campaign-pdf-buttons-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Campaign PDF Button */
.campaign-pdf-button {
    display: inline-block;
    color: #175E54;
    padding: 14px 32px;
    text-decoration: underline;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Serifa', serif;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Campaign Contest Rules Footer */
.campaign-contest-rules-footer {
    margin-top: 30px;
    text-align: center;
    background: #FFF9E6;
    padding: 20px;
    border-radius: 8px;
}

.campaign-contest-rules-link {
    color: #175E54;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

/* ==========================================================================
   CAMPAIGN PDF MODAL STYLES (moved from page-campaign.php)
   ========================================================================== */

.campaign-pdf-modal-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 95vw;
    width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 20px;
}

.campaign-pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.campaign-pdf-modal-header h2 {
    margin: 0;
    font-family: 'Serifa', serif;
}

.campaign-pdf-modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.campaign-pdf-fullscreen-btn {
    background: #00BC70;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Scandia', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.campaign-pdf-modal-iframe {
    width: 100%;
    height: calc(95vh - 150px);
    min-height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Fireworks Animation */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-burst 1s ease-out forwards;
}

@keyframes firework-burst {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Responsive adjustments for campaign components */
@media (max-width: 768px) {
    .campaign-info-box {
        padding: 20px 24px;
    }

    .campaign-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .campaign-pdf-modal-container {
        padding: 20px;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .campaign-pdf-modal-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .campaign-pdf-modal-header h2 {
        font-size: 1.1rem;
        flex: 1;
        padding-right: 0;
        line-height: 1.2;
    }

    .campaign-pdf-modal-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .campaign-pdf-fullscreen-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .campaign-pdf-modal-iframe {
        height: calc(100vh - 200px);
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .campaign-info-box {
        padding: 16px 20px;
    }

    .campaign-cta-banner {
        padding: 16px 20px;
    }

    .campaign-pdf-modal-container {
        padding: 15px;
    }

    .campaign-pdf-modal-header h2 {
        font-size: 0.95rem;
    }

    .campaign-pdf-fullscreen-btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    .campaign-pdf-modal-iframe {
        height: calc(100vh - 180px);
        min-height: 300px;
    }
}

@media (max-width: 425px) {
    /* Contest Rules Modal - mobile */
    .campaign-contest-modal-content {
        padding: 20px 16px;
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: 90vh;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .campaign-contest-modal-content h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .campaign-contest-modal-content .campaign-modal-close-btn {
        font-size: 24px;
        flex-shrink: 0;
    }

    /* PDF Modal - mobile */
    .campaign-pdf-modal-container {
        padding: 12px;
        margin: 5px;
        max-width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
        width: 100%;
        box-sizing: border-box;
    }

    .campaign-pdf-modal-header {
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .campaign-pdf-modal-header h2 {
        font-size: 0.85rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .campaign-pdf-modal-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .campaign-pdf-fullscreen-btn {
        font-size: 9px;
        padding: 4px 7px;
    }

    .campaign-pdf-modal-iframe {
        height: calc(100vh - 120px);
        min-height: 250px;
    }

    /* PDF auto-buttons row in body content */
    .campaign-pdf-buttons-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
    }

    .campaign-pdf-button {
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Contest rules footer */
    .campaign-contest-rules-footer {
        padding: 14px;
        margin-top: 20px;
    }
}

/* ==========================================================================
   VIDEO MODAL - How to Enter Section
   ========================================================================== */

/* 2-Column Grid Layout for Draw Rules with Video */
.draw-rules-with-video {
    background: #F0F9F7;
    padding: 30px;
    border-left: 4px solid #00BC70;
    margin: 30px 0;
    border-radius: 4px;
}

.draw-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.draw-rules-content h3 {
    color: #175E54;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Serifa', 'Times New Roman', serif;
    font-weight: 700;
}

.draw-rules-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.draw-rules-content li {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

/* Video Thumbnail Button */
.draw-rules-video {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-thumbnail-btn {
    position: relative;
    max-width: 250px;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.video-thumbnail-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.video-thumbnail-btn:focus {
    outline: 3px solid #00BC70;
    outline-offset: 4px;
}

.video-thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.video-thumbnail-btn:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 68px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.video-thumbnail-btn:hover .play-icon {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.play-text {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Scandia', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Video Modal Overlay */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 90vw;
    width: 900px;
    max-height: 90vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.video-modal-header h2 {
    margin: 0;
    font-family: 'Serifa', serif;
    color: #175E54;
    font-size: 24px;
}

/* Video Embed Wrapper - 16:9 aspect ratio */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Video Modal
   ========================================================================== */

/* Tablets - 768px */
@media (max-width: 768px) {
    .draw-rules-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .draw-rules-with-video {
        padding: 25px;
    }

    .video-modal-container {
        width: 95vw;
        padding: 25px;
    }

    .video-modal-header h2 {
        font-size: 20px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .draw-rules-with-video {
        padding: 20px;
    }

    .draw-rules-grid {
        gap: 20px;
    }

    .video-thumbnail-btn {
        border-radius: 8px;
    }

    .play-icon {
        width: 54px;
        height: 38px;
    }

    .play-text {
        font-size: 12px;
        padding: 6px 12px;
    }

    .video-modal-container {
        padding: 20px;
        border-radius: 8px;
    }

    .video-modal-header h2 {
        font-size: 18px;
    }
}

/* Small Mobile - 425px */
@media (max-width: 425px) {
    .draw-rules-with-video {
        padding: 16px;
    }

    .video-modal-container {
        padding: 15px;
        max-width: calc(100vw - 20px);
        max-height: 95vh;
        margin: 10px;
    }

    .video-modal-header {
        margin-bottom: 15px;
    }

    .video-modal-header h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .campaign-modal-close-btn {
        font-size: 24px;
    }
}
