/* --- VARIAVEIS E ESTILOS GLOBAIS --- */
:root { --gradiente-azul: linear-gradient(135deg, #B5E0F7, #7FB2E7); --roxo-konectomi: #82389C; --roxo-claro: #A855F7; --gradiente-verde: linear-gradient(135deg, #00F41C, #2DB796); --gradiente-opcional: linear-gradient(135deg, #1DA1F2, #6C63FF); --gradiente-roxo-azul: linear-gradient(135deg, #82389C, #7FB2E7); --vermelho-evento: #F44336; --branco-base: #FFFBFF; --preto-suave: #1a1a2e; --cinza-claro: #f4f4f8; --font-principal: 'Poppins', sans-serif; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-principal); background-color: var(--branco-base); color: var(--preto-suave); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; overflow: hidden; }
.section-title { font-size: 2.8rem; color: var(--roxo-konectomi); text-align: center; margin-bottom: 60px; font-weight: 700; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.learn-more-link { display: inline-block; color: var(--roxo-konectomi); font-weight: 600; text-decoration: none; position: relative; padding-bottom: 5px; margin-top: 15px; }
.learn-more-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--gradiente-verde); transition: transform 0.3s ease; transform-origin: left; }
.learn-more-link:hover::after { transform: scaleX(0); transform-origin: right; }
.cta-button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px; background: var(--gradiente-verde); color: var(--branco-base); text-decoration: none; font-weight: 600; border-radius: 50px; transition: transform 0.3s ease, box-shadow 0.3s ease; border: none; font-size: 1rem; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 244, 28, 0.25); }

/* --- CABEÇALHO --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: all 0.4s ease; }
.main-header.scrolled { background-color: rgba(26, 26, 46, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 10px 0; }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 1.5rem; }
.logo img { height: 40px; margin-right: 10px; }
.logo-text-gradient { background: var(--gradiente-opcional); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--branco-base); font-weight: 600; position: relative; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--gradiente-verde); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-event-link { font-weight: 700 !important; }
.nav-event-link span { display: inline-block; padding: 2px 0; }
.nav-event-konectomi { background: var(--gradiente-roxo-azul); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-event-con { background: var(--gradiente-verde); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-event-2025 { color: var(--vermelho-evento); }

.nav-event-link::after {
    background: linear-gradient(to right, #82389C, #2DB796, #F44336);
}

.nav-auth-buttons { display: flex; align-items: center; gap: 10px; }
.login-button { color: var(--branco-base); background-color: transparent; border: 1px solid rgba(255,255,255,0.5); text-decoration: none; padding: 8px 20px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; }
.login-button:hover { background-color: rgba(255,255,255,0.1); }
.signup-button { color: #fff; background: var(--gradiente-verde); border: 1px solid transparent; text-decoration: none; padding: 8px 20px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; }
.signup-button:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0, 244, 28, 0.3); }
.hamburger-button { display: none; background: transparent; border: none; cursor: pointer; }
.hamburger-button img { width: 30px; height: 30px; filter: invert(1); }

/* --- HERO SECTION --- */
.hero-section { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--branco-base); position: relative; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(15, 15, 30, 0.8); z-index: -1; }
.main-title { font-size: 4.5rem; font-weight: 800; line-height: 1.2; }
#rotating-text { display: inline-block; transition: all 0.5s ease-in-out; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-green { background-image: var(--gradiente-verde); }
.text-gradient-purple { background-image: linear-gradient(135deg, #A855F7, #6C63FF); }
.text-gradient-blue { background-image: var(--gradiente-opcional); }
.subtitle { font-size: 1.25rem; margin: 20px 0 40px; max-width: 600px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.8); }
.cta-arrow { width: 20px; filter: invert(1); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-3px); } }

