/* ═══════════════════════════════════════════════
   Página Pública Resultado — LottoStats
   v3.0
   ═══════════════════════════════════════════════ */

/* ──── Hero / Header ──── */
.result-hero {
    padding: 2rem 0 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #dee2e6;
}

/* ──── Bolas ──── */
.ball-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2185d0, #1a6fb5);
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 5px;
    box-shadow: 0 3px 8px rgba(33, 133, 208, 0.35);
    transition: transform 0.2s;
}

.ball-display:hover {
    transform: scale(1.1);
}

/* Theme colors for balls */
.theme-mega .ball-display {
    background: linear-gradient(135deg, #16ab39, #0e8c2d);
    box-shadow: 0 3px 8px rgba(22, 171, 57, 0.35);
}

.theme-lotofacil .ball-display {
    background: linear-gradient(135deg, #a333c8, #862da8);
    box-shadow: 0 3px 8px rgba(163, 51, 200, 0.35);
}

.theme-quina .ball-display {
    background: linear-gradient(135deg, #2185d0, #1a6fb5);
    box-shadow: 0 3px 8px rgba(33, 133, 208, 0.35);
}

.theme-lotomania .ball-display {
    background: linear-gradient(135deg, #f2711c, #d5600e);
    box-shadow: 0 3px 8px rgba(242, 113, 28, 0.35);
}

.theme-timemania .ball-display {
    background: linear-gradient(135deg, #fbbd08, #e0a800);
    box-shadow: 0 3px 8px rgba(251, 189, 8, 0.35);
    color: #333 !important;
}

.theme-duplasena .ball-display {
    background: linear-gradient(135deg, #db2828, #b82020);
    box-shadow: 0 3px 8px rgba(219, 40, 40, 0.35);
}

.theme-diasorte .ball-display {
    background: linear-gradient(135deg, #a5673f, #8c572f);
    box-shadow: 0 3px 8px rgba(165, 103, 63, 0.35);
}

.theme-supersete .ball-display {
    background: linear-gradient(135deg, #b5cc18, #9db510);
    box-shadow: 0 3px 8px rgba(181, 204, 24, 0.35);
    color: #333 !important;
}

/* ──── Navegação ──── */
.nav-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-btn:hover:not(.disabled) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    color: #999;
}

.nav-value {
    font-weight: bold;
    font-size: 1rem;
    color: #2185d0;
}

/* ──── Stat Cards (Quentes/Frios) ──── */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-hot {
    border-left: 4px solid #db2828;
}

.stat-cold {
    border-left: 4px solid #2185d0;
}

/* Thermometer items com barras */
.thermometer-list .item {
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.thermometer-list .item:hover {
    background: #f8f9fa;
}

.thermo-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thermo-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.thermo-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thermo-bar-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.thermo-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.badge-hot {
    font-size: 0.85em;
    font-weight: bold;
    color: #db2828;
    min-width: 35px;
    text-align: right;
}

.badge-cold {
    font-size: 0.85em;
    font-weight: bold;
    color: #2185d0;
    min-width: 35px;
    text-align: right;
}

/* ──── Grid Visual de Frequência (Heatmap) ──── */
.freq-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .freq-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .freq-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.freq-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 8px;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 65px;
}

.freq-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.freq-cell-sorteado {
    outline: 3px solid #21ba45 !important;
    outline-offset: -1px;
    box-shadow: 0 0 8px rgba(33, 186, 69, 0.4);
}

.freq-cell-num {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.freq-cell-qtd {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1;
    margin-top: 3px;
}

.freq-cell-atraso {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
    padding: 1px 5px;
    border-radius: 3px;
}

.atraso-normal {
    opacity: 0.6;
}

.atraso-medio {
    background-color: rgba(251, 189, 8, 0.3);
    color: #c17e00 !important;
}

.atraso-alto {
    background-color: rgba(219, 40, 40, 0.2);
    color: #db2828 !important;
}

/* Legenda */
.freq-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85em;
    color: #666;
}

.freq-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.freq-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.freq-legend-low {
    background-color: rgb(230, 240, 250);
    border: 1px solid #ccc;
}

.freq-legend-high {
    background-color: rgb(100, 120, 200);
}

.freq-legend-sorteado {
    background-color: #e5f9e7;
    border: 2px solid #21ba45;
}

/* ──── Tabela de Frequência (dentro do accordion) ──── */
.freq-table {
    width: 100%;
}

.freq-table thead th {
    background: #f8f9fa !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

.freq-row-sorteado {
    background-color: #e5f9e7 !important;
}

.freq-row-sorteado td {
    border-color: #b5e8bc !important;
}

.freq-number-sorteado {
    outline: 2px solid #21ba45 !important;
    outline-offset: 1px;
}

.freq-atraso {
    color: #db2828;
    font-weight: 600;
}

/* ──── Volante ──── */
.volante-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.volante-num {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 0.85rem;
    color: #888;
    background: #fafafa;
    transition: all 0.2s;
}

.volante-num.selected {
    background: linear-gradient(135deg, #21ba45, #16a03a);
    color: #fff !important;
    border-color: #16a03a;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(33, 186, 69, 0.3);
}

/* ──── Ads ──── */
.ad-slot {
    margin: 1rem 0;
}

/* ──── Responsive ──── */
@media (max-width: 767px) {
    .ball-display {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin: 3px;
    }

    .volante-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .nav-value {
        font-size: 0.85rem;
    }

    .thermo-bar-container {
        height: 6px;
    }
}