@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;900&display=swap');

body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

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

/* Header transparente que fica sólido ao fazer scroll */
header {
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(45, 18, 71, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Badges e Selos */
.selo-pnab {
    transition: transform 0.3s ease;
}
.selo-pnab:hover {
    transform: scale(1.05);
}

/* Acordeão para dicas literárias */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Efeito glassmorphism para cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animações e transições */
.hover-scale {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Efeitos de Profundidade e Animação Adicionais */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-dark {
    background: rgba(60, 5, 80, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tilt-effect {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

.animate-float {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float-delayed {
    animation: floating 7s ease-in-out infinite 2s;
}

/* Esconder barra de rolagem mas permitir scroll */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(225, 42, 98, 0.5);
    border-radius: 20px;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Forçar VLibras a ficar sempre no topo e visível */
div[vw] {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2147483647 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}



/* =========================================
   AVISO DE COOKIES (LGPD)
   ========================================= */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(20, 5, 27, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(225, 42, 98, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

#cookie-banner.show {
    bottom: 0;
}
