/* ═══════════════════════════════════════════════════════════
   vibra-streak.css — Urban Daily Ritual · VibraWorld 3.0
   "El Duolingo de la energía urbana"
   ═══════════════════════════════════════════════════════════ */

/* ── Streak Badge (in VibraHome header) ── */
.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff2d87 100%);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(255,45,135,.3);
}
.vs-badge:active { transform: scale(.95); }
.vs-badge .vs-fire { font-size: 16px; animation: vs-flame .6s ease-in-out infinite alternate; }
.vs-badge .vs-num { font-variant-numeric: tabular-nums; }
.vs-badge.vs-frozen {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.vs-badge .vs-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  animation: vs-shimmer 2s ease-in-out infinite;
}

@keyframes vs-flame {
  from { transform: scale(1) rotate(-5deg); }
  to   { transform: scale(1.15) rotate(5deg); }
}
@keyframes vs-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Streak Panel (full screen) ── */
.vs-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #0a0a1a;
  color: #fff;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vs-panel.active { display: flex; }

/* Header */
.vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(10,10,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0; z-index: 2;
}
.vs-header h2 { font-size: 18px; font-weight: 700; margin: 0; }
.vs-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: none; color: #fff; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Main Fire Circle ── */
.vs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px;
  position: relative;
}
.vs-ring-wrap {
  position: relative;
  width: 160px; height: 160px;
}
.vs-ring-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.vs-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.06);
  stroke-width: 8;
}
.vs-ring-fill {
  fill: none;
  stroke: url(#vs-grad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
}
.vs-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.vs-ring-fire { font-size: 40px; animation: vs-flame .6s ease-in-out infinite alternate; }
.vs-ring-days {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #ff2d87);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vs-ring-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }

/* Streak info */
.vs-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.vs-stat {
  text-align: center;
}
.vs-stat-val { font-size: 20px; font-weight: 700; color: #fff; }
.vs-stat-lab { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── Weekly Calendar ── */
.vs-week {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.vs-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vs-day-name {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  font-weight: 600;
}
.vs-day-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,.08);
  transition: all .3s;
}
.vs-day-dot.done {
  background: linear-gradient(135deg, #ff6b35, #ff2d87);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255,45,135,.3);
}
.vs-day-dot.today {
  border-color: #ff6b35;
  animation: vs-today 2s ease-in-out infinite;
}
.vs-day-dot.future {
  opacity: .3;
}

@keyframes vs-today {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}

/* ── Daily Mission ── */
.vs-mission {
  margin: 0 20px 16px;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.06);
}
.vs-mission-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.vs-mission-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.vs-mission-info { flex: 1; }
.vs-mission-title { font-size: 15px; font-weight: 700; }
.vs-mission-desc { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }
.vs-mission-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,193,7,.12);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ffc107;
}

/* Progress bar */
.vs-progress {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.vs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #ff2d87);
  border-radius: 3px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* Mission CTA */
.vs-mission-cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff2d87);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s;
}
.vs-mission-cta:active { transform: scale(.97); }
.vs-mission-cta:disabled {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.3);
}

/* ── Milestones ── */
.vs-milestones {
  padding: 0 20px 20px;
}
.vs-milestones h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: rgba(255,255,255,.7);
}
.vs-milestone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.04);
  transition: all .3s;
}
.vs-milestone.achieved {
  background: rgba(255,107,53,.08);
  border-color: rgba(255,107,53,.2);
}
.vs-milestone-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.vs-milestone.achieved .vs-milestone-icon {
  background: linear-gradient(135deg, #ff6b35, #ff2d87);
}
.vs-milestone-info { flex: 1; }
.vs-milestone-name { font-size: 14px; font-weight: 700; }
.vs-milestone-req { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.vs-milestone-reward {
  font-size: 12px;
  font-weight: 700;
  color: #ffc107;
}

/* ── Multiplier Indicator ── */
.vs-multi {
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.vs-multi strong {
  color: #ff6b35;
  font-size: 18px;
}

/* ── Streak Freeze ── */
.vs-freeze {
  margin: 0 20px 100px;
  padding: 16px;
  background: rgba(99,179,237,.06);
  border-radius: 14px;
  border: 1px solid rgba(99,179,237,.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.vs-freeze-icon { font-size: 28px; }
.vs-freeze-info { flex: 1; }
.vs-freeze-title { font-size: 13px; font-weight: 700; color: #63b3ed; }
.vs-freeze-desc { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.vs-freeze-count { font-size: 22px; font-weight: 800; color: #63b3ed; }
