/* public/css/visor-acervo.css */
body {
    background-color: #0f1015;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f8f9fa;
}

.viewer-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(25, 15, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.canvas-3d-wrapper {
    position: relative;
    width: 100%;
    height: 540px;
    border-radius: 12px;
    overflow: hidden;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.side-panel-content {
    height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.glass-input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8f9fa !important;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.glass-input option {
    background-color: #1a1a1a;
    color: #fff;
}

model-viewer {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 60%, #020617 100%);
    --poster-color: transparent;
    touch-action: none !important;
    outline: none;
}

@media (max-width: 992px) {
    .viewer-card, .glass-card-container {
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
}

.hotspot-neon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #06b6d4;
    box-shadow: 0 0 15px #06b6d4, 0 0 25px #06b6d4;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.hotspot-neon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.6);
    animation: pulseNeon 1.8s infinite ease-out;
}

.hotspot-neon:hover {
    transform: scale(1.4);
    background: #22d3ee;
}

@keyframes pulseNeon {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.glass-card-container {
    display: none;
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 310px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    z-index: 1000;
}

.glass-card-container h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8 !important;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.glass-card-container p {
    font-size: 0.82rem;
    color: #e2e8f0 !important;
    margin-bottom: 0;
    line-height: 1.45;
}

.glass-card-container .btn-close-glass {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.glass-card-container .btn-close-glass:hover {
    background: #f43f5e;
}

.cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.cinematic-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.cinematic-loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #38bdf8;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.controls-hint {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-fullscreen {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-fullscreen:hover {
    background: #0284c7;
    color: #fff;
}

.btn-model-select {
    border-radius: 8px;
    font-weight: 500;
}