/* Splash Page Modal Styles - Matching Website Theme */

/* Modal Container */
.splash-modal {
    display: none; /* Hidden by default, shown via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.splash-modal.active {
    display: block;
}

/* Overlay Background - Dark like navbar */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95); /* --secondary-color with opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Content Container - Simplified for PDF focus */
.splash-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: #ffffff;
    border: 3px solid var(--primary-color); /* Dark blue border */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease-out;
}

/* Close Button - Matching site style */
.splash-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color); /* Dark blue */
    border: 3px solid white;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.splash-close:hover {
    background: var(--accent-color); /* Light blue on hover */
    transform: rotate(90deg) scale(1.1);
}

.splash-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Event Image - Takes up full space now */
.event-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

/* Scrollable container for image */
.image-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 20px;
}

/* Grid layout for dual images - side by side */
.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    align-items: start;
}

/* Individual image box container */
.image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bottom Controls Bar - Minimal and clean */
.splash-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--primary-color); /* Dark blue like navbar */
    border-top: 2px solid var(--accent-color);
    flex-shrink: 0;
}

/* Remember Choice Checkbox */
.remember-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: opacity 0.3s ease;
}

.remember-choice:hover {
    opacity: 0.8;
}

.remember-choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* Download Button - Simple and clean */
.btn-download-simple {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download-simple:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-download-simple i {
    font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.splash-modal.closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.splash-modal.closing .splash-content {
    animation: fadeOutDown 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .splash-content {
        width: 95%;
        height: 85vh;
        max-height: 85vh;
        border-width: 2px;
    }

    .splash-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        z-index: 100;
        position: fixed;
    }

    /* Stack images vertically on mobile */
    .images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: start; /* Align from top, not center */
    }

    /* Allow images to show at full size on mobile */
    .event-image {
        max-height: none;
        width: 100%;
        height: auto;
    }

    /* Ensure image boxes don't restrict height */
    .image-box {
        height: auto;
        min-height: auto;
    }

    /* Make sure container allows scrolling */
    .image-container {
        align-items: flex-start;
        padding: 15px;
    }

    .splash-controls {
        padding: 12px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .remember-choice {
        font-size: 13px;
    }

    .btn-download-simple {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .splash-modal {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .splash-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border: none;
        position: relative;
        transform: none;
        top: 0;
        left: 0;
    }

    .splash-close {
        top: 15px;
        right: 15px;
        position: fixed;
        border-width: 2px;
        z-index: 10001;
        background: var(--primary-color);
        opacity: 0.95;
    }

    /* Allow full image display with scrolling */
    .event-image {
        max-height: none;
        width: 100%;
        height: auto;
    }

    /* Ensure proper scrolling on very small screens */
    .image-container {
        align-items: flex-start;
        padding: 10px;
    }

    .images-grid {
        align-items: start;
    }

    .splash-controls {
        padding: 10px 15px;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .splash-overlay {
        background: rgba(0, 0, 0, 0.98);
    }
    
    .splash-content {
        border-width: 4px;
    }
    
    .splash-close {
        border-width: 4px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .splash-modal,
    .splash-content,
    .splash-close,
    .btn-download-simple {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .splash-modal {
        display: none !important;
    }
}

/* Body scroll lock - simple overflow hidden */
body.no-scroll {
    overflow: hidden;
}