/*
    Estilos CS 1.6/Tático: Paleta Escura (Preto/Cinza Chumbo) com acento Laranja/Vermelho de Alerta.
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Roboto+Mono:wght@400;700&display=swap');


:root {
    --primary-color: #ff8c00; /* Laranja Escuro / Alerta Tático */
    --secondary-color: #dc143c; /* Vermelho/Carne - Cor de Dano */
    --background-dark: #0f0f0f; /* Fundo muito escuro */
    --card-background: #1c1c1c; /* Fundo dos painéis */
    --text-light: #e0e0e0; /* Texto claro */
    --text-muted: #a0a0a0; /* Texto secundário */
    --border-style: 2px solid var(--primary-color);
    --shadow-glow: 0 0 5px rgba(255, 140, 0, 0.5); /* Efeito de alerta sutil */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace; /* Fonte monoespaçada para estilo de console */
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif; /* Fonte de destaque para títulos */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

/* --- Navbar (Interface de Comando) --- */
.navbar {
    background-color: #000000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px double var(--primary-color); /* Borda mais agressiva */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 3px var(--primary-color);
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: var(--text-light);
    font-size: 0.8em;
    padding: 5px 10px;
    border: 1px solid var(--text-muted);
    transition: all 0.3s;
    text-transform: uppercase;
}

.navbar ul li a:hover {
    color: var(--background-dark);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.login-btn a {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border: 1px solid var(--secondary-color);
    font-weight: 700;
    transition: background-color 0.3s, border-color 0.3s;
}

.login-btn a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-dark);
}

/* --- Hero Section (Visor HUD) --- */
.hero-section {
    background: url('https://mestresdainformatica.com.br/wp-content/uploads/2024/11/Como-Baixar-e-Instalar-o-Free-Download-Manager-Gratis-1024x585.png') no-repeat center center/cover;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--secondary-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay escuro tático */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3em;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-family: 'Roboto Mono', monospace;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); /* Forma tática */
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    transform: scale(1.05);
}

/* --- Content Section (Relatórios) --- */
.content-section {
    padding: 50px 5%;
    text-align: center;
}

.content-section h2 {
    font-size: 2em;
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 40px;
    text-shadow: 0 0 3px rgba(220, 20, 60, 0.5);
    text-transform: uppercase;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-background);
    padding: 20px;
    border: 1px solid var(--text-muted); /* Borda discreta */
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.5);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    font-family: 'Orbitron', sans-serif;
}

.card p {
    color: var(--text-muted);
}

/* --- Ranking Table (CS Stats) --- */
.dark-section {
    background-color: var(--card-background);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.ranking-table-container {
    max-width: 800px;
    margin: 0 auto 30px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #000000;
    border: 2px solid var(--primary-color);
}

.ranking-table th, .ranking-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 1em;
    border: 1px dashed #333; /* Estilo de interface antiga */
}

.ranking-table thead th {
    background-color: var(--primary-color);
    color: var(--background-dark);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
}

.ranking-table tbody tr {
    transition: background-color 0.3s;
}

.ranking-table tbody tr:nth-child(even) {
    background-color: #1a1a1a;
}

.ranking-table tbody tr:hover {
    background-color: #333;
    color: var(--secondary-color);
}

/* Destaques do Top 3 */
.ranking-table tbody tr:first-child {
    background-color: #3d1000;
    color: var(--text-light);
    font-weight: bold;
}

.gold { color: gold; }
.silver { color: silver; }
.bronze { color: #cd7f32; }

.small-cta {
    padding: 10px 20px;
    font-size: 0.9em;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
}

/* --- Gallery Grid (Mapas e Skins) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--card-background);
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 0.2;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* --- Footer --- */
.footer {
    background-color: #000000;
    color: var(--text-muted);
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    border-top: 3px double var(--secondary-color);
    font-family: 'Roboto Mono', monospace;
}

/* Este wrapper agora usa flexbox para alinhar os grupos lado a lado */
.downloads-wrapper {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha se não houver espaço */
    gap: 20px;       /* Espaçamento entre os grupos */
    justify-content: center; /* Opcional: Centraliza os grupos dentro do container principal */
}

/* Define como os itens dentro de cada grupo se comportam (nome em cima, botão embaixo) */
.download-group {
    display: flex;
    flex-direction: column; /* Organiza os itens verticalmente (em coluna) */
    align-items: center;    /* Centraliza o texto e o botão horizontalmente dentro do grupo */
    border: 1px solid #ccc; /* Apenas para visualização */
    padding: 10px;
    border-radius: 8px;
    width: 150px; /* Define uma largura fixa para cada caixa */
    text-align: center;
}

/* Ajustes de estilo para o botão de download (baseado no seu HTML original) */
.download-button {
    /* Garante que o botão ocupe o espaço necessário */
    display: block; 
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: auto; /* Empurra o botão para o final do download-group se houver espaço extra */
}
