/**
 * @file
 * Styles for the welcome/onboarding page.
 */

.welcome-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Hero Section */
.welcome-page__hero {
  background: linear-gradient(135deg, #1F5A96 0%, #2E6FAF 100%);
  padding: 3rem 2rem;
  margin: -1rem -1rem 2rem -1rem;
  border-radius: 0 0 16px 16px;
}

.welcome-page__hero--anon {
  padding: 4rem 2rem;
}

.welcome-page__hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome-page__title {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.welcome-page__hero--anon .welcome-page__title {
  font-size: 2.5rem;
}

.welcome-page__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Referral Banner */
.welcome-page__referral {
  background: linear-gradient(135deg, #1D8A4E 0%, #4EC87A 100%);
  padding: 2rem;
  margin: -1rem -1rem 0 -1rem;
  text-align: center;
}

.welcome-page__referral + .welcome-page__hero {
  margin-top: 0;
  border-radius: 0 0 16px 16px;
}

.welcome-page__referral-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.welcome-page__referral-group {
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.welcome-page__referral-text {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.welcome-page__section {
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.welcome-page__section-title {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Card Grid (Authenticated) */
.welcome-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.welcome-page__card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.welcome-page__card:hover {
  border-color: #1F5A96;
  box-shadow: 0 4px 12px rgba(31, 90, 150, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.welcome-page__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-page__card-icon--profile {
  background: #E8F0F7;
}

.welcome-page__card-icon--profile::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #1F5A96;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.welcome-page__card-icon--browse {
  background: #fef3c7;
}

.welcome-page__card-icon--browse::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #D4A017;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
}

.welcome-page__card-icon--groups {
  background: #D0F5DC;
}

.welcome-page__card-icon--groups::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #4EC87A;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
}

.welcome-page__card-icon--subscriptions {
  background: #FCE4DE;
}

.welcome-page__card-icon--subscriptions::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #EF7B6C;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.welcome-page__card-icon--preferences {
  background: #E8F0F7;
}

.welcome-page__card-icon--preferences::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #4A8BC2;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.welcome-page__card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.welcome-page__card-description {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  flex: 1;
}

.welcome-page__card-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1F5A96;
}

/* Promo Card — Start Your Groups */
.welcome-page__promo {
  display: flex;
  justify-content: center;
}

.welcome-page__promo-inner {
  width: 60%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #EF7B6C;
  border-right: 5px solid #EF7B6C;
  border-radius: 12px;
  padding: 2rem 2.5rem;
}

.welcome-page__promo-content {
  max-width: 560px;
}

.welcome-page__promo-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #EF7B6C;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
}

.welcome-page__promo-headline {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.welcome-page__promo-text {
  margin: 0 0 1.25rem 0;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .welcome-page__promo-inner {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .welcome-page__promo-inner {
    padding: 1.5rem;
  }

  .welcome-page__promo-headline {
    font-size: 1.25rem;
  }
}

/* Orientation Section */
.welcome-page__orientation {
  padding: 1.5rem;
  margin: 0 1rem 2.5rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.welcome-page__orientation-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.welcome-page__orientation-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Anonymous Intro Features */
.welcome-page__section--intro {
  padding: 0 1rem;
}

.welcome-page__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.welcome-page__intro-feature {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
}

.welcome-page__intro-feature-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.welcome-page__intro-feature-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
}

/* CTA Section (Anonymous) */
.welcome-page__cta-section {
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 1rem 2rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.welcome-page__cta-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.welcome-page__cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Actions / Buttons */
.welcome-page__action {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.welcome-page__action--primary {
  background: #1F5A96;
  color: #fff;
}

.welcome-page__action--primary:hover {
  background: #1B4B8A;
  text-decoration: none;
  color: #fff;
}

.welcome-page__action--secondary {
  background: #fff;
  color: #1F5A96;
  border: 2px solid #1F5A96;
}

.welcome-page__action--secondary:hover {
  background: #E8F0F7;
  text-decoration: none;
}

.welcome-page__action--large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Announcement Block */
.new-user-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #E8F0F7 0%, #E8F0F7 100%);
  border: 1px solid #C5D9EC;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.new-user-announcement__content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: #0F2847;
}

.new-user-announcement__content a {
  color: #1F5A96;
  font-weight: 500;
}

.new-user-announcement__content a:hover {
  text-decoration: underline;
}

.new-user-announcement__dismiss {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid #8CB4D9;
  border-radius: 6px;
  color: #1B4B8A;
  cursor: pointer;
  transition: all 0.15s ease;
}

.new-user-announcement__dismiss:hover {
  background: #1F5A96;
  border-color: #1F5A96;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-page__hero {
    padding: 2rem 1rem;
    margin: -0.5rem -0.5rem 1.5rem -0.5rem;
  }

  .welcome-page__hero--anon {
    padding: 3rem 1rem;
  }

  .welcome-page__title {
    font-size: 1.5rem;
  }

  .welcome-page__hero--anon .welcome-page__title {
    font-size: 1.75rem;
  }

  .welcome-page__referral {
    margin: -0.5rem -0.5rem 0 -0.5rem;
    padding: 1.5rem 1rem;
  }

  .welcome-page__section {
    padding: 0 0.5rem;
  }

  .welcome-page__grid {
    grid-template-columns: 1fr;
  }

  .welcome-page__intro-features {
    grid-template-columns: 1fr;
  }

  .welcome-page__cta-section {
    padding: 2rem 1rem;
    margin: 0 0.5rem 1.5rem 0.5rem;
  }

  .welcome-page__orientation {
    margin: 0 0.5rem 2rem 0.5rem;
  }
}
