@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. RESET & VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    --bg-dark: #100C1F;
    --bg-card: #19142E;
    --bg-input: #231C3D;
    --border-color: rgba(212, 175, 55, 0.35);
    --gold-primary: #F0C265;
    --gold-hover: #E6B04E;
    --btn-gradient: linear-gradient(180deg, #FCE8A2 0%, #E6B04E 100%);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, #20173D 0%, #100C1F 70%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo, .card-title, .hero h1, .categories-grid h2 {
    font-family: 'Quicksand', sans-serif !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.header,
.main-header {
    background-color: #12101a;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
}

.logo span {
    color: var(--gold-primary);
}

/* Reset de listas para o Menu */
.nav-menu,
.main-nav,
.main-nav ul,
header nav ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: center;
}

.main-nav li,
header nav li {
    display: inline-block !important;
    list-style: none !important;
}

.nav-menu a,
.main-nav a,
header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.main-nav a:hover,
header nav a:hover {
    color: var(--gold-primary) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 2px;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
.hero {
    text-align: center;
    padding: 50px 20px 30px;
}

.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero h1 span {
    color: var(--gold-primary);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   4. GRADE DE HORAS, CATEGORIAS E NÚMEROS
   ========================================================================== */
.categories-grid {
    padding: 30px 0 50px;
}

.categories-grid h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Card Clássico Quadrado */
.hour-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 170px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hour-card.active-hour:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

/* Título Centralizado */
.card-title {
    font-family: 'Quicksand', sans-serif;
    color: #f3e5ab;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Botão Amarelo/Dourado Estilo Sonheiro */
.badge-active {
    background: var(--btn-gradient);
    color: #1C1410;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 20px;
    width: 130px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(230, 176, 78, 0.3);
    transition: all 0.2s ease;
}

.badge-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 176, 78, 0.4);
    background: #F3CD76;
}

/* ==========================================================================
   5. PÁGINA DE ARTIGOS / POSTS
   ========================================================================== */
.post-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-content h1,
article h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.post-content h2,
article h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 6px;
}

.post-content p,
article p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #e0e0e0;
}

.post-content li {
    margin-bottom: 8px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Estilização do Breadcrumb */
.breadcrumb, .breadcrumbs {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a, .breadcrumbs a {
    color: #f3e5ab !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover, .breadcrumbs a:hover {
    color: var(--gold-primary) !important;
    text-decoration: underline;
}

.breadcrumb span, .breadcrumbs span {
    color: #888888;
    margin: 0 6px;
}

/* Links do conteúdo */
main a, 
.container a:not(.btn-square):not(.badge-active):not(.logo) {
    color: #f3e5ab !important;
    text-decoration: none;
}

main a:hover, 
.container a:not(.btn-square):not(.badge-active):not(.logo):hover {
    color: var(--gold-primary) !important;
    text-decoration: underline;
}

/* Caixa do Índice (TOC) */
.table-of-contents {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.table-of-contents h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--gold-primary) !important;
}

/* ==========================================================================
   6. RODAPÉ (FOOTER)
   ========================================================================== */
.footer, .main-footer {
    background-color: #08060e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links, .footer-nav {
    display: flex;
    gap: 15px;
}

.footer-links a, .footer-nav a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-nav a:hover {
    color: var(--gold-primary) !important;
}

/* ==========================================================================
   7. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu, .main-nav ul {
        display: none !important;
        width: 100%;
        flex-direction: column !important;
        gap: 12px !important;
        padding-top: 15px !important;
    }

    .nav-menu.active, .main-nav.active ul {
        display: flex !important;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   BANNER DE COOKIES (LGPD)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #12101a;
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    display: none; /* Começa oculto até o JS verificar */
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    flex: 1;
}

.cookie-banner a {
    color: #f3e5ab;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: var(--btn-gradient);
    color: #1C1410;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 176, 78, 0.3);
    transition: all 0.2s ease;
}

.btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 176, 78, 0.4);
    background: #F3CD76;
}

.btn-reject {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #444;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    border-color: var(--gold-primary);
    color: #ffffff;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
}
