/* home.css - estilos extras para a nova home */

/* ===== Layout geral dos blocos ===== */
.ls-card {
    background-color: var(--background-color-2-transparent);
    color: var(--text-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Countdown */
.ls-countdown-card h3 {
    margin-bottom: 10px;
}

#countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ls-time {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    min-width: 60px;
}

.ls-time span {
    font-size: 1.2em;
    font-weight: bold;
}

.ls-time label {
    display: block;
    font-size: 0.75em;
    color: var(--muted-color, #aaa);
}

/* KPIs */
.ls-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.ls-kpi label {
    font-size: 0.85em;
    color: var(---text-color);
}

.ls-kpi span {
    font-size: 1.4em;
    font-weight: bold;
}

/* Hot / Cold */
.ls-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ls-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ls-ranking li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ls-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    margin-right: 8px;
}

.ls-hot { background-color: var(--hot-color, #ef4444); }
.ls-cold { background-color: var(--cold-color, #3b82f6); }

/* Gráfico */
#chart-freq {
    margin-top: 10px;
}

/* Histórico */
.ls-table-wrap {
    overflow-x: auto;
}

.ls-table {
    width: 100%;
    border-collapse: collapse;
}

.ls-table th, .ls-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color, #ccc);
    text-align: left;
}

/* Sugestão do dia */
.ls-bolas-sugestao {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ls-bolas-sugestao .numero-bola {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Botões padrão */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-color-lower);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
    .ls-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HERO VISUAL + CORREÇÃO DE CRESCIMENTO
   ========================= */
:root {
  --hero-c1: var(--primary-color);
  --hero-c2: #9d4edd;
  --hero-c3: #00c2ff;
}

.ls-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  place-items: center;
  padding: 40px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  background: radial-gradient(12000px 12000px at 10% 10%, color-mix(in oklab, var(--hero-c1), transparent 60%), transparent 70%),
              radial-gradient(900px 900px at 90% 20%, color-mix(in oklab, var(--hero-c2), transparent 60%), transparent 70%),
              radial-gradient(1000px 1000px at 50% 100%, color-mix(in oklab, var(--hero-c3), transparent 60%), transparent 70%),
              var(--background-color-2);
}
@supports not (background: color-mix(in oklab, red, blue)) {
  .ls-hero {
    background: linear-gradient(120deg, rgba(93,125,255,.35), rgba(0,194,255,.25), rgba(157,78,221,.35)) , var(--background-color-2);
  }
}

.ls-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12000px;
  background: conic-gradient(
     from 0deg,
     color-mix(in oklab, var(--hero-c1), transparent 70%),
     color-mix(in oklab, var(--hero-c2), transparent 70%),
     color-mix(in oklab, var(--hero-c3), transparent 70%),
     color-mix(in oklab, var(--hero-c1), transparent 70%)
  );
  filter: blur(60px) saturate(140%);
  animation: ls-hero-rotate 18s linear infinite;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

@keyframes ls-hero-rotate {
  to { transform: rotate(360deg); }
}

.ls-hero > * {
  position: relative;
  z-index: 1;
}

.ls-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 980px;
  color: var(--text-color);
}

.ls-hero__logo {
  width: 140px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.ls-hero__title {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0;
}

.ls-hero__subtitle {
  opacity: .9;
  max-width: 720px;
  margin: 0 auto;
}

.ls-hero__cta {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ls-hero__main-content {
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 16px;
}

/* conteúdo fora do hero (caso queira separar visualmente) */
.ls-main-content {
  padding: 40px 16px;
  background-color: var(--background-color);
}
.ls-main-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* responsivo */
@media (max-width: 768px){
  .ls-hero {
    min-height: 40vh;
    padding: 28px 12px;
  }
  .ls-hero__logo {
    width: 110px;
  }
}
/* Wrapper rolável + fade */
.table-scroll {
  max-height: 520px;           /* ajuste fino aqui */
  overflow: auto;
  position: relative;
  border-radius: 10px;
}
.table-scroll::after {
  content: "";
  position: sticky;
  bottom: -1px;
  display: block;
  height: 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.28));
  pointer-events: none;
}

/* Cabeçalho colado */
.styled-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}

/* Barra da tabela */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.table-toolbar .left, .table-toolbar .right { display: flex; align-items: center; gap: 8px; }

/* Densidade compacta */
.styled-table.dense th,
.styled-table.dense td {
  padding: 4px 6px !important;
  font-size: 12px;
}
.styled-table td, .styled-table th { white-space: nowrap; }

/* Tabela recolhida */
.table-container.collapsed #table-scroll { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.table-container:not(.collapsed) #table-scroll { transition: max-height .35s ease; }

/* Indicador visual de bola (se você marca as dezenas com círculos) */
.styled-table td.marked { color: #fff; font-weight: 600; }