/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #070202;
    color: #fff;
    overflow-x: hidden;
}

/* NAVBAR TIPO MENU DE APP */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #111;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar .logo img {
    height: 30px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #aaa;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 20px;
    transition: 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #ff4d4d;
}

/* CABEÇALHO HERO (TÍTULO DA PÁGINA) */
.hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: radial-gradient(circle at top, #2b0505, #070202 70%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* GRID DOS GRÁFICOS DO DASHBOARD */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 30px 60px 30px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #333;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ddd;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CONTAINER DOS GRÁFICOS (Importante para o Chart.js) */
.chart-container {
    position: relative;
    height: 300px; /* Altura fixa para manter o padrão */
    width: 100%;
}

/* --- LEADERBOARDS VISUAIS --- */
/* --- NOVO LAYOUT DA DASHBOARD (WIDE) --- */
.dashboard-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px 60px 30px;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Espaço entre as seções Top 8 */
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
}

.section-title h3 {
    font-size: 1.6rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .subtitle {
    color: #888;
    font-size: 0.95rem;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.leaderboard-item {
    position: relative;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid #333;
    text-decoration: none;
    color: #fff;
    height: 85px; 
}

.leaderboard-item:hover {
    transform: scale(1.02);
    border-color: #ff4d4d;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.25);
}

.leaderboard-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 65%; 
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%; 
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.leaderboard-rank {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    z-index: 2;
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.leaderboard-info {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding-right: 20px;
    gap: 15px;
}

.leaderboard-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.leaderboard-stat strong {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.leaderboard-stat span {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* Setas de Tendência (Up / Down) */
.trend-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.trend-up {
    color: #2ecc71; /* Verde */
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.trend-down {
    color: #e74c3c; /* Vermelho */
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.trend-neutral {
    color: #888;
}

/* --- ESTILOS DO FOOTER (Fino e Discreto) --- */
.site-footer {
    text-align: center;
    padding: 15px 10px; /* Reduzimos drasticamente a espessura aqui */
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    color: #666; /* Texto em um cinza bem discreto */
    font-size: 0.8rem; /* Fonte menorzinha */
    font-family: 'Roboto', sans-serif;
}

.site-footer p {
    margin: 0 0 5px 0;
}

.footer-links {
    margin-top: 5px;
}

.footer-links a {
    color: #888 !important; /* O !important mata o azul do navegador na marra */
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #ddd !important; /* Fica um pouco mais claro só ao passar o mouse */
}

.footer-links .separator {
    color: #444;
    margin: 0 8px;
}

/* RESPONSIVO MOBILE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .navbar .nav-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .dashboard {
        padding: 15px;
    }
    .section-title {
        flex-direction: column;
        gap: 5px;
    }
}