@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Condensed:wght@400;700&display=swap');
/* Importando a nova fonte 'Inter' */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Condensed:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #FFC107;
    --secondary-color: #9f46e4;
    --accent-color: #00f2ea;
    --bg-dark: #121212;
    --bg-light: #1E1E1E;
    --text-light: #F5F5F5;
    --text-dark: #121212;
    --font-title: 'Press Start 2P', cursive;
    --font-body: 'Roboto Condensed', sans-serif;
    --font-lore: 'Inter', sans-serif;
    /* Nova variável de fonte */

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0) 100%);
    z-index: 100;
    transition: background-color 0.3s;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 6rem);
    color: white;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.primary-cta {
    padding: 15px 40px;
    font-size: 1.5rem;
}

.cta-button.disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
}

.cta-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* --- SECTIONS --- */
.section-dark {
    background-color: var(--bg-dark);
}

.section-light {
    background-color: var(--bg-light);
}

h2 {
    font-family: var(--font-title);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 .highlight {
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #aaa;
}

.container-lore {
    max-width: 800px;
}

.lore-text p {
    text-align: justify;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #ccc;
}

/* --- FEATURE GRIDS (Seções #game e #education) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 1rem;
    color: #aaa;
    max-width: 100%;
}

/* --- SEÇÃO PANTEÃO REIMAGINADA --- */
.pantheon-grid {
    display: grid;
    /* Cria um grid que se adapta, com cards de no mínimo 350px */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.idol-card-detailed {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Garante que o conteúdo interno se empilhe */
}

.idol-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.idol-avatar-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Proporção de widescreen */
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--border-color);
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

/* Efeito de estática/glitch no placeholder */
.idol-avatar-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
    animation: static-anim 0.3s infinite linear;
    opacity: 0.5;
}

@keyframes static-anim {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

.idol-info {
    padding: 20px;
    flex-grow: 1;
    /* Faz esta área crescer para preencher o espaço */
    display: flex;
    flex-direction: column;
}

.idol-info h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    text-align: left;
}

