/* =================================================================== */
/* ===== YUVA BHARAT 3D EXHIBITION STYLES (LIGHT LUXURY STUDIO) ===== */
/* =================================================================== */

/* Root Design Variables inheriting YUVA Brand Light Palette */
:root {
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-glow: rgba(255, 153, 51, 0.25);
    
    --navy-chakra: #000080;
    --navy-dark: #00005C;
    --navy-accent: #1E293B;

    --green-primary: #138808;
    --green-light: #16A34A;

    --bg-light-base: #F8FAFC;
    --bg-light-cream: #FAFAF9;
    --bg-glass-light: rgba(255, 255, 255, 0.88);
    --bg-glass-card: #FFFFFF;
    
    --border-light: rgba(15, 23, 42, 0.08);
    --border-light-active: rgba(255, 153, 51, 0.6);

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;

    --font-heading: 'Outfit', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-elevated: 0 20px 50px rgba(15, 23, 42, 0.12);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & WebGL Canvas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-light-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    user-select: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}

#canvas-container:active {
    cursor: grabbing;
}

#webgl-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* =================================================================== */
/* ===== PRISTINE LIGHT LOADER OVERLAY ===== */
/* =================================================================== */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    box-shadow: var(--shadow-elevated);
}

.loader-logo-ring {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.75rem;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 153, 51, 0.3));
    animation: floatLogo 3s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0% { transform: translateY(-4px) scale(0.98); }
    100% { transform: translateY(4px) scale(1.02); }
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.08);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--saffron-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 452;
    stroke-dashoffset: 452;
    transition: stroke-dashoffset 0.3s ease-out;
    filter: drop-shadow(0 0 8px var(--saffron-primary));
}

.loader-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--saffron-dark);
    background: #FFF7ED;
    border: 1px solid rgba(255, 153, 51, 0.3);
    padding: 0.4rem 1.1rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.loader-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.loader-progress-bar {
    width: 260px;
    height: 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--saffron-primary), var(--green-primary));
    border-radius: 99px;
    transition: width 0.2s ease-out;
}

.loader-percent {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--saffron-dark);
}

.enter-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--saffron-glow);
    transition: all 0.3s var(--ease-out-expo);
}

.enter-btn.hidden {
    display: none;
}

.enter-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px var(--saffron-glow);
}

/* =================================================================== */
/* ===== TOP HUD HEADER OVERLAY (LIGHT GLASS) ===== */
/* =================================================================== */

.hud-header {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.hud-header-left, .hud-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.hud-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 153, 51, 0.3));
}

.hud-brand-text {
    display: flex;
    flex-direction: column;
}

.hud-brand-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.hud-brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--saffron-dark);
    text-transform: uppercase;
}

.hud-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
}

.hud-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #F1F5F9;
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    border: 1px solid var(--border-light);
}

.hud-stat-pill i {
    color: var(--saffron-primary);
}

.hud-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-icon-btn:hover {
    background: #FFF7ED;
    border-color: var(--saffron-primary);
    color: var(--saffron-dark);
    transform: translateY(-2px);
}

.sound-wave-anim {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 2px;
}

.hud-icon-btn.playing .sound-wave-anim {
    display: flex;
}

.hud-icon-btn.playing #audio-icon {
    display: none;
}

.sound-wave-anim span {
    width: 2px;
    height: 100%;
    background: var(--saffron-primary);
    border-radius: 99px;
    animation: wavePulse 0.8s ease-in-out infinite alternate;
}

.sound-wave-anim span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wavePulse {
    0% { height: 3px; }
    100% { height: 14px; }
}

.hud-link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: #F1F5F9;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hud-link-btn:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

/* =================================================================== */
/* ===== FLOATING CATEGORY NAVIGATION BAR ===== */
/* =================================================================== */

.hud-categories {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    width: max-content;
    max-width: calc(100% - 2rem);
}

.hud-category-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: var(--bg-glass-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: var(--shadow-soft);
}

.hud-category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 99px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
}

.cat-pill:hover {
    color: var(--text-primary);
    background: #F1F5F9;
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    border-color: transparent;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--saffron-glow);
}

.cat-pill i {
    font-size: 0.85rem;
}

/* =================================================================== */
/* ===== FLOATING 3D MODE TOOLBAR (BOTTOM CENTER) ===== */
/* =================================================================== */

.hud-mode-toolbar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
}

.hud-mode-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem;
    background: var(--bg-glass-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-elevated);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.mode-btn:hover {
    color: var(--text-primary);
    background: #F1F5F9;
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 128, 0.3);
}

/* =================================================================== */
/* ===== FLOATING GUIDANCE & FPS WIDGETS ===== */
/* =================================================================== */

.hud-guidance {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none;
}

.guidance-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.guidance-pill i {
    color: var(--saffron-primary);
    font-size: 0.75rem;
}

.hud-fps-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.45rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.fps-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green-primary);
}

.fps-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================================================== */
/* ===== INTERACTIVE DETAIL INSPECTION MODAL (LIGHT STUDIO) ===== */
/* =================================================================== */

