/* =================================================================
   SHOW POPUP - RESPONSIVE DESIGN
   Based on RESPONSIVE-DESIGN-GUIDE.md principles
   ================================================================= */

/* CSS Variables for Popup */
:root {
    --popup-brown: #543e1e;
    --popup-beige: #f5f0e8;
    --popup-page: #fff8d9;
    --popup-green: #2b6015;
    --popup-dark-brown: #3a2918;
    --popup-scrollbar-track: #f5f0e8;
}

/* =================================================================
   POPUP OVERLAY & CONTAINER
   ================================================================= */

.show-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.show-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(85vw, 90vw, 95vw);  /* Fluid width */
    height: clamp(70vh, 80vh, 85vh);  /* Fluid height */
    background: var(--popup-brown);
    border-radius: clamp(10px, 1.5vw, 15px);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 30px rgba(0,0,0,0.3);
    padding: clamp(10px, 1.5vw, 15px);
    z-index: 2001;
    display: flex;
    position: relative;
}

.show-pages-wrapper {
    width: 100%;
    height: 100%;
    background: var(--popup-beige);
    border-radius: clamp(6px, 1vw, 8px);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.show-content {
    width: 100%;
    height: 100%;
    padding: clamp(15px, 2vh, 25px);
    background: var(--popup-beige);
    position: relative;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--popup-brown) var(--popup-scrollbar-track);
}

.show-content::-webkit-scrollbar {
    width: clamp(8px, 1vw, 12px);
}

.show-content::-webkit-scrollbar-track {
    background: var(--popup-scrollbar-track);
    border-radius: 6px;
}

.show-content::-webkit-scrollbar-thumb {
    background: var(--popup-brown);
    border-radius: 6px;
    border: 2px solid var(--popup-scrollbar-track);
}

.show-content::-webkit-scrollbar-thumb:hover {
    background: var(--popup-dark-brown);
}

.show-content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* =================================================================
   TYPOGRAPHY - FLUID SIZING
   ================================================================= */

.show-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(3.5rem, 12vh, 10rem);
    color: var(--popup-green);
    line-height: 1.1;
}

.show-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 5vh, 5rem);
    color: var(--popup-green);
    line-height: 1.3;
}

.show-description {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vh, 5rem);
    color: var(--popup-green);
    line-height: 1.5;
    margin-top: clamp(10px, 1.5vh, 20px);
}

/* =================================================================
   VIDEO SECTION
   ================================================================= */

.video-container-showreel {
    position: absolute;
    top: 7%;
    left: 17%;
    width: 65%;
    /* max-width: 800px; */
    margin: 0 auto;
    z-index: 12;
}

.showreel-video {
    position: absolute;
    top: 10%;
    width: 100%;
    height: auto;
    border-radius: clamp(6px, 1vw, 8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* =================================================================
   CLOSE BUTTON
   ================================================================= */

.close-show-btn {
    font-family: 'Libre Baskerville', serif;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: clamp(30px, 4vw, 40px);
    cursor: pointer;
    color: var(--popup-brown);
    z-index: 2004;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.close-show-btn:hover {
    color: var(--popup-brown);
    transform: rotate(90deg);
}

/* =================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Large Desktop (1920px+) */
@media screen and (min-width: 1920px) {
    /* VIDEO SECTION */
    .video-container-showreel {
        width: 100%;
        max-width: 1200px;
    }
}

/* Extra Large Desktop (2560px+) */

@media screen and (min-width: 2560px), (min-height: 1024px) {
    .show-content-inner {
        max-width: 1600px;
    }
    
    /* VIDEO SECTION */
    .video-container-showreel {
        top: 5%;
        left: 20%;
        width: 55%;
        max-width: 1600px;
    }
}

/* @media screen and (min-width: 2560px) {
    .show-content-inner {
        max-width: 1600px;
    } */
    
    /* VIDEO SECTION */
    /* .video-container-showreel {
        top: 10%;
        left: 15.5%;
        width: 85%;
        max-width: 1600px;
    } 
}*/

/* Medium Desktop (1024px - 1439px) */
@media screen and (max-width: 1439px) {
    .show-container {
        width: 92vw;
        height: 82vh;
    }
}

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .show-container {
        width: 95vw;
        height: 85vh;
    }
}

/* Mobile (below 768px) */
@media screen and (max-width: 767px) {
    .show-container {
        width: 95vw;
        height: 90vh;
        padding: 10px;
    }
    
    .close-show-btn {
        font-size: 30px;
        top: 5px;
        right: 10px;
    }
}

/* =================================================================
   TOUCH DEVICE OPTIMIZATION
   ================================================================= */

@media (hover: none) and (pointer: coarse) {
    .close-show-btn:hover {
        transform: none;
    }
    
    .close-show-btn {
        padding: 10px;
    }
}

/* =================================================================
   PERFORMANCE
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    .close-show-btn {
        transition: none;
    }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.page-content {
    margin: 0 auto;
    color: #2a2a2a;
}