/* ============================================
   Screen-Specific Styles
   ============================================ */

/* === Splash Screen === */
.splash-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
}

.splash-screen__logo {
  font-size: 48px;
  font-weight: 700;
  animation: splashFadeIn 1s ease forwards;
  opacity: 0;
}

.splash-screen__tagline {
  font-size: var(--text-body-size);
  opacity: 0;
  animation: splashFadeIn 1s ease 0.5s forwards;
  margin-top: var(--space-sm);
}

/* === Onboarding === */
.onboarding {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
}

.onboarding__slides {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.onboarding__slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
  transition: transform var(--transition-normal);
}

.onboarding__illustration {
  width: 200px;
  height: 200px;
  margin-bottom: var(--space-2xl);
  color: var(--color-primary);
}

.onboarding__title {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  margin-bottom: var(--space-md);
}

.onboarding__text {
  font-size: var(--text-body-size);
  color: var(--color-text-secondary);
  max-width: 300px;
}

.onboarding__footer {
  padding: var(--space-lg);
}

.onboarding__dots {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-fast);
}

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

.onboarding__skip {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
}

/* === Auth Screens === */
.auth-screen {
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
}

.auth-screen__logo {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-screen__logo-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.auth-screen__title {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  margin-bottom: var(--space-sm);
}

.auth-screen__subtitle {
  font-size: var(--text-body-size);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.auth-screen__form {
  flex: 1;
}

.auth-screen__footer {
  text-align: center;
  padding-top: var(--space-lg);
}

.auth-screen__link {
  color: var(--color-primary);
  font-weight: 600;
}

.auth-screen__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm-size);
}

.auth-screen__divider::before,
.auth-screen__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-screen__social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.auth-screen__social-btn {
  width: var(--tap-target);
  height: var(--tap-target);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Home Screen === */
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.home-hero__slide {
  min-width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  padding: var(--space-lg);
  background: var(--gradient-primary);
  color: white;
}

.home-hero__content {
  max-width: 60%;
}

.home-hero__title {
  font-size: var(--text-h2-size);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.home-hero__subtitle {
  font-size: var(--text-body-sm-size);
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

/* === Product Detail === */
.product-detail__subscribe-box {
  background: var(--color-primary-lightest);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.product-detail__subscribe-box--active {
  border-color: var(--color-primary);
}

.product-detail__subscribe-savings {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-body-sm-size);
}

.product-detail__info-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-body-sm-size);
}

.product-detail__info-icon {
  color: var(--color-success);
}

/* === Cart === */
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  transition: transform var(--transition-normal);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}

.cart-item__details {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: var(--text-body-sm-size);
  margin-bottom: var(--space-xs);
}

.cart-item__variant {
  font-size: var(--text-caption-size);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Checkout === */
.checkout-summary {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--text-body-sm-size);
}

.checkout-summary__row--total {
  font-weight: 700;
  font-size: var(--text-body-size);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}

/* === Shipping Method Card === */
.shipping-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-sm);
}

.shipping-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
}

.shipping-option__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  position: relative;
}

.shipping-option--selected .shipping-option__radio {
  border-color: var(--color-primary);
}

.shipping-option--selected .shipping-option__radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.shipping-option__details { flex: 1; }
.shipping-option__name { font-weight: 600; font-size: var(--text-body-sm-size); }
.shipping-option__time { font-size: var(--text-caption-size); color: var(--color-text-secondary); }
.shipping-option__price { font-weight: 600; }

/* === Payment Method Card === */
.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-sm);
}

.payment-option--selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
}

/* === Order Confirmation === */
.order-confirm {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.order-confirm__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 40px;
}

.order-confirm__points {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-primary-lightest);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* === Account Dashboard === */
.account-header {
  padding: var(--space-lg);
  background: var(--color-bg-white);
}

.account-header__greeting {
  font-size: var(--text-h2-size);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.account-highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.highlight-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}

.highlight-card__icon {
  margin-bottom: var(--space-sm);
}

.highlight-card__value {
  font-weight: 700;
  font-size: var(--text-h3-size);
}

.highlight-card__label {
  font-size: var(--text-caption-size);
  color: var(--color-text-secondary);
}

.highlight-card--full {
  grid-column: span 2;
}

/* === Equipment === */
.maintenance-task {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.maintenance-task--overdue {
  background: var(--color-error-light);
}

.maintenance-task__status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.maintenance-task__status--due { background: var(--color-warning); }
.maintenance-task__status--overdue { background: var(--color-error); }
.maintenance-task__status--done { background: var(--color-success); }

/* === Ambassador Map === */
.ambassador-map {
  height: 50vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ambassador-map__controls {
  padding: var(--space-md);
}

/* Custom Leaflet marker (remove default icon styling) */
.ambassador-marker,
.ambassador-marker-profile {
  background: none !important;
  border: none !important;
}

/* Leaflet popup override for consistent font */
.leaflet-popup-content {
  font-family: var(--font-family);
  margin: 12px;
}

/* === Breakdown Wizard === */
.wizard-progress {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.wizard-progress__step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border-light);
}

.wizard-progress__step--completed {
  background: var(--color-primary);
}

.wizard-progress__step--active {
  background: var(--color-primary-light);
}

/* === Biometric Prompt === */
.biometric-prompt {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-white);
}

.biometric-prompt__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-xl);
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

/* === Subscription Detail === */
.subscription-detail__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

/* === Loyalty Rewards === */
.reward-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.reward-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-lightest);
  color: var(--color-primary);
  font-size: 24px;
  flex-shrink: 0;
}

.reward-card__details { flex: 1; }
.reward-card__name { font-weight: 600; margin-bottom: 2px; }
.reward-card__cost { font-size: var(--text-caption-size); color: var(--color-text-secondary); }

/* === Challenge Card === */
.challenge-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.challenge-card__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.challenge-card__title { font-weight: 600; font-size: var(--text-body-sm-size); }
.challenge-card__reward { font-size: var(--text-caption-size); color: var(--color-primary); font-weight: 600; }

.challenge-card__progress-text {
  font-size: var(--text-caption-size);
  color: var(--color-text-secondary);
  text-align: right;
  margin-top: var(--space-xs);
}
