/* ========================================
   WELCOME / START
   ======================================== */
.phase-welcome {
  background: var(--gradient-heal);
  cursor: pointer;
}

.welcome-content {
  text-align: center;
  max-width: 320px;
}

.welcome-icon {
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  display: flex;
  justify-content: center;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.welcome-sub {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.welcome-tap {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  animation: pulse-gentle 3s var(--ease-gentle) infinite;
}

@keyframes pulse-gentle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* ========================================
   PHASE 1: HEALING
   ======================================== */
.phase-heal {
  background: var(--gradient-heal);
  transition:
    background 3s var(--ease-gentle),
    opacity var(--duration-slow) var(--ease-gentle);
}

.heal-content {
  text-align: center;
  max-width: 400px;
}

.heal-message {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2;
  color: var(--color-text-primary);
  opacity: 0;
  transition: opacity 2s var(--ease-gentle);
}

.heal-message.visible {
  opacity: 1;
}

.heal-time {
  margin-top: var(--space-xl);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* Ambient background orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float-orb 20s var(--ease-gentle) infinite;
}

.ambient-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 85, 61, 0.3) 0%, rgba(200, 85, 61, 0) 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.ambient-orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.25) 0%, rgba(184, 134, 11, 0) 70%);
  bottom: -80px;
  left: -80px;
  animation-delay: -7s;
}

.ambient-orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 152, 94, 0.25) 0%, rgba(232, 152, 94, 0) 70%);
  top: 40%;
  left: 60%;
  animation-delay: -13s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

/* ========================================
   PHASE 2: NEWS
   ======================================== */
.phase-news {
  background: var(--gradient-news);
  justify-content: flex-start;
  padding-top: var(--space-xl);
}

.news-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.news-header-title {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.news-feed {
  flex: 1;
  width: 100%;
  max-width: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2xl);
  scrollbar-width: none;
}

.news-feed::-webkit-scrollbar {
  display: none;
}

.news-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.6s var(--ease-gentle) forwards;
}

.news-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.news-item-source {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.news-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-xl) 0;
  font-size: 0.875rem;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PHASE 3: JOURNAL
   ======================================== */
.phase-journal {
  background: var(--gradient-journal);
}

.journal-content {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.journal-prompt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.journal-input {
  width: 100%;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  text-align: center;
  color: var(--color-text-primary);
  background: transparent;
  transition: border-color var(--duration-fast) var(--ease-gentle);
}

.journal-input::placeholder {
  color: var(--color-text-muted);
}

.journal-input:focus {
  border-color: var(--color-accent-soft);
}

.journal-timer {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.journal-skip {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.3;
}

/* ========================================
   DONE
   ======================================== */
.phase-done {
  background: var(--gradient-done);
}

.done-content {
  text-align: center;
  max-width: 360px;
}

.done-message {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fade-in-slow 2s var(--ease-gentle) 0.5s forwards;
}

.done-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  opacity: 0;
  animation: fade-in-slow 2s var(--ease-gentle) 1.5s forwards;
}

.done-weekly {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  opacity: 0;
  animation: fade-in-slow 2s var(--ease-gentle) 2.5s forwards;
}

.done-weekly-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.done-weekly-entries {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

@keyframes fade-in-slow {
  to {
    opacity: 1;
  }
}

/* ========================================
   ALREADY DONE (re-visit same day)
   ======================================== */
.phase-already-done {
  background: var(--gradient-heal);
  cursor: pointer;
}

.already-done-content {
  text-align: center;
  max-width: 360px;
}

.already-done-message {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 2;
  margin-bottom: var(--space-lg);
}

.already-done-replay {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}
