@import url('https://fonts.googleapis.com/css?family=Quicksand:700&display=swap');
.streak-fire-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1.6em;
  cursor: pointer;
  transition: transform 0.15s;
  user-select: none;
}
.streak-fire-btn i {
  transition: color 0.2s;
  filter: drop-shadow(0 2px 6px #ff980055);
}
.streak-fire-btn.active i {
  color: #ff0000 !important;
  filter: drop-shadow(0 2px 8px #ff000088);
}
.streak-fire-btn:hover {
  transform: scale(1.13) rotate(-7deg);
}
.streak-modal-bg {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(24,28,36,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: streakFadeIn 0.2s;
}
@keyframes streakFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.streak-modal {
  background: #23273a;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px #0008, 0 1px 8px #4eaaff33;
  padding: 36px 28px 28px 28px;
  max-width: 95vw;
  min-width: 280px;
  text-align: center;
  position: relative;
  animation: streakPopIn 0.22s;
}
@keyframes streakPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.streak-fire-big {
  font-size: 3.2em;
  margin-bottom: 10px;
  color: #ff0000;
  filter: drop-shadow(0 2px 12px #ff000088);
}
.streak-modal h2 {
  margin: 0 0 12px 0;
  font-size: 1.5em;
  color: #ff9800;
  font-weight: 800;
  letter-spacing: 1px;
}
.streak-modal p {
  margin: 0 0 18px 0;
  font-size: 1.08em;
  color: #e3e6eb;
}
.streak-accept-btn, .streak-close-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.08em;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 2px 8px #ff980033;
  transition: background 0.18s;
}
.streak-accept-btn:hover, .streak-close-btn:hover {
  background: #ff0000;
}
.streak-close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5em;
  width: 40px;         /* Más ancho para hitbox */
  height: 40px;        /* Más alto para hitbox */
  padding: 0;
  border-radius: 50%;
  background: #23273a;
  color: #fff;
  box-shadow: none;
  border: none;
  cursor: pointer;
  display: flex;       /* Centra la X */
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2;
}
.streak-close-btn:hover {
  background: #ff0000;
  color: #fff;
}
.light-theme .streak-close-btn {
  color: #23273a;
  background: #fff;
}
.light-theme .streak-close-btn:hover {
  background: #1976d2;
  color: #fff;
}
.streak-calendar-modal .streak-fire-big {
  margin-bottom: 0;
}
.streak-calendar {
  margin: 18px auto 0 auto;
  background: #181c24;
  border-radius: 12px;
  padding: 18px 10px 10px 10px;
  box-shadow: 0 2px 12px #0003;
  max-width: 340px;
}
.streak-calendar-header {
  font-size: 1.1em;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: capitalize;
}
.streak-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.streak-calendar-dayname {
  font-size: 0.98em;
  color: #7ecbff;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
}
.streak-calendar-cell {
  background: #23273a;
  color: #fff;
  border-radius: 7px;
  min-height: 32px;
  font-size: 1.08em;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding: 4px 0 0 0;
  box-shadow: 0 1px 4px #0002;
}
.streak-calendar-cell.streak-today {
  border: 2px solid #ff9800;
  box-shadow: 0 2px 8px #ff980033;
}
.streak-fire-mini {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 1.1em;
  color: #ff0000;
  filter: drop-shadow(0 1px 4px #ff000088);
  pointer-events: none;
}
@media (max-width: 500px) {
  .streak-calendar { max-width: 98vw; }
  .streak-modal {
    max-width: 98vw;
    font-size: 0.98em;
    margin-left: 50px;
    margin-right: 50px;
  }
}
@media (max-width: 600px) {
  .streak-fire-btn {
    font-size: 1.2em !important;
    margin-right: 6px !important;
  }
  .theme-toggle {
    font-size: 1.2em !important;
  }
}

/* Tema claro */
.light-theme .streak-modal-bg {
  background: rgba(243,246,251,0.92);
}
.light-theme .streak-modal,
.light-theme .streak-calendar {
  background: #fff;
  color: #23273a;
  box-shadow: 0 8px 40px #b3d1ff88, 0 1px 8px #1976d233;
}
.light-theme .streak-modal h2,
.light-theme .streak-calendar-header {
  color: #1976d2;
}
.light-theme .streak-fire-big {
  color: #ff0000;
  filter: drop-shadow(0 2px 12px #ff000055);
}
.light-theme .streak-calendar-cell {
  background: #f3f6fb;
  color: #23273a;
  box-shadow: 0 1px 4px #b3d1ff33;
}
.light-theme .streak-calendar-cell.streak-today {
  border: 2px solid #1976d2;
  box-shadow: 0 2px 8px #1976d233;
}
.light-theme .streak-fire-mini {
  color: #ff0000;
  filter: drop-shadow(0 1px 4px #ff000055);
}
.light-theme .streak-accept-btn,
.light-theme .streak-close-btn {
  background: #1976d2;
  color: #fff;
}
.light-theme .streak-accept-btn:hover,
.light-theme .streak-close-btn:hover {
  background: #ff0000;
}

/* Tema oscuro (ya tienes la mayoría, pero puedes reforzar así) */
.dark-theme .streak-modal-bg {
  background: rgba(24,28,36,0.82);
}
.dark-theme .streak-modal,
.dark-theme .streak-calendar {
  background: #23273a;
  color: #fff;
  box-shadow: 0 8px 40px #0008, 0 1px 8px #4eaaff33;
}
.dark-theme .streak-modal h2,
.dark-theme .streak-calendar-header {
  color: #ff9800;
}
.dark-theme .streak-fire-big {
  color: #ff0000;
  filter: drop-shadow(0 2px 12px #ff000088);
}
.dark-theme .streak-calendar-cell {
  background: #23273a;
  color: #fff;
  box-shadow: 0 1px 4px #0002;
}
.dark-theme .streak-calendar-cell.streak-today {
  border: 2px solid #ff9800;
  box-shadow: 0 2px 8px #ff980033;
}
.dark-theme .streak-fire-mini {
  color: #ff0000;
  filter: drop-shadow(0 1px 4px #ff000088);
}
.dark-theme .streak-accept-btn,
.dark-theme .streak-close-btn {
  background: #ff9800;
  color: #fff;
}
.dark-theme .streak-accept-btn:hover,
.dark-theme .streak-close-btn:hover {
  background: #ff0000;
}
.streak-counter {
  font-size: 1em;
  font-weight: bold;
  margin-right: 7px;
  vertical-align: middle;
  color: #ff0000;
  text-shadow: 0 1px 6px #ff000055;
  transition: color 0.2s;
  min-width: 1.2em;
  display: inline-block;
  text-align: right;
}
.streak-fire-big-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  margin-bottom: 10px;
  gap: 0.25em;
  min-height: 1.2em;
  min-width: 3.2em;
  transform: translateX(-0.3em); /* Ajusta este valor según lo que veas */
}
.streak-fire-big-row .streak-fire-on {
  color: #ff0000 !important;
  filter: drop-shadow(0 2px 8px #ff000088);
}
.streak-fire-big-row .streak-fire-off {
  color: #888 !important;      /* Gris visible en ambos temas */
  filter: none;
  opacity: 0.85;
  transition: color 0.2s;
}
.dark-theme .streak-fire-big-row .streak-fire-off {
  color: #b0b0b0 !important;   /* Gris claro para fondo oscuro */
}
.light-theme .streak-fire-big-row .streak-fire-off {
  color: #888 !important;      /* Gris para fondo claro */
}
.streak-counter-big {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 900; /* Más gordo */
  position: static;
  transform: none;
  margin-right: 0.18em;
  font-size: 1.08em;
  color: #ff0000;
  text-shadow:
    0 1px 8px #ff000088,
    0 0 1px #ff0000,
    0 0 2px #ff0000;
  min-width: 1.2em; /* Asegura que el número no sea más estrecho que el fuego */
  text-align: right;
  pointer-events: none;
  display: inline-block;
  border-radius: 0.35em; /* Bordes redondeados visuales */
  letter-spacing: 0.03em;
}
.streak-fire-big-row .fire-centered {
  margin-left: 0.7em; /* Ajusta este valor hasta que lo veas perfectamente centrado */
}