/* ==========================================================================
   1. PALETA DE CORES GLOBAL (IDENTIDADE VISUAL NEON)
   ========================================================================== */
:root {
    --ciano-neon: #00F0FF;
    --cinza-mineral: #D4D9DB;
    --grafite-fundo: #1E2224;
    --grafite-claro: #23272A;
}

/* Configurações Gerais de Resete */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--grafite-fundo); 
    color: var(--cinza-mineral);            
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   2. NAVBAR & DROPDOWN MENU
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;       
    width: auto;        
    display: block;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--ciano-neon);
}

.btn-download {
    background-color: var(--ciano-neon);
    color: var(--grafite-fundo);
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-download:hover {
    background-color: #fff;
    color: #000;
}

/* Container do Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

/* Submenu Cascata */
.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    background-color: var(--grafite-claro); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--ciano-neon); 
    min-width: 160px;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cinza-mineral);
    text-align: center;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: var(--ciano-neon);
    background-color: rgba(255, 255, 255, 0.02);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
    color: var(--ciano-neon);
}

/* ==========================================================================
   3. INDEX / HOME PAGE SECTIONS
   ========================================================================== */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
    filter: brightness(0.4); 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.game-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

.game-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--cinza-mineral);
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--ciano-neon);
    color: var(--grafite-fundo);
    padding: 15px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--cinza-mineral);
    color: var(--cinza-mineral);
    padding: 13px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-2px);
}

.platforms {
    font-size: 0.9rem;
    color: var(--cinza-mineral);
    opacity: 0.7;
}

.platform-icon {
    margin-left: 10px;
    color: #fff;
    font-weight: 700;
}

/* Promo Section */
.promo-section {
    background-color: var(--grafite-claro);
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.promo-container {
    max-width: 800px;
    margin: 0 auto;
}

.promo-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.promo-container p {
    color: var(--ciano-neon); 
    margin-bottom: 25px;
}

.rewards-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rewards-list li {
    background: var(--grafite-fundo);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 700;
}

/* News Section */
.news-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--grafite-claro);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--ciano-neon);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card-tag {
    color: var(--ciano-neon);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-content p {
    color: var(--cinza-mineral);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* Footer */
.main-footer {
    background-color: #15181a;
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-weight: 900;
    color: #555;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--cinza-mineral);
    opacity: 0.6;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--ciano-neon);
    opacity: 1;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* ==========================================================================
   4. SEÇÃO / PÁGINA DE RAÇAS (SHOWCASE)
   ========================================================================== */
.races-page {
    overflow: hidden; 
    height: 100vh;
}

.races-showcase {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.races-tabs {
    position: absolute;
    left: 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.tab-btn {
    background: rgba(30, 34, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
    min-width: 200px;
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--ciano-neon);
    color: var(--ciano-neon);
    background: var(--grafite-claro);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.races-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.race-card-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding-right: 10%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.race-card-detail.active {
    opacity: 1;
    visibility: visible;
}

.race-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.35) saturate(1.1);
}

.race-info-panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(35, 39, 42, 0.95), rgba(30, 34, 36, 0.85));
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 50px;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: slideIn 0.5s ease;
}

.race-tag {
    color: var(--ciano-neon);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.race-display-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.race-lore {
    color: var(--cinza-mineral);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.race-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-row {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--cinza-mineral);
    opacity: 0.8;
}

.stat-row strong {
    color: var(--ciano-neon);
    margin-left: 5px;
}

/* ==========================================================================
   5. COMPARTILHADO: CLASSES & PROFISSÕES (GRID DE CARDS COM FLEXBOX FIX)
   ========================================================================== */
.classes-page, .professions-page {
    min-height: 100vh;
    overflow-y: auto;  
    padding-top: 0;
}

.classes-container, .professions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 5% 60px 5%; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.classes-header, .professions-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto; 
    flex-shrink: 0; 
}

.classes-subtitle, .professions-subtitle {
    color: var(--ciano-neon);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.classes-main-title, .professions-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.classes-intro-text, .professions-intro-text {
    color: var(--cinza-mineral);
    opacity: 0.7;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Grid de Cards */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* REESTRUTURAÇÃO DO CARD PARA EVITAR CORTES DE TEXTO */
.class-card {
    position: relative;
    height: 520px; /* Altura firme e excelente para o conteúdo */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    background-color: var(--grafite-claro);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    display: flex;
    flex-direction: column; /* Garante fluxo vertical ordenado */
}

/* Bloco superior do Card (Imagem) */
.class-card-bg {
    position: relative; 
    width: 100%;
    height: 230px; 
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.65);
    flex-shrink: 0; 
}

/* Bloco inferior do Card (Conteúdo) */
.class-card-content {
    position: relative; 
    width: 100%;
    flex-grow: 1; /* Ocupa dinamicamente o espaço restante do card */
    padding: 25px;
    background: var(--grafite-claro);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
}

.class-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

/* Cores das Categorias Mapeadas na Paleta Nova */
.role-tank { color: #3498db; }
.role-dps  { color: #e74c3c; }
.role-mage { color: #9b59b6; }

.class-name {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
    transition: color 0.3s ease;
}

.class-desc {
    color: var(--cinza-mineral);
    opacity: 0.75;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Rodapé Interno Seguro */
.class-meta {
    margin-top: auto; /* Cola o botão e dificuldade sempre no pé do card */
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.difficulty {
    font-size: 0.85rem;
    color: var(--cinza-mineral);
    opacity: 0.5;
    font-weight: 700;
}

.btn-class-detail {
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    text-align: center;
    padding: 11px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* EFEITOS DE HOVER CORRIGIDOS E EM CIANO */
.class-card:hover {
    transform: translateY(-8px);
    border-color: var(--ciano-neon); 
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.class-card:hover .class-card-bg {
    transform: scale(1.03); 
    filter: brightness(0.85);
}

.class-card:hover .class-name {
    color: var(--ciano-neon); 
}

.class-card:hover .btn-class-detail {
    background-color: var(--ciano-neon);
    border-color: var(--ciano-neon);
    color: var(--grafite-fundo);
}

/* ==========================================================================
   6. ANIMAÇÕES & OUTROS MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .nav-links, .nav-actions { display: none; } 
    .game-title { font-size: 2.5rem; }
    .rewards-list { flex-direction: column; gap: 10px; }
    
    .races-showcase { flex-direction: column; justify-content: flex-start; padding-top: 80px; }
    .races-tabs { position: relative; left: 0; flex-direction: row; width: 100%; overflow-x: auto; padding: 10px; gap: 10px; }
    .tab-btn { min-width: 130px; padding: 10px; font-size: 0.85rem; text-align: center; }
    .race-card-detail { justify-content: center; padding-right: 0; padding: 20px; align-items: flex-start; }
    .race-info-panel { margin-top: 20px; padding: 20px; }
    .race-display-title { font-size: 2rem; }
}