/**
 * RaceDesk - Welcome / Landing Page Stylesheet
 * Rich Aesthetics, Modern Hero, Dynamic Sport Cards & Features
 */

.welcome-hero {
  padding: 56px 48px;
  background: linear-gradient(135deg, #0b1329 0%, #0f172a 45%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 100%;
  height: 180%;
  background: radial-gradient(circle at 75% 45%, rgba(37, 99, 235, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.welcome-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-left {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(37, 99, 235, 0.25);
}

.hero-banner-logo {
  width: 260px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 640px;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(to right, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  z-index: 2;
}

.btn-hero-primary {
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.18s ease;
}

.btn-hero-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 960px) {
  .welcome-hero {
    padding: 40px 24px;
  }
  .welcome-hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-banner-logo {
    width: 200px;
  }
}

/* =========================================
   2. SPORT CARDS GRID
   ========================================= */
.welcome-section {
  margin-bottom: 48px;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-header-bg);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.sport-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sport-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sport-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sport-card-icon {
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-bg);
  border: 1px solid var(--color-border);
}

.sport-card.alpine .sport-card-icon { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.sport-card.cross_country .sport-card-icon { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.sport-card.biathlon .sport-card-icon { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.sport-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.sport-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  flex: 1 0 auto;
  margin-bottom: 20px;
}

.sport-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-subtle);
}

/* =========================================
   3. HIGHLIGHT FEATURES
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.feature-item:hover {
  background: #f8fafc;
  border-color: var(--color-primary);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-ice-blue);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .welcome-hero {
    padding: 40px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
}
