/* =========================================
   VARIÁVEIS DE COR (Baseadas na Logo AXJPG)
   ========================================= */
:root {
    --accent-color: #E4C7A7; /* O bege/pêssego da logo */
    --accent-dark: #CFA87D;  /* Bege um pouco mais escuro para hover */
    --primary-dark: #1A120E; /* Marrom escuro/chumbo para contraste */
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    --text-main: #333333;
    --text-muted: #666666;
}

/* =========================================
   RESET E TIPOGRAFIA BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Fonte elegante para títulos */
    color: var(--primary-dark);
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* =========================================
   ESTRUTURA E LAYOUT GERAL
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.text-center { 
    text-align: center; 
}

/* =========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================= */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 60px; /* Ajuste conforme o tamanho real da sua logo */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* =========================================
   HERO SECTION (Banner Principal)
   ========================================= */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(26, 18, 14, 0.8), rgba(26, 18, 14, 0.8)), url('https://images.unsplash.com/photo-1528819622765-d6bcf132f793?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--bg-white);
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   BOTÕES GERAIS
   ========================================= */
.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background-color: var(--accent-color);
}

/* =========================================
   CARDS DE NOTÍCIAS
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.tag {
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.card-content h3 {
    margin: 1rem 0;
    font-size: 1.3rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-dark);
    font-weight: 600;
}

/* =========================================
   LISTA DE TORNEIOS
   ========================================= */
.bg-light { 
    background-color: var(--bg-light-gray); 
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tournament-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
}

.tournament-item .date {
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid #eee;
    margin-right: 1.5rem;
}

.date .day { 
    display: block; 
    font-size: 2rem; 
    font-weight: 600; 
    color: var(--primary-dark); 
    line-height: 1; 
}

.date .month { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    font-weight: 600;
}

.tournament-item .info { 
    flex-grow: 1; 
}

/* =========================================
   TABELA DE RANKING
   ========================================= */
.table-responsive { 
    overflow-x: auto; 
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap; /* Evita quebra de linha escrota em telas pequenas */
}

