/* ═══════════════════════════════════════════════════════════
   EduKids — missions.css
   "Misiones de hoy" daily-mission block on the home screen
═══════════════════════════════════════════════════════════ */

/* ── Missions Block Container (compact strip — must not dwarf the modules grid) ── */
.missions-block {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

/* ── Header row: title + streak chip ── */
.missions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
}

.missions-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

/* ── Streak chip ── */
.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.6;
  transition: all var(--transition);
  white-space: nowrap;
}

.streak-chip.active {
  opacity: 1;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.7), 0 4px 12px rgba(255, 107, 53, 0.4);
  animation: streakPulse 2.2s ease-in-out infinite;
}

@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 107, 53, 0.7), 0 4px 12px rgba(255, 107, 53, 0.4); }
  50%       { box-shadow: 0 0 28px rgba(255, 107, 53, 0.9), 0 6px 20px rgba(255, 107, 53, 0.6); }
}

/* ── Mission list: compact horizontal chips (wraps to 2×2 on small screens) ── */
.missions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
}

/* ── Individual mission card (chip-sized) ── */
.mission-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast),
              box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.mission-card:not(.done):not(.play):hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mission-card:not(.done):not(.play):active {
  transform: scale(0.97);
}

/* Play mission: not clickable */
.mission-card.play {
  cursor: default;
  opacity: 0.7;
}

/* Done state */
.mission-card.done {
  opacity: 0.5;
  cursor: default;
}

.mission-card.done:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* ── Mission icon ── */
.mission-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}

/* ── Mission label ── */
.mission-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Status indicator (right side) ── */
.mission-status {
  font-size: 1rem;
  flex-shrink: 0;
  min-width: 18px;
  text-align: center;
}
