﻿/* =============================================
   VARIABLES & GLOBALS (Editorial Theme)
   ============================================= */
:root {
    --navy: #1B2A47;
    --gold: #D4AF37;
    --linen: #FDFBF7;
    --border-subtle: #E5E7EB;
}

.archive-wrapper {
    background-color: var(--linen);
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.text-navy {
    color: var(--navy) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.font-serif {
    font-family: "Lora", "Playfair Display", "Merriweather", Georgia, serif;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.btn-navy {
    background-color: var(--navy);
    color: white;
    border-radius: 8px !important;
    transition: background 0.2s;
}

    .btn-navy:hover {
        background-color: #121d33;
        color: white;
    }

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px !important;
    transition: background 0.2s;
}

    .btn-gold:hover {
        background-color: #b8962c;
        color: var(--navy);
    }

/* =============================================
   EDITORIAL HEADER
   ============================================= */
.archive-header {
    background-color: var(--navy);
    background-image: linear-gradient(135deg, #1B2A47 0%, #111a2d 100%);
    border-bottom: 4px solid var(--gold);
}

.archive-title {
    font-family: "Lora", "Merriweather", Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
}

.archive-search .bg-white {
    border-radius: 12px !important;
}

.archive-search input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Clear Search Button Hover */
.btn-link:hover i.bi-x-circle-fill {
    color: #DC3545 !important;
    transform: scale(1.1);
    transition: all 0.2s;
}

/* =============================================
   CLASSIC TAB NAVIGATION
   ============================================= */
.archive-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-subtle);
}

.archive-tabs .nav-link {
    color: #6B7280;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.2s ease;
}

    .archive-tabs .nav-link:hover {
        color: var(--navy);
        border-color: transparent;
    }

    .archive-tabs .nav-link.active {
        color: var(--navy);
        background: transparent;
        border-color: var(--gold);
    }

.archive-subtitle {
    font-family: "Lora", Georgia, serif;
    font-size: 1.5rem;
}

/* =============================================
   DOCUMENT CARDS
   ============================================= */
.archive-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-type-accent {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(27, 42, 71, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

    .archive-card:hover .card-type-accent {
        width: 10px;
    }

.archive-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: var(--linen);
    border-radius: 12px;
    display: inline-flex;
}

.archive-card-title {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    line-height: 1.4;
}

.archive-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-action {
    transition: transform 0.2s ease;
}

.archive-card:hover .card-action {
    color: var(--gold) !important;
    transform: translateX(4px);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.archive-empty-state {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
}

/* =============================================
   CINEMATIC VIEWER 
   ============================================= */
.cinematic-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.viewer-glass-toolbar {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.blur-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .blur-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.btn-close-danger:hover {
    background: #EF4444;
    border-color: #EF4444;
}

/* --- DETAILS PANEL --- */
.viewer-details-panel {
    width: 100%;
    max-width: 380px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.panel-inner {
    height: 100%;
    overflow-y: auto;
}

    /* Custom scrollbar for panel inner */
    .panel-inner::-webkit-scrollbar {
        width: 6px;
    }

    .panel-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .panel-inner::-webkit-scrollbar-thumb {
        background: #E2DED5;
        border-radius: 10px;
    }

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 500;
    margin: 0;
}

.stage-glass-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

/* =============================================
   MOBILE RESPONSIVENESS (100% Viewer Height)
   ============================================= */
@media (max-width: 991.98px) {
    .viewer-details-panel {
        display: none !important; /* Hides description completely on mobile */
    }

    .viewer-stage {
        height: 100%; /* Guarantees the document viewer takes the entire screen */
        padding: 0 !important; /* Removes extra padding on small screens for maximum document space */
    }

    .stage-glass-container {
        border-radius: 0; /* Ensures edge-to-edge viewing on phones */
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}


