@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Condensed:wght@400;700&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;
}

* {
    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: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* --- HEADER (Estilo Unificado) --- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #222;
}

.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 (Estilo Jornada) --- */
.hero-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-dark);
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: clamp(3rem, 10vw, 5rem);
    color: white;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* --- SEÇÕES --- */
.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-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    color: #aaa;
}

/* --- CARD PRÓXIMA LIVE --- */
.next-live-container {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.next-live-header {
    font-family: var(--font-title);
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.next-live-content p {
    margin-bottom: 20px;
}

.next-live-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.next-live-description {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

.next-live-countdown {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-top: 10px;
}

.live-button {
    background-color: #ff0000;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
    text-decoration: none;
    display: inline-block;
}

.live-button.starting-soon {
    background-color: var(--primary-color);
    color: var(--dark-text-color) !important;
    animation: none;
}

.next-live-container.live {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* --- CRONOGRAMA INTERATIVO --- */
.cronograma-semanal-container {
    width: 100%;
    margin-top: 40px;
    text-align: left;
}

.week-card {
    background: var(--bg-dark);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.week-header {
    padding: 25px 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #333;
}

.week-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-header h3 .highlight {
    color: var(--primary-color);
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-item {
    border-bottom: 1px solid #2a2a2a;
}

.mission-item:last-child {
    border-bottom: none;
}

.mission-header {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mission-header:hover {
    background-color: rgba(255, 193, 7, 0.05);
}

.mission-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.mission-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mission-day {
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #888;
}

.mission-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.expand-icon {
    margin-left: auto;
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease;
}

.mission-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.video-embed-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.mission-item.expanded .video-embed-container {
    max-height: 600px;
}

.video-embed-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
    padding-top: 15px;
}

.plan-text-container {
    padding: 20px 30px;
    border-top: 1px solid #2a2a2a;
}

.plan-text-header {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plan-text-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    max-width: 100%;
}

.mission-item.past {
    opacity: 0.6;
}

.mission-item.past .mission-icon {
    color: #28a745;
}

.mission-item.current {
    background-color: rgba(255, 193, 7, 0.1);
}

.mission-item.current .mission-icon {
    color: var(--primary-color);
}

.mission-item.current .mission-title {
    color: var(--primary-color);
}

.mission-item.live .mission-icon {
    color: #ff0000;
    animation: pulse 1.5s infinite;
}

/* --- DEMAIS ESTILOS --- */
.container-lore {
    max-width: 800px;
}

.lore-text p {
    text-align: justify;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #ccc;
}

.final-paragraph {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-light) !important;
    text-decoration: none;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-buttons-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.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 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% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
    }

    .main-nav {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* --- 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;
}