/* ── Imagem de fundo do header desta página ──
   Para trocar: substitua o url() abaixo por outro base64 ou URL.
   Ajuste --header-overlay para escurecer/clarear conforme necessário. */
:root {
  --header-bg: url('/assets/images/estude-header.jpg');
  --header-overlay: rgba(0, 0, 0, 0.50);
}

/*estude.css */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f2f2f2;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1 {
  color: #0f3c46;
  font-size: 28px;
  margin-bottom: 6px;
  padding-top: 40px;
}

.subtitle {
  color: #555;
  margin-bottom: 30px;
  font-size: 15px;
}

/* ─── Grid de decks ─── */
#deckList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ─── Card base ─── */
.estude-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Card clicável (tem cards para estudar) */
.estude-card--ativo {
  cursor: pointer;
  border-left: 4px solid #0f3c46;
}

.estude-card--ativo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Card bloqueado (nenhum card para estudar hoje) */
.estude-card--bloqueado {
  cursor: default;
  opacity: 0.7;
  border-left: 4px solid #aeccd1;
  background: #f8fbfc;
}

/* ─── Header do card ─── */
.estude-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.estude-card__nome {
  font-size: 17px;
  font-weight: 700;
  color: #0f3c46;
  margin: 0;
  flex: 1;
}

/* ─── Badge (em dia / pendente) ─── */
.estude-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.estude-card__badge--pendente {
  background: #fff3cd;
  color: #856404;
}

.estude-card__badge--ok {
  background: #d1f0e0;
  color: #1a6b3a;
}

/* ─── Descrição ─── */
.estude-card__desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  min-height: 18px;
}

/* ─── Rodapé do card ─── */
.estude-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  margin-top: 4px;
}

.estude-card__info {
  font-size: 12px;
  color: #888;
}

.estude-card__estudar {
  font-size: 13px;
  font-weight: 600;
  color: #0f3c46;
}

.estude-card__lock {
  font-size: 12px;
  color: #aaa;
}
/* ══════════════════════════════════════════
   LOADING STATE — tela estudar
   ══════════════════════════════════════════ */
.estude-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: #9aacb0;
  font-size: 14px;
}

.estude-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #dde6e8;
  border-top-color: #1f6f78;
  border-radius: 50%;
  animation: spin-estude 0.9s linear infinite;
}

@keyframes spin-estude {
  to { transform: rotate(360deg); }
}