.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.detail-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.detail-card-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 920px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

.detail-modal.active .detail-card-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: -1.25rem;
    right: -1.25rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--saffron-primary);
    color: #FFFFFF;
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

.detail-card-glass {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.detail-image-box {
    position: relative;
    min-height: 420px;
    background: #F1F5F9;
    overflow: hidden;
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.detail-card-glass:hover .detail-img {
    transform: scale(1.05);
}

.detail-category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.45rem 1.1rem;
    background: var(--saffron-primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 99px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px var(--saffron-glow);
}

.detail-info-box {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-header-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.detail-meta-item {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--saffron-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-chakra);
}

.stat-label {
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.detail-action-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.detail-action-btn.secondary {
    background: #F1F5F9;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    justify-content: center;
}

.detail-action-btn.secondary:hover {
    background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--saffron-glow);
}

.detail-action-btn.secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.detail-action-btn.secondary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

/* =================================================================== */
/* ===== RESPONSIVE MOBILE MEDIA QUERIES ===== */
/* =================================================================== */

@media (max-width: 768px) {
    /* Compact Pristine Light Top Header Bar */
    .hud-header {
        top: 0.4rem;
        left: 0.4rem;
        right: 0.4rem;
        transform: none !important;
        padding: 0.45rem 0.75rem;
        border-radius: 14px;
        gap: 0.5rem;
    }

    .hud-header-left, .hud-header-right {
        gap: 0.4rem;
    }

    .hud-logo {
        width: 28px;
        height: 28px;
    }

    .hud-brand-name {
        font-size: 0.85rem;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

    .hud-stat-pill, .hud-brand-tag, .hud-divider {
        display: none !important;
    }

    .hud-icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .hud-link-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
        border-radius: 10px;
        gap: 0.35rem;
    }

    .hud-link-btn span {
        display: none !important; /* Icon-only button on mobile to prevent overflow */
    }

    /* Category Navigation Bar (Positioned Below Header cleanly, transform reset prevents left shift!) */
    .hud-categories {
        top: 3.6rem;
        left: 0.4rem;
        right: 0.4rem;
        transform: none !important; /* Fix: Cancel desktop translateX(-50%) offset */
        width: auto;
        padding: 0.3rem 0.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--border-light);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

    .hud-category-scroll {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.1rem 0.2rem;
    }

    .hud-category-scroll::-webkit-scrollbar {
        display: none;
    }

    .cat-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .cat-pill i {
        font-size: 0.75rem;
    }

    /* Hide FPS debug widget & guidance overlay on mobile */
    .hud-fps-widget, .hud-guidance {
        display: none !important;
    }

    /* Bottom Mode Toolbar - Perfectly Centered & Compact */
    .hud-mode-toolbar {
        bottom: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.35rem 0.5rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .hud-mode-group {
        gap: 0.4rem;
    }

    .mode-btn {
        padding: 0.5rem 0.95rem;
        border-radius: 10px;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .mode-btn i {
        font-size: 0.85rem;
    }

    .mode-btn span {
        display: inline-block !important;
        font-size: 0.78rem;
        font-weight: 700;
    }

    /* Mobile: Show strictly Helix 3D Spiral & 3D Grid */
    .mode-btn[data-mode="cylinder"],
    .mode-btn[data-mode="sphere"] {
        display: none !important;
    }

    .mode-btn[data-mode="helix"],
    .mode-btn[data-mode="grid"] {
        display: flex !important;
    }

    /* Compact Detail Inspection Modal on Mobile (Full Un-cropped Photo, ZERO Scrollbar) */
    .detail-modal-container {
        padding: 0.5rem;
    }

    .modal-close-btn {
        top: 0.65rem;
        right: 0.65rem;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.92);
        z-index: 20;
    }

    .detail-card-glass {
        grid-template-columns: 1fr;
        max-height: 90vh !important;
        height: auto;
        border-radius: 24px;
        overflow: hidden !important; /* Fix: ZERO scrollbars on mobile modal! */
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    }

    .detail-image-box {
        height: 54vh;
        min-height: 280px;
        max-height: 60vh;
        flex-grow: 1;
        position: relative;
        background: #0F172A; /* Soft studio dark backdrop for crisp un-cropped photos */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .detail-img {
        width: 100%;
        height: 100%;
        object-fit: contain !important; /* Display 100% FULL PHOTO without any cropping! */
    }

    .detail-category-badge {
        top: 0.65rem;
        left: 0.65rem;
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
        z-index: 10;
    }

    .detail-info-box {
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-shrink: 0;
        background: #FFFFFF;
    }

    .detail-header-meta {
        gap: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .detail-meta-item {
        font-size: 0.72rem;
    }

    .detail-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        line-height: 1.25;
    }

    .detail-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Hide heavy stat blocks on mobile to ensure zero scrolling */
    .detail-stats-grid {
        display: none !important;
    }

    .detail-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
        width: 100%;
        margin-top: auto;
    }

    .detail-action-btn.secondary.small {
        flex: 1;
        justify-content: center;
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}