.idol-info .idol-title {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

.idol-info p {
    font-size: 0.95rem;
    color: #aaa;
    max-width: 100%;
    text-align: left;
    margin: 0;
    flex-grow: 1;
}

/* Card especial de sugestão */
.suggestion-card {
    background-color: var(--card-bg);
    border-style: dashed;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.suggestion-card .idol-info h3 {
    text-align: center;
}

.suggestion-card .idol-info p {
    text-align: center;
    margin-bottom: 20px;
}

/* --- SEÇÃO "A FORJA" (DETALHADA) --- */
.tech-grid.detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-grid.detailed .tech-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.tech-card-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.tech-grid.detailed .tech-card h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    color: #aaa;
    margin: 0;
    font-weight: 400;
}

.tech-grid.detailed .tech-card span {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.tech-grid.detailed .tech-card p {
    font-size: 0.95rem;
    color: #888;
    margin-top: 15px;
    flex-grow: 1;
    text-align: left;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0c0c0c;
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--accent-color);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* --- KEYFRAMES --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(45% 0 50% 0);
    }

    20% {
        clip-path: inset(10% 0 85% 0);
    }

    40% {
        clip-path: inset(55% 0 20% 0);
    }

    60% {
        clip-path: inset(5% 0 90% 0);
    }

    80% {
        clip-path: inset(30% 0 60% 0);
    }

    100% {
        clip-path: inset(50% 0 45% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 80% 0);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
    }

    40% {
        clip-path: inset(25% 0 65% 0);
    }

    60% {
        clip-path: inset(70% 0 10% 0);
    }

    80% {
        clip-path: inset(40% 0 50% 0);
    }

    100% {
        clip-path: inset(20% 0 75% 0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .main-nav {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* --- ESTILOS ADICIONAIS PARA A SEÇÃO DE DOWNLOAD --- */

#download .container {
    text-align: center;
}

.download-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.download-button-container {
    margin-bottom: 30px;
}

.download-cta-text {
    font-family: var(--font-body);
    color: #888;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* --- NOVAS SEÇÕES IMERSIVAS --- */

/* --- SEÇÃO DE LORE CORRIGIDA --- */
.parallax-section {
    padding: 150px 20px;
    min-height: 80vh;
    /* Altura um pouco menor para melhor ritmo de scroll */

    /* A MÁGICA DO PARALLAX */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #222;
}

.parallax-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente mais forte para garantir a legibilidade do texto sobre qualquer imagem */
    background: radial-gradient(circle, rgba(18, 18, 18, 0.6) 0%, rgba(18, 18, 18, 0.95) 85%);
    z-index: 1;
}

.container-lore {
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.container-lore h2 {
    font-size: 3rem;
}

/* Usando a nova fonte para a Lore */
.lore-text p {
    font-family: var(--font-lore);
    /* APLICA A NOVA FONTE AQUI */
    font-size: 1.2rem;
    color: #ddd;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.8;
}


/* SEÇÃO DE GAMEPLAY */
#gameplay .feature-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

#gameplay .feature-card p {
    text-align: center;
}


/* FICHA TÉCNICA (A FORJA) */
.spec-sheet {
    max-width: 900px;
    margin: 50px auto 0 auto;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item span {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.spec-item strong {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 700;
}

/* --- ESTILOS ADICIONAIS PARA VOTAÇÃO E ÍCONES --- */

/* Ajuste no placeholder do Ídolo para usar ícones */
.idol-avatar-placeholder i {
    font-size: 4rem;
    color: var(--border-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.idol-card-detailed:hover .idol-avatar-placeholder i {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Card de Sugestão/Votação */
.suggestion-card {
    background-color: var(--card-bg);
    border-style: dashed;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.suggestion-card .idol-info h3 {
    text-align: center;
}

.suggestion-card .idol-info p {
    text-align: center;
    margin-bottom: 20px;
}

/* --- ESTILOS PARA A PÁGINA DE VOTAÇÃO --- */
.criteria-box {
    max-width: 800px;
    margin: -20px auto 40px auto;
    background-color: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    text-align: left;
}

.criteria-box h4 {
    font-weight: bold;
    color: var(--text-light);
}

.criteria-box ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.criteria-box li {
    color: #aaa;
    font-size: 0.9rem;
}

.criteria-box li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.candidate-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.candidate-card h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.candidate-card p {
    color: #aaa;
    font-size: 0.9rem;
    flex-grow: 1;
}

.vote-count {
    font-weight: bold;
    color: var(--text-light);
    margin: 15px 0;
}

.candidate-card .cta-button {
    width: 100%;
}

.vote-feedback {
    display: block;
    margin-top: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.suggestion-box {
    max-width: 700px;
}

#suggestion-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

#suggestion-input {
    flex-grow: 1;
    background-color: #333;
    border: 1px solid var(--border-color);
    color: white;
    padding: 15px;
    border-radius: 4px;
    font-size: 1rem;
}

#suggestion-form .cta-button {
    flex-shrink: 0;
}

/* --- SEÇÃO DE LORE CORRIGIDA (FOCO NO TEXTO) --- */

/* Fundo sutil para a seção */
.section-lore {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.section-lore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.5), transparent 70%);
    opacity: 0.5;
}

.container-lore {
    max-width: 800px;
    position: relative;
    /* Para ficar acima do fundo */
    z-index: 2;
}

.lore-text {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 40px;
    border-top: 3px solid var(--primary-color);
}

.lore-text p {
    font-family: var(--font-lore);
    font-size: 1.1rem;
    color: #ccc;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 25px;
}

.lore-text p:last-child {
    margin-bottom: 0;
}

.lore-text strong {
    color: var(--text-light);
    font-weight: 700;
}

/* --- SEÇÃO DE COMUNIDADE (DISCORD) --- */
.section-community {
    background-color: var(--bg-light);
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.section-community .cta-button {
    background-color: #5865F2;
    /* Cor oficial do Discord */
    color: white !important;
    font-family: var(--font-body);
    font-weight: bold;
}