/* Acervo UFF — Identidade Visual Oficial & Sistema de Design Unificado (Light & Dark) */

:root {
    /* Identidade Cromática Oficial UFF */
    --color-magenta: #E51A68;
    --color-turquesa: #2BB7C6;
    --color-vinho: #5C1D54;
    --color-petroleo: #175C5B;

    /* Tema Claro (Padrão) */
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-surface-hover: #F1F5F9;
    --color-border: #E2E8F0;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);

    /* Tipografia Oficial */
    --font-heading: 'Coco Gothic', 'Jost', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.dark {
    /* Tema Escuro (Cinematográfico) */
    --color-bg: #121316;
    --color-surface: #1A1C23;
    --color-surface-hover: #222530;
    --color-border: #2E3240;
    --color-text-main: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

/* Tipografia Base */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
.dark ::-webkit-scrollbar-track {
    background: #1A1C23;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-magenta);
}

/* Glass Panels & Navbars */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: var(--color-card-shadow);
}
.dark .glass-panel {
    background: rgba(26, 28, 35, 0.92);
    border: 1px solid var(--color-border);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}
.dark .glass-nav {
    background: rgba(18, 19, 22, 0.95);
    border-bottom: 1px solid var(--color-border);
}

/* Gradient text utility */
.gradient-text-cinema {
    background: linear-gradient(135deg, #E51A68 0%, #5C1D54 60%, #2BB7C6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glow effects */
.glow-magenta:hover {
    box-shadow: 0 4px 20px rgba(229, 26, 104, 0.3);
}

.glow-turquesa:hover {
    box-shadow: 0 4px 20px rgba(43, 183, 198, 0.3);
}

/* Badges por Categoria Oficial */
.badge-category-figurino {
    background-color: rgba(229, 26, 104, 0.1);
    color: #E51A68;
    border: 1px solid rgba(229, 26, 104, 0.25);
}
.badge-category-cenografia {
    background-color: rgba(43, 183, 198, 0.1);
    color: #2BB7C6;
    border: 1px solid rgba(43, 183, 198, 0.25);
}
.badge-category-objetos {
    background-color: rgba(23, 92, 91, 0.12);
    color: #175C5B;
    border: 1px solid rgba(23, 92, 91, 0.25);
}
.dark .badge-category-objetos {
    background-color: rgba(43, 183, 198, 0.15);
    color: #5eead4;
    border-color: rgba(43, 183, 198, 0.3);
}

/* Micro-animação do botão da Mala */
@keyframes badge-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.animate-badge-pop {
    animation: badge-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Lightbox Modal */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox-backdrop.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.lightbox-backdrop.active .lightbox-content {
    transform: scale(1);
}

/* Custom Thin Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.65);
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

/* ===== NOVO DESIGN SYSTEM — LAYOUT FIGMA 2026 ===== */

/* Fundo da seção Infográfico ("Como o Acervo Funciona") — Azul-gelo suave do Figma */
.section-infographic-bg {
    background-color: #CCE5E9;
}
.dark .section-infographic-bg {
    background-color: #132A2E;
}

/* Cor de fundo da seção catálogo */
.section-catalog-bg {
    background-color: #EAF4F6;
}
.dark .section-catalog-bg {
    background-color: #0F1E22;
}

/* Círculos do Infográfico */
.infographic-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(11, 110, 110, 0.18);
    position: relative;
    z-index: 2;
}
.infographic-circle-teal { background-color: #0B6E6E; }
.infographic-circle-magenta { background-color: #C80046; }
.infographic-circle-purple { background-color: #7A2060; }
.infographic-circle-dark { background-color: #0B6E6E; }

/* Hero Video/GIF Background (Medidas e cores exatas do Figma Dev Mode) */
.hero-video-container {
    position: relative;
    width: 100%;
    min-height: 761px;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 42%, #F9FCFC 0%, #E3F1F3 52%, #CBE4E8 100%);
}
.dark .hero-video-container {
    background: radial-gradient(ellipse at 50% 42%, #1E262B 0%, #141B1F 60%, #0E1317 100%);
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 102, 106, 0.40) 0%, rgba(0, 102, 106, 0) 100%);
    z-index: 1;
    pointer-events: none;
}
.dark .hero-gradient-overlay {
    background: linear-gradient(0deg, rgba(0, 50, 54, 0.65) 0%, rgba(14, 19, 23, 0.25) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 768px;
    padding: 2rem 1rem 2.5rem;
}

/* Botão de pesquisa estilo Figma (#008B94 exato do Dev Mode) */
.btn-search-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13.5px 32px 14px 32px;
    background-color: #008B94;
    color: white;
    border: none;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-search-hero:hover {
    background-color: #00747C;
    transform: translateY(-1px);
}

/* Pills de sugestão na hero (#E52E63 exato do Dev Mode) */
.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    border-radius: 6px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    background: #E52E63;
    transition: background-color 0.2s, transform 0.15s;
    text-decoration: none;
}
.hero-pill:hover {
    background: #C91E50;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Cards do catálogo estilo Figma */
.catalog-card-figma {
    background: white;
    border-radius: 26px;
    border: 1.5px solid #F3B8CE;
    padding: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.dark .catalog-card-figma {
    background: var(--color-surface);
    border-color: rgba(229, 26, 104, 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.catalog-card-figma:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(229, 26, 104, 0.12);
}
.catalog-card-figma .card-image {
    width: 100%;
    height: 210px;
    border-radius: 18px;
    object-fit: cover;
    background-color: #F8FAFC;
}
.catalog-card-figma .card-body {
    padding: 14px 6px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.catalog-card-figma .card-code {
    font-size: 10px;
    color: #E51A68;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.catalog-card-figma .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 4px 0 14px;
}
.btn-ver-detalhes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 0;
    background-color: #E51A68;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    margin-top: auto;
}
.btn-ver-detalhes:hover {
    background-color: #C91558;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Cards de Categoria estilo Figma */
.category-card-figma {
    background: white;
    border-radius: 28px;
    border: 1.5px solid #CBE2E6;
    padding: 14px 14px 18px;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(11, 110, 110, 0.05);
}
.dark .category-card-figma {
    background: var(--color-surface);
    border-color: var(--color-border);
}
.category-card-figma:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(11, 110, 110, 0.12);
}

/* Seção Galeria/Vídeo Petróleo + Barra Vinho */
.section-video-dark {
    background-color: #066868;
    color: white;
    position: relative;
    overflow: hidden;
}
.video-counter-bar {
    background-color: #74225C;
    padding: 14px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    letter-spacing: 0.3px;
}
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.3s;
}
.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.32);
}
.video-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.btn-assistir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background-color: #E51A68;
    color: white;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
}
.btn-assistir:hover {
    background-color: #C91558;
    color: white;
    transform: translateY(-1px);
}
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background-color: #E51A68;
    color: white;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
}
.btn-outline-white:hover {
    background-color: #C91558;
    color: white;
    transform: translateY(-1px);
}

/* FAQ Accordion estilo Figma */
.faq-section { max-width: 680px; margin: 0 auto; }
.faq-question {
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 15px 22px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #0B6E6E;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(11, 110, 110, 0.06);
}
.faq-question:hover {
    background-color: #F8FCFD;
}
.faq-question.active {
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}
.faq-answer {
    background-color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid #D5E8EC;
    border-radius: 0 0 12px 12px;
    padding: 18px 22px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.7;
    display: none;
}
.faq-answer.open { display: block; }
.dark .faq-question {
    background-color: var(--color-surface);
    color: #2BB7C6;
}
.dark .faq-answer {
    background-color: rgba(26, 28, 35, 0.85);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

/* Navbar estilo Figma */
.nav-figma-link {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #334155;
    text-decoration: none;
    padding: 6px 10px;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}
@media (min-width: 640px) {
    .nav-figma-link {
        font-size: 11.5px;
        letter-spacing: 1px;
        padding: 6px 12px;
    }
}
@media (min-width: 1024px) {
    .nav-figma-link {
        font-size: 12px;
        letter-spacing: 1.1px;
        padding: 6px 14px;
    }
}
.nav-figma-link:hover,
.nav-figma-link.active {
    color: #0B6E6E;
}
.nav-figma-link.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    background-color: #2BB7C6;
    border-radius: 2px;
}
@media (min-width: 640px) {
    .nav-figma-link.active::after {
        left: 12px;
        right: 12px;
    }
}
@media (min-width: 1024px) {
    .nav-figma-link.active::after {
        left: 14px;
        right: 14px;
    }
}
.dark .nav-figma-link { color: #E2E8F0; }
.dark .nav-figma-link:hover,
.dark .nav-figma-link.active { color: #2BB7C6; }

/* Hero zoom animation */
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* No-scrollbar utility for horizontal submenus */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

