﻿/* =============================================
   COLOR PALETTE & BASE TYPOGRAPHY
   ============================================= */
.gallery-viewer-wrapper {
    background-color: #FDFBF7; /* Warm Ivory */
    min-height: 100vh;
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.text-onyx {
    color: #1A1A1A !important;
}

.text-taupe {
    color: #8C7A6B !important;
}

.tracking-tight {
    letter-spacing: -0.03em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.border-bottom-crisp {
    border-bottom: 1px solid #EAE6DF !important;
}

.border-crisp {
    border: 1px solid #EAE6DF !important;
}

/* =============================================
   NAVIGATION & BUTTONS
   ============================================= */
.btn-return {
    background: transparent;
    border: none;
    color: #8C7A6B;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.arrow-slide {
    transition: transform 0.3s ease;
}

.btn-return:hover {
    color: #1A1A1A;
}

    .btn-return:hover .arrow-slide {
        transform: translateX(-5px);
    }

.btn-gallery-primary {
    display: inline-block;
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #1A1A1A;
}

    .btn-gallery-primary:hover {
        background: #8C7A6B;
        border-color: #8C7A6B;
        color: #FFFFFF;
    }

.btn-gallery-outline {
    background: transparent;
    border: 1px solid #EAE6DF;
    color: #1A1A1A;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

    .btn-gallery-outline:hover {
        background: #FFFFFF;
        border-color: #C2B8B1;
    }

/* =============================================
   THE PLACARD (LEFT COLUMN)
   ============================================= */
.eyebrow-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8C7A6B;
}

.type-minimal {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1A1A1A;
    border: 1px solid #EAE6DF;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: #FFFFFF;
}

/* =============================================
   THE DOCUMENT CANVAS (RIGHT COLUMN) 
   ============================================= */
.document-canvas {
    border: 1px solid #EAE6DF;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #FFFFFF;
}

/* FIX: Kills ALL potential CSS traps from parent elements */
.remove-transform {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    perspective: none !important;
}

/* =============================================
   BULLETPROOF FULL SCREEN MODE
   ============================================= */
.document-canvas.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 999999 !important; /* Force to the absolute top layer */
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #FFFFFF !important;
}

    /* Prevent the top bar from collapsing */
    .document-canvas.is-fullscreen .canvas-top-bar {
        flex-shrink: 0 !important;
    }

    /* Force the wrapper to take all remaining space */
    .document-canvas.is-fullscreen .iframe-wrapper {
        position: relative !important;
        flex-grow: 1 !important;
        height: 100% !important;
        min-height: 100% !important;
        width: 100% !important;
    }

    /* Force the iframe to pin to the corners of the wrapper */
    .document-canvas.is-fullscreen .pdf-iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }

/* =============================================
   STANDARD DESKTOP VIEW SIZING
   ============================================= */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 700px;
    background-color: #EAE6DF;
}

.pdf-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   INTERACTIVE WINDOW CONTROLS (macOS style)
   ============================================= */
.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: filter 0.2s ease;
}

.dot-red {
    background-color: #ff5f56;
    border: 1px solid #e0443e;
}

.dot-yellow {
    background-color: #ffbd2e;
    border: 1px solid #dea123;
}

.dot-green {
    background-color: #27c93f;
    border: 1px solid #1aab29;
}

/* Control Interaction Utilities */
.cursor-pointer {
    cursor: pointer;
}

.hover-dark {
    transition: color 0.2s ease;
}

    .hover-dark:hover {
        color: #1A1A1A !important;
    }

.transition-all {
    transition: all 0.2s ease;
}

.dot-red.cursor-pointer:hover {
    filter: brightness(0.8);
}

.dot-green.cursor-pointer:hover {
    filter: brightness(0.8);
}

/* =============================================
   MOBILE FALLBACK STYLING
   ============================================= */
.fallback-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #EAE6DF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes slideUpSlow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up-slow {
    animation: slideUpSlow 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* =============================================
   MOBILE ADJUSTMENTS (< 991px)
   ============================================= */
@media (max-width: 991px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    .document-canvas {
        border-radius: 16px;
        border-color: transparent;
        background-color: transparent !important;
        box-shadow: none;
    }
}
