/* Welcome/Onboarding Carousel */

/* Hide navigation on welcome page */
body.welcome-page .top-nav,
body.welcome-page .bottom-nav {
  display: none !important;
}

.welcome-container {
  position: fixed;
  inset: 0;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1100; /* Higher than navigation (1001-1002) */
}

/* Progress dots */
.welcome-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-shrink: 0;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.welcome-dot:hover {
  background: var(--text-secondary);
}

.welcome-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary-color);
}

/* Carousel container */
.welcome-carousel {
  flex: 1;
  display: flex;
  transition: transform 0.4s ease-out;
}

/* Individual slides */
.welcome-slide {
  min-width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
}

.welcome-slide h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.welcome-slide > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 320px;
  line-height: 1.5;
}

/* Slide icons */
.welcome-slide-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.welcome-slide-icon svg {
  width: 100%;
  height: 100%;
}

.welcome-slide-icon--location {
  color: #10b981;
}

.welcome-slide-icon--notifications {
  color: #f59e0b;
}

.welcome-slide-icon--budget {
  color: var(--primary-color);
}

.welcome-slide-icon--timezone {
  color: #6366f1;
}

/* Timezone options (timezone slide) */
.welcome-timezone-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.welcome-timezone-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-background);
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-timezone-option:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.05);
}

.welcome-timezone-option.is-selected {
  border-color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.1);
}

.welcome-timezone-option .timezone-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.welcome-timezone-option.is-selected .timezone-name {
  color: var(--primary-color);
}

.welcome-timezone-option .timezone-offset {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.welcome-timezone-option .timezone-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Features list (info slide) */
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card-background);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.welcome-feature svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.welcome-feature span {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Slide action buttons */
.welcome-slide-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}

.welcome-slide-actions .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.welcome-slide-actions .btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Status messages */
.welcome-location-status,
.welcome-notification-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  color: #10b981;
  margin-top: 1rem;
}

.welcome-location-status svg,
.welcome-notification-status svg {
  flex-shrink: 0;
}

/* Budget choice cards */
.welcome-choice-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.welcome-choice-card {
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-background);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.welcome-choice-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.welcome-choice-card:active {
  transform: translateY(0);
}

.welcome-choice-card--primary {
  border-color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.05);
}

.welcome-choice-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--text-secondary);
}

.welcome-choice-card--primary .welcome-choice-icon {
  color: var(--primary-color);
}

.welcome-choice-icon svg {
  width: 100%;
  height: 100%;
}

.welcome-choice-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.welcome-choice-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Navigation buttons */
.welcome-nav {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem 2rem;
  flex-shrink: 0;
  background: var(--background-color);
}

.welcome-nav .btn {
  flex: 1;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive - larger screens */
@media (min-width: 640px) {
  .welcome-slide {
    padding: 3rem 2rem;
  }

  .welcome-slide h2 {
    font-size: 1.75rem;
  }

  .welcome-slide-icon {
    width: 120px;
    height: 120px;
  }

  .welcome-choice-cards {
    flex-direction: row;
    max-width: 480px;
  }

  .welcome-choice-card {
    flex: 1;
  }

  .welcome-nav {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .welcome-choice-card--primary {
  background: rgba(var(--primary-color-rgb), 0.1);
}

[data-theme="dark"] .welcome-feature {
  background: var(--card-background);
}

/* Animation for spinning loader */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Safe area padding for mobile devices with notches */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .welcome-nav {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}