/* --- SEÇÕES --- */
.about-section { background-color: var(--cinza-claro); }
.about-section p { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.15rem; color: #333; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.game-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px 0 rgba(0,0,0,0.08); transition: all 0.4s ease; position: relative; }
.game-card:hover { transform: translateY(-10px); box-shadow: 0 12px 40px 0 rgba(127, 178, 231, 0.3); }
.game-card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 20px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.card-content h3 { font-size: 1.5rem; color: var(--roxo-konectomi); margin: 0; }
.info-button { background: transparent; border: none; cursor: pointer; padding: 5px; }
.info-button img { width: 24px; height: 24px; transition: transform 0.3s; }
.info-button:hover img { transform: scale(1.2); }
.game-card.is-placeholder { background-color: #e9e9f3; }
.game-card.is-placeholder img { opacity: 0.5; }
.coming-soon-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(26, 26, 46, 0.7); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; font-weight: 700; pointer-events: none; }

.security-section { background-color: var(--cinza-claro); }
.security-content { display: flex; align-items: center; gap: 50px; }
.security-icon-area img { width: 100px; height: 100px; color: var(--roxo-konectomi); stroke-width: 1.5; }
.security-text-area h3 { font-size: 2rem; margin-bottom: 20px; }
.security-text-area ul { list-style: none; padding-left: 0; }
.security-text-area ul li { padding-left: 25px; position: relative; margin-bottom: 10px; }
.security-text-area ul li::before { content: '✔'; position: absolute; left: 0; color: #2DB796; }

.community-section, .final-cta-section { text-align: center; }
.community-section p, .final-cta-section p { max-width: 800px; margin: 0 auto 40px auto; font-size: 1.1rem; }
.final-cta-section { background-color: var(--preto-suave); color: var(--branco-base); border-radius: 20px; margin: 0 20px; }
.final-cta-section h2 { color: var(--branco-base); font-size: 2.5rem; }

.learning-section, .team-section { background-color: var(--branco-base); }
.team-section, .careers-section { background-color: var(--cinza-claro); }
.learning-content, .team-content, .careers-content { display: flex; align-items: center; gap: 50px; }
.learning-text, .team-text, .careers-text { flex: 1; }
.learning-image, .team-image, .careers-image { flex: 1; }
.learning-image img, .team-image img, .careers-image img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover; aspect-ratio: 16/10; }
.learning-content { flex-direction: row-reverse; }
.learning-text h2, .team-text h3, .careers-text h2 { font-size: 2.5rem; color: var(--roxo-konectomi); margin-bottom: 15px; }

/* CORREÇÃO APLICADA AQUI */
.learning-text .cta-button, 
.careers-text .cta-button {
    margin-top: 30px;
}
/* FIM DA CORREÇÃO */

.event-title-section {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

/* --- RODAPÉ --- */
.main-footer-bottom { background-color: var(--preto-suave); color: var(--branco-base); padding: 60px 0 20px 0; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-social { display: flex; gap: 15px; align-items: center;}
.footer-social a { display: inline-block; }
.footer-social img { width: 28px; height: 28px; fill: #888; color: #888; transition: all 0.3s; }
.footer-social a:hover img { fill: var(--branco-base); color: var(--branco-base); transform: scale(1.1); }
.footer-copyright { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9rem; color: #aaa; }

/* --- MODAL --- */
.modal { position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--branco-base); padding: 30px; border-radius: 20px; max-width: 600px; width: 90%; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2); animation: slideIn 0.5s ease; }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.3s; z-index: 10; }
.modal-carousel { position: relative; margin-bottom: 20px; }
#modal-img { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; background-color: var(--cinza-claro); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.4); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.carousel-arrow:hover { background-color: rgba(0,0,0,0.7); }
.carousel-arrow img { filter: invert(1); width: 20px; }
.prev { left: 10px; }
.next { right: 10px; }
.modal-content h2 { color: var(--roxo-konectomi); margin-top: 15px; text-align: center; font-size: 2rem; }
.modal-content p { font-size: 1rem; line-height: 1.6; color: #555; text-align: center; margin-top: 10px; }

/* --- POP-UP DO EVENTO --- */
#event-popup {
    z-index: 6000;
}
.event-popup-content {
    background: var(--branco-base);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease;
    text-align: center;
}
.event-popup-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.event-popup-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.event-popup-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
}

/* --- MEDIA QUERIES PARA MOBILE --- */
@media (max-width: 992px) { 
    .learning-content, .team-content, .careers-content { 
        flex-direction: column; 
    } 
    .learning-content { 
        flex-direction: column-reverse; 
    } 
    .careers-text, .learning-text, .team-text { 
        text-align: center; 
    } 
}
@media (max-width: 768px) { 
    .section-title { font-size: 2.2rem; } 
    .main-title { font-size: 3rem; } 
    section { padding: 60px 0; } 
    .hamburger-button { display: block; } 
    .nav-menu { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background-color: var(--preto-suave); flex-direction: column; justify-content: center; align-items: center; gap: 40px; transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1); } 
    .nav-menu.is-active { left: 0; } 
    .nav-links { flex-direction: column; gap: 30px; } 
    .nav-links a { font-size: 1.5rem; }
    .nav-event-link { font-size: 1.8rem; }
    .nav-auth-buttons { flex-direction: column; gap: 20px; width: 80%; } 
    .login-button, .signup-button { width: 100%; text-align: center; padding: 12px; } 
    .security-content { flex-direction: column; text-align: center; } 
    .final-cta-section h2 { font-size: 2rem; }
    .event-popup-title { font-size: 1.8rem; }
}

