/* ============================================
   ENHANCED DASHBOARD STYLES
   Mountain Lodge Modernism Design System
   ============================================ */

.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cream) 0%, white 100%);
  padding: 2rem 0 4rem;
}

/* ============================================
   ステータスカード - ENHANCED
   ============================================ */

.dashboard-status-card {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-light) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: statusCardFadeIn 0.8s ease-out;
}

@keyframes statusCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.status-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
}

.status-badge {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.status-pending {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.status-badge.status-active {
  background: rgba(255, 193, 7, 0.3);
  color: white;
  border-color: rgba(255, 193, 7, 0.5);
}

.status-period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.period-dates {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.countdown-large {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1;
}

.countdown-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ============================================
   ダッシュボードグリッド
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  animation: sectionFadeIn 0.8s ease-out both;
}

.dashboard-section.full-width {
  grid-column: 1 / -1;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-section:nth-child(1) {
  animation-delay: 0.1s;
}

.dashboard-section:nth-child(2) {
  animation-delay: 0.2s;
}

.section-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

/* ============================================
   タイムライン - ENHANCED
   ============================================ */

.dashboard-timeline {
  position: relative;
}

.timeline-today {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  border: 2px solid var(--cream-dark);
}

.timeline-event {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 60px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cream-dark) 0%, transparent 100%);
}

.timeline-event:last-child::before {
  display: none;
}

.timeline-event.active {
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
  border-radius: 12px;
  padding-left: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-right: 1rem;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  flex-shrink: 0;
  border: 2px solid var(--cream-dark);
  transition: all 0.3s ease;
}

.timeline-event.active .timeline-marker {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--sunset-amber) 100%);
  color: white;
  border-color: var(--sunset-orange);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.timeline-content {
  flex: 1;
  padding-top: 0.25rem;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   クイックアクション - ENHANCED
   ============================================ */

.quick-actions {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  animation: sectionFadeIn 0.8s ease-out 0.3s both;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-orange) 0%, var(--earth-clay) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--charcoal);
  border: 2px solid var(--cream-dark);
}

.btn-secondary:hover {
  background: var(--cream);
  border-color: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.calendar-back-btn {
  margin-bottom: 1.5rem;
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (min-width: 768px) {
  .dashboard-page {
    padding: 3rem 0 5rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-period {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) {
  .dashboard-status-card {
    padding: 3rem;
  }
}

/* ============================================
   アクセシビリティ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .dashboard-status-card,
  .dashboard-section,
  .quick-actions,
  .timeline-event,
  .timeline-marker {
    animation: none !important;
    transition: none !important;
  }
}
