/* =========================================================================
   Design System & Configurações Globais
   Baseado na estética "Cinematográfica Premium" (Proposta 02)
   ========================================================================= */

:root {
    /* Cores de Fundo */
    --color-bg-deep: #0B0616;
    /* Fundo hiper escuro */
    --color-bg-navy: #1A1230;
    /* Azul marinho/roxeado */

    /* Cores de Destaque (Metálicos) */
    --color-gold-light: #FBE6A2;
    --color-gold: #D4AF37;
    --color-gold-dark: #997A15;
    --color-copper: #B87333;
    --color-amber: #FF8C00;

    /* Textos genéricos */
    --color-text-main: #FFFFFF;
    --color-text-muted: #B9B4C7;

    /* Gradientes */
    --gradient-gold: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(212, 175, 55, 0.4) 0%, rgba(26, 18, 48, 0) 70%);

    /* Vidro (Glassmorphism) */
    --glass-bg: rgba(26, 18, 48, 0.4);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Tipografia */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Fundo da Página Inicial baseado na nova identidade 2026 */
.home-page {
    background-image: url('../images/fundo-2026-novo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

/* Overlay para escurecer um pouco o fundo e melhorar a leitura */
.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11, 6, 22, 0.8) 100%);
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================================================
   Navegação (Glassmorphism)
   ========================================================================= */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

/* Menu Mobile (Hambúrguer) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
}

/* Efeito X no botão quando aberto */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================================
   Hero Section (Página Inicial)
   ========================================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    /* offset nav */
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: var(--color-amber);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: pulse 3s infinite;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.main-title .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 5rem;
}

.event-details {
    display: flex;
    gap: 40px;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.detail-item svg {
    color: var(--color-gold);
}

.detail-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-main);
}

/* =========================================================================
   Botões
   ========================================================================= */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg-deep);
    border: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* =========================================================================
   Páginas Internas (Base)
   ========================================================================= */
.internal-page {
    /* Fundo dinâmico da nova identidade 2026 */
    background-image: url('../images/fundo-2026-novo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.internal-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 6, 22, 0.85);
    /* Overlay mais escuro para leitura */
    z-index: 0;
}

.page-header {
    padding: 150px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-intro {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   Animações
   ========================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-up.delay {
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

/* =========================================================================
   Responsividade
   ========================================================================= */
@media (max-width: 991px) {
    .main-title {
        font-size: 3.5rem;
    }

    .main-title .highlight {
        font-size: 3.8rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0 10px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 6, 22, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 10px;
    }

    h2,
    .about-section h2,
    .rules-content h2,
    .glamour-card h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .main-title {
        font-size: 1.2rem;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .main-title .highlight {
        font-size: 1.4rem;
        display: block;
        margin-top: 5px;
        white-space: normal;
    }

    .event-details {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .page-title {
        font-size: 1.8rem;
    }
}