/* =========================================================
   ARQUIVO: assets/css/index.css
   VERSÃO: 2.0.1
   DATA: 2026-03-22
   ALTERAÇÕES:
   - CSS consolidado da home
   - Remoção de duplicações
   - Suporte ao novo grid de jogos
   - Suporte aos badges por jogo
   - Layout corrigido para header, ações e cards
   ========================================================= */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ecc94b;
    --dark: #2d3748;
    --light: #f7fafc;
    --gray: #a0aec0;
    --gray-dark: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-user {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-container h2 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.saldo {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}

.btn-logout,
.btn-primary,
.btn-secondary,
.btn-link {
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-logout {
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: #fff5f5;
    color: #c53030;
    font-weight: 700;
    border: 1px solid #fed7d7;
}

.btn-logout:hover {
    background: #fed7d7;
}

/* =========================================================
   LAYOUT HOME
   ========================================================= */

.user-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

.user-container-home {
    grid-template-columns: 1fr;
}

.home-main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.user-main {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
}

.btn-voltar-topo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-voltar-topo:hover {
    color: var(--primary);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.user-header h1 {
    color: var(--dark);
    font-size: 1.8rem;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-secondary {
    background: #f8fafc;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #edf2f7;
}

.hero-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.section-space {
    margin-top: 2rem;
}

/* =========================================================
   SEÇÕES / LISTAS
   ========================================================= */

.recent-bets h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 5px solid transparent;
    border: 1px solid var(--border);
}

.bet-card.status-win {
    border-left-color: var(--success);
}

.bet-card.status-lose {
    border-left-color: var(--danger);
}

.bet-card.status-pending {
    border-left-color: var(--warning);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.bet-header h3 {
    color: var(--primary);
    font-size: 1.15rem;
    line-height: 1.35;
}

.bet-date {
    color: var(--gray-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.bet-body {
    margin-bottom: 1rem;
}

.bet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.bet-extra {
    color: var(--gray-dark);
    font-size: 0.92rem;
    margin: 0.35rem 0 0.6rem;
}

.numbers-section {
    margin-bottom: 1rem;
}

.numbers-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.numbers-grid.small {
    gap: 0.45rem;
}

.number-ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.acertos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--white);
}

.acertos-ok {
    background: linear-gradient(135deg, var(--success), #2f855a);
}

.acertos-zero {
    background: #94a3b8;
}

.no-result {
    background: #fffaf0;
    color: #975a16;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #fbd38d;
}

.bet-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

.status-win {
    background: #ecfdf5;
    color: #166534;
}

.status-lose {
    background: #fef2f2;
    color: #991b1b;
}

.status-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.view-all {
    margin-top: 1rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-link:hover {
    color: var(--secondary);
}

/* =========================================================
   GRID DE JOGOS
   ========================================================= */

.jogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.jogo-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.jogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.jogo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.jogo-icone {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.cor-lotofacil {
    color: #9f7aea;
}

.cor-megasena {
    color: #fbbf24;
}

.cor-quina {
    color: #48bb78;
}

.cor-lotomania {
    color: #ecc94b;
}

.cor-diadesorte {
    color: #4299e1;
}

.cor-supersete {
    color: #ed64a6;
}

.jogo-nome {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.jogo-descricao {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 44px;
}

.jogo-premio {
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 700;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem;
}

.btn-jogar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
}

.btn-jogar:hover {
    opacity: 0.92;
}

/* =========================================================
   BADGES DOS JOGOS
   ========================================================= */

.badge-jogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-lotofacil {
    background: #9f7aea;
    color: var(--white);
}

.badge-megasena {
    background: #fbbf24;
    color: #2d3748;
}

.badge-quina {
    background: #48bb78;
    color: var(--white);
}

.badge-lotomania {
    background: #ecc94b;
    color: #2d3748;
}

.badge-diadesorte {
    background: #4299e1;
    color: var(--white);
}

.badge-supersete {
    background: #ed64a6;
    color: var(--white);
}

.badge-default {
    background: #e2e8f0;
    color: #334155;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1024px) {
    .user-container {
        grid-template-columns: 1fr;
    }

    .user-container-home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
    }

    .user-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .user-main {
        padding: 1.5rem;
    }

    .user-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .jogos-grid {
        grid-template-columns: 1fr;
    }

    .bet-header,
    .bet-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .number-ball {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}