/*
============================================
=              Subathon Page               =
============================================
*/
main {
  background-color: var(--togichu-black);
  min-height: 100vh;
}

.subathon-container {
  max-width: 896px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem 3rem;
}

/* Hero Section */
.subathon-hero {
  text-align: center;
  margin: 2rem 0;
}

.subathon-title {
  font-family: var(--font-grotesk);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--togichu-magenta);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.subathon-subtitle {
  font-family: var(--font-grotesk);
  font-size: 1.375rem;
  color: #32b8c6;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Current Sub Count Badge */
.sub-count-badge {
  display: inline-block;
  background: rgba(223, 64, 120, 0.2);
  border: 1px solid var(--togichu-magenta);
  padding: 8px 24px;
  border-radius: 12px;
}

.sub-count-badge-number {
  font-family: var(--font-grotesk);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--togichu-magenta);
  display: block;
}

.sub-count-badge-fallback {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

/* Main Progress Bar Section */
.progress-section {
  margin-bottom: 5rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--togichu-peach);
}

.progress-bar-wrapper {
  height: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 9999px;
  border: 1px solid var(--togichu-charcoal);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #32b8c6 0%, var(--togichu-magenta) 100%);
  position: relative;
  border-radius: 9999px;
  width: 0;
  transition: width 900ms ease-out;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

.progress-reward {
  text-align: center;
  margin-top: 1rem;
}

.progress-reward-text {
  font-size: 1.25rem;
  color: #fff;
}

.progress-reward-name {
  color: var(--togichu-magenta);
  font-weight: 700;
}

/* Goals List */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Empty Goals Message */
.goals-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--togichu-charcoal);
  border-radius: 12px;
  border: 1px dashed #374151;
  margin: 2rem 0;
}

.goals-empty-text {
  font-family: var(--font-grotesk);
  font-size: 1.125rem;
  color: #9ca3af;
  margin: 0;
}

/* Goal Card Base */
.goal-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Goal Icon */
.goal-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-right: 1rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Goal Content */
.goal-content {
  flex: 1;
}

.goal-title {
  font-family: var(--font-grotesk);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.goal-desc {
  font-family: var(--font-inter);
  font-size: 0.875rem;
  margin: 0;
}

/* Goal Meta (right side) */
.goal-meta {
  text-align: right;
  flex-shrink: 0;
}

.goal-target-number {
  font-family: var(--font-grotesk);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.goal-target-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.goal-status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid;
  display: inline-block;
}

/* --- GOAL STATES --- */

/* COMPLETED STATE (✓) */
.goal-card.completed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.goal-card.completed .goal-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.goal-card.completed .goal-title {
  color: #86efac;
}

.goal-card.completed .goal-desc {
  color: rgba(74, 222, 128, 0.8);
}

.goal-card.completed .goal-status-badge {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.5);
}

/* UNLOCKED STATE (🔓) */
.goal-card.unlocked {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.goal-card.unlocked .goal-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.goal-card.unlocked .goal-title {
  color: #93c5fd;
}

.goal-card.unlocked .goal-desc {
  color: rgba(96, 165, 250, 0.8);
}

.goal-card.unlocked .goal-status-badge {
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.5);
}

/* ACTIVE/NEXT GOAL (➜) - Highlighted */
.goal-card.active {
  background: var(--togichu-charcoal);
  border: 2px solid var(--togichu-magenta);
  padding: 24px;
  box-shadow: 0 0 30px rgba(223, 64, 120, 0.4);
  transform: scale(1.05);
  position: relative;
  z-index: 10;
}

.goal-card.active .goal-icon {
  background: var(--togichu-magenta);
  color: #fff;
  box-shadow: 0 0 20px rgba(223, 64, 120, 0.4);
}

.goal-card.active .goal-title {
  color: #fff;
  font-size: 1.5rem;
}

.goal-card.active .goal-desc {
  color: var(--togichu-peach);
  font-size: 1.025rem;
}

.goal-card.active .goal-target-number {
  color: #fff;
  font-size: 1.875rem;
}

.goal-card.active .goal-target-label {
  color: #999;
}

/* LOCKED STATE (⏳) */
.goal-card.locked {
  background: var(--togichu-charcoal);
  border: 1px solid #374151;
}

.goal-card.locked .goal-icon {
  background: #1f2937;
  color: #9ca3af;
}

.goal-card.locked .goal-title {
  color: #d1d5db;
}

.goal-card.locked .goal-desc {
  color: #6b7280;
}

.goal-card.locked .goal-target-number {
  color: #fff;
}

/* HIDDEN STATE (🔒) */
.goal-card.hidden {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed #1f2937;
}

.goal-card.hidden .goal-icon {
  background: transparent;
  color: #4b5563;
}

.goal-card.hidden .goal-title {
  color: #4b5563;
}

.goal-card.hidden .goal-desc {
  color: #374151;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .subathon-title {
    font-size: 2.5rem;
  }

  .goal-card.active {
    transform: scale(1);
    padding: 16px;
  }

  .goal-card.active .goal-title {
    font-size: 1.25rem;
  }
}
