/* ============================================================
   DAILY CHALLENGE — reto diario estilo Wordle
   Usa variables y base de style.css. Estética oscura del home.
   ============================================================ */

:root {
  --daily-ok: #55efc4;   /* verde: acierto */
  --daily-ko: #ff7675;   /* rojo: fallo */
}

.daily-body { overflow: auto; height: auto; min-height: 100vh; }

#daily-app {
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* ---- Header (mismo patrón que tuner.html) ---- */
#daily-header {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 24px 12px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
#daily-header #header-top {
  display: flex; align-items: center; justify-content: space-between;
}
#daily-header h1 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.4px;
  display: flex; align-items: center; gap: 8px;
}
.site-title-link { color: var(--text); text-decoration: none; transition: color 0.2s; }
.site-title-link:hover { color: #fff; }
.title-sep { color: var(--text-muted); font-weight: 400; }
.title-section { color: var(--major); font-weight: 500; }
.header-left { display: flex; align-items: center; gap: 10px; }
.back-link {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; padding: 4px 10px;
  border-color: rgba(232,67,147,0.3);
  color: var(--major);
  min-width: 32px;
}
.back-link:hover {
  background: rgba(232,67,147,0.1);
  border-color: rgba(232,67,147,0.5);
  color: #fff;
}
.header-actions { display: flex; gap: 6px; align-items: center; }
.header-date {
  font-size: 11px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---- Main ---- */
#daily-main {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  padding: 26px 20px 40px;
  width: 100%; max-width: 560px; margin: 0 auto;
}

.daily-card {
  width: 100%;
  border-radius: 18px;
  background: var(--bg-light);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px 22px 30px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}

.muted { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---- Intro ---- */
.daily-emoji { font-size: 44px; line-height: 1; }
#intro-card h2 { font-size: 24px; font-weight: 700; letter-spacing: 0.3px; }
.intro-date {
  font-size: 13px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.intro-streak { font-size: 15px; font-weight: 600; min-height: 20px; }

/* Botón principal (mismo estilo que #start-btn del tuner) */
.big-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(232,67,147,0.22), rgba(0,206,201,0.14));
  border: 1px solid rgba(232,67,147,0.45);
  color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 600; letter-spacing: 0.4px;
  padding: 14px 46px; border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(232,67,147,0.15);
  transition: all 0.22s ease;
}
.big-btn:hover {
  background: linear-gradient(135deg, rgba(232,67,147,0.36), rgba(0,206,201,0.24));
  border-color: rgba(232,67,147,0.7);
  box-shadow: 0 4px 22px rgba(232,67,147,0.3);
  transform: translateY(-1px);
}
.big-btn:active { transform: translateY(0); }

.ghost-btn {
  background: transparent; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 11px 24px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s ease;
}
.ghost-btn:hover { border-color: rgba(255,255,255,0.35); color: var(--text); }

/* ---- Progreso (5 puntos) ---- */
.progress-dots { display: flex; gap: 10px; justify-content: center; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: all 0.25s ease;
}
.dot.current { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.dot.ok { background: var(--daily-ok); }
.dot.ko { background: var(--daily-ko); }

/* ---- Pregunta ---- */
.question-box {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.question-box.fade-in { animation: daily-fade 0.35s ease; }
@keyframes daily-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.question-text {
  font-size: 17px; font-weight: 600; line-height: 1.45;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  background: rgba(0,206,201,0.1);
  border: 1px solid rgba(0,206,201,0.4);
  color: var(--minor); font-family: inherit;
  font-size: 14px; font-weight: 600;
  padding: 10px 26px; border-radius: 12px;
  cursor: pointer; transition: all 0.2s ease;
}
.play-btn:hover {
  background: rgba(0,206,201,0.2);
  border-color: rgba(0,206,201,0.7);
  color: #fff;
}

/* Opciones: objetivos táctiles grandes, mobile-first */
.options {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.option-btn {
  width: 100%;
  min-height: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: var(--text); font-family: inherit;
  font-size: 15px; font-weight: 500;
  padding: 12px 16px; line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.option-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}
.option-btn:disabled { cursor: default; }
.option-btn.is-correct {
  border-color: var(--daily-ok);
  background: rgba(85,239,196,0.12);
  color: var(--daily-ok);
  box-shadow: 0 0 14px rgba(85,239,196,0.15);
}
.option-btn.is-wrong {
  border-color: var(--daily-ko);
  background: rgba(255,118,117,0.12);
  color: var(--daily-ko);
}
.option-btn.is-dim { opacity: 0.4; }

.feedback {
  font-size: 14px; font-weight: 600; min-height: 20px;
  transition: color 0.2s ease;
}
.feedback.good { color: var(--daily-ok); }
.feedback.bad  { color: var(--daily-ko); }

/* ---- Resultados ---- */
#result-card h2 { font-size: 20px; font-weight: 700; }
.emoji-grid { font-size: 30px; letter-spacing: 4px; line-height: 1.2; }
.result-score { font-size: 17px; font-weight: 700; }
.result-streaks {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.countdown {
  font-size: 13px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-height: 18px;
}

.load-error {
  font-size: 13px; color: var(--daily-ko);
  background: rgba(255,118,117,0.08);
  border: 1px solid rgba(255,118,117,0.3);
  border-radius: 10px; padding: 10px 16px;
  max-width: 420px; text-align: center; line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  #daily-header { padding: 10px 12px 8px; }
  #daily-main { padding: 18px 14px 30px; gap: 12px; }
  .daily-card { padding: 22px 16px 24px; }
  .question-text { font-size: 16px; }
  .emoji-grid { font-size: 26px; }
}
@media (max-width: 380px) {
  .title-sep, .site-title-link { display: none; }
}