.ranking-table th, .ranking-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ranking-table th {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.medal {
    display: inline-block; 
    width: 25px; 
    height: 25px;
    border-radius: 50%; 
    text-align: center; 
    line-height: 25px;
    font-weight: bold; 
    color: white;
}

.gold { background-color: #FFD700; }
.silver { background-color: #C0C0C0; }
.bronze { background-color: #CD7F32; }

/* =========================================
   SOBRE / MISSÃO
   ========================================= */
.bg-dark {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.bg-dark h2 { 
    color: var(--accent-color); 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p { 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
    opacity: 0.9; 
}

.about-image img { 
    width: 100%; 
    border-radius: 8px; 
    border: 4px solid var(--accent-color); 
}

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.footer-logo h3 { 
    color: var(--accent-color); 
}

.footer-links p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom { 
    text-align: center; 
    font-size: 0.9rem; 
    color: #888; 
}



/* =========================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================= */

/* Correção para evitar que o JS do menu quebre o layout no PC */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: relative !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Adaptações para Celulares e Tablets menores */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    
    .mobile-menu-icon { 
        display: block; 
    }
    
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .tournament-item { 
        flex-direction: column; 
        text-align: center; 
        gap: 1rem; 
    }
    
    .tournament-item .date { 
        border-right: none; 
        border-bottom: 1px solid #eee; 
        padding-right: 0; 
        padding-bottom: 1rem; 
        margin-right: 0; 
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* BOTÃO FLUTUANTE DA MARCA */
.floating-brand {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--accent-color);
}

.floating-brand img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

/* Efeito de flutuação */
.floating-brand:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Tooltip (Balão de texto) */
.floating-brand .tooltip {
    position: absolute;
    right: 80px;
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    font-weight: 500;
}

.floating-brand:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animação de pulsação suave para chamar atenção */
@keyframes pulse-brand {
    0% { box-shadow: 0 0 0 0 rgba(228, 199, 167, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(228, 199, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 199, 167, 0); }
}

.floating-brand {
    animation: pulse-brand 2s infinite;
}

/* Ajuste para mobile para não tampar conteúdo */
@media (max-width: 768px) {
    .floating-brand {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .floating-brand .tooltip {
        display: none; /* Esconde o texto no mobile para não poluir */
    }
}

/* =========================================
   RODAPÉ PERSONALIZADO CORETEK (COM LOGO)
   ========================================= */
footer {
    background-color: #111;
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: #888;
    font-size: 0.85rem;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha tudo à direita no PC */
}

.footer-branding span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 8px;
}

.coretek-wrapper {
    display: flex;
    align-items: center; /* Alinha logo e texto no meio */
    gap: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.coretek-logo {
    height: 35px; /* Ajuste o tamanho da sua logo aqui */
    width: auto;
    filter: grayscale(1) brightness(1.5); /* Deixa a logo em tons de branco/cinza para o footer */
    transition: 0.3s;
}

.coretek-wrapper:hover .coretek-logo {
    filter: grayscale(0) brightness(1); /* Volta a cor original no hover */
}

.coretek-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.coretek-text strong {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.coretek-dot {
    color: var(--accent-color);
}

.coretek-text small {
    font-size: 0.55rem;
    color: var(--accent-dark);
    text-align: right;
    letter-spacing: 1px;
    margin-top: 2px;
}

.coretek-wrapper:hover {
    transform: translateY(-3px);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-branding {
        align-items: center;
    }
    .coretek-text small {
        text-align: center;
    }
}

/* CONTAINER DA ESFERA */
.coretek-floating-sphere {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* EFEITO DE ESFERA (AURA) */
.sphere-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.2) 0%, rgba(188, 19, 254, 0) 70%);
    border: 2px solid rgba(188, 19, 254, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4), inset 0 0 20px rgba(188, 19, 254, 0.2);
    animation: sphere-pulse 3s ease-in-out infinite;
}

/* O ROBÔ DENTRO DA ESFERA */
.robot-inside {
    width: 75%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.5));
    animation: robot-float 4s ease-in-out infinite;
}

/* TOOLTIP */
.tooltip-coretek {
    position: absolute;
    right: 110px;
    background: #1a120e;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border-left: 3px solid #bc13fe;
}

.coretek-floating-sphere:hover .tooltip-coretek {
    opacity: 1;
    visibility: visible;
}

/* ANIMAÇÕES */
@keyframes sphere-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; border-color: rgba(188, 19, 254, 0.3); }
    50% { transform: scale(1.1); opacity: 1; border-color: rgba(0, 243, 255, 0.5); } /* Brilho muda levemente para ciano */
}

@keyframes robot-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
    .coretek-floating-sphere { width: 80px; height: 80px; bottom: 20px; right: 20px; }
    .tooltip-coretek { display: none; }
}

/* BLINDAGEM VISUAL CORETEK */
* {
    /* Impede seleção de texto em todos os navegadores */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Remove o destaque azul ao tocar em botões no mobile */
    -webkit-tap-highlight-color: transparent;
}

/* Proteção específica para imagens */
img {
    -webkit-user-drag: none;
   -webkit-user-drag: none;
    pointer-events: none; /* Impede clique e arraste */
}

/* Reabilitar seleção apenas em campos de entrada (formulários) */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =========================================
   NOVA SEÇÃO: MISSION CARDS
   ========================================= */
.mission-grid {
    display: grid;
    /* Cria 3 colunas iguais que se ajustam sozinhas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color); /* Detalhe elegante no topo */
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px); /* Efeito de flutuação ao passar o mouse */
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.mission-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}/* Ajustes para Celulares (Mobile) */
@media (max-width: 768px) {
    
    .hero {
        height: 60vh; /* Diminui um pouco a altura do banner no celular para não esconder o conteúdo */
        padding: 0 20px; /* Garante que o texto não cole nas bordas da tela */
    }

    .hero-content h1 { 
        /* Usamos clamp para o título diminuir suavemente ou um valor fixo menor */
        font-size: 1.8rem; 
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word; /* Proteção extra para palavras longas não cortarem */
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Ajuste extra para telas MUITO pequenas (abaixo de 380px) */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* =========================================
   SOCIAL LINKS - CORETEK STYLE
   ========================================= */
.footer-social {
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 1.2rem;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.social-link i {
    font-size: 1.8rem;
    color: var(--accent-color); /* Usa o dourado AXJPG */
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-link:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.social-link:hover i {
    filter: drop-shadow(0 0 8px var(--accent-color));
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
        width: 100%;
        margin: 10px 0;
    }
}