/* --- ESTILO DO BANNER DE COOKIES --- */
#cookie-banner {
    position: fixed;
    bottom: -300px;
    left: 0;
    width: 100%;
    background-color: var(--preto-suave);
    color: rgba(255, 251, 255, 0.9);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
    z-index: 5000;
    transition: bottom 0.5s ease-in-out;
}

#cookie-banner.is-visible {
    bottom: 0;
}

#cookie-banner p {
    margin: 0;
    padding-right: 20px;
    font-size: 0.9rem;
}

#cookie-accept-btn {
    background: var(--gradiente-verde);
    color: var(--branco-base);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

#cookie-accept-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    #cookie-banner p {
        padding-right: 0;
    }
    #cookie-accept-btn {
        width: 100%;
    }
}

/* ============================================== */
/* === ESTILOS DA PÁGINA DE EVENTO (KONECTOMICON) - VERSÃO FINAL CORRIGIDA === */
/* ============================================== */

.event-hero {
    height: 100vh;
    min-height: 700px;
    background: url('../assets/images/event-banner.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco-base);
    padding-top: 80px;
}

.event-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 10%, rgba(26, 26, 46, 0.5) 100%);
    z-index: 1;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInHero 1s ease-out;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}
.scroll-down-arrow img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.event-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 15px auto 40px;
    color: rgba(255,251,255,0.85);
}

.countdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,251,255,0.7);
    margin-bottom: 25px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
}

.timer-number {
    font-family: 'Poppins', monospace;
    font-size: 4rem;
    font-weight: 800;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 10px;
    line-height: 1;
    min-width: 110px;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.timer-number.is-changing {
    transform: translateY(-100%);
    opacity: 0;
}

.timer-label {
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,251,255,0.6);
}

.event-actions-wrapper {
    margin-top: 40px;
}

#countdown-finished-content {
    animation: fadeInHero 0.5s ease;
}

#countdown-finished-content h2 {
    text-shadow: 0 2px 10px rgba(0, 244, 28, 0.4);
}

.event-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.event-button {
    gap: 12px;
    padding: 15px 30px;
}

.event-button img {
    width: 22px;
    filter: invert(1);
}

.event-button.is-disabled {
    background: #5a5a6a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.event-button.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.event-details-section {
    background-color: var(--cinza-claro);
    padding: 100px 0;
}

.event-details-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.event-details-text { flex: 1; }
.event-details-image { flex: 1; }

.bottom-actions-wrapper {
    margin-top: 40px;
}

.event-details-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .event-hero { height: auto; min-height: 100vh; padding: 120px 20px 80px; }
    .event-title { font-size: 3rem; }
    #countdown-timer { gap: 10px; }
    
    /* AJUSTE PARA O TIMER FLEXÍVEL */
    .timer-unit {
        flex: 1; /* Faz cada unidade ocupar o espaço disponível igualmente */
        text-align: center;
    }
    .timer-number { 
        font-size: 2.5rem; 
        min-width: 0; /* Remove a largura mínima que causava o overflow */
        padding: 10px 5px; /* Reduz o padding horizontal para caber melhor */
    }
    
    .timer-label { font-size: 0.7rem; }
    .event-details-content { flex-direction: column; }
}