/**
 * Builder Landing v7.6.3 - Intro, landing page, team size selection
 * Extracted from team-builder.css monolith
 *
 * Contains: Intro stage (hero, badge, features, CTA),
 * landing page (cards, steps), team size cards, selected summary.
 * Loaded on ALL builder pages (these are the first stages).
 */

/* ========================================================
   STAGE: INTRO
   ======================================================== */
.stage-intro {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Hero section with background - contains title and description */
.intro-hero {
  position: relative;
  padding: var(--space-12) 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: 
    radial-gradient(ellipse 100% 100% at 50% 20%, rgba(184, 154, 87, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(184, 154, 87, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(212, 165, 116, 0.08) 0%, transparent 35%),
    linear-gradient(180deg, rgba(30, 25, 20, 0.6) 0%, rgba(18, 22, 28, 0.95) 100%);
}

.intro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(184, 154, 87, 0.025) 30px,
      rgba(184, 154, 87, 0.025) 60px
    );
  pointer-events: none;
}

/* Large decorative icon in hero */
.intro-hero::after {
  content: '\f1b2';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  color: rgba(184, 154, 87, 0.06);
  pointer-events: none;
}

/* Remove old hero-bg div styling */

/* Content below hero - features and CTA */
.intro-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6) 2rem 2rem;
  text-align: center;
  gap: var(--space-6);
}

/* Remove individual margins since gap handles spacing - higher specificity */
.builder-app .intro-body > * {
  margin: 0;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 154, 87, 0.4);
  color: var(--gold-400);
  padding: var(--space-2) 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.intro-badge i {
  font-size: 0.75rem;
  color: var(--gold-600);
}

.intro-title {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0 auto 1rem auto;
}

.accent-text {
  color: var(--gold-500);
}

.intro-desc {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.intro-features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
}

.intro-feature i {
  color: var(--gold-600);
  font-size: 0.9rem;
}







@media (min-width: 600px) {
  .intro-hero {
    height: 280px;
  }
  
  .intro-title {
    font-size: 3rem;
  }
  
  .intro-body {
    padding: var(--space-8) 3rem 2.5rem;
  }
}


   LANDING PAGE
   ======================================================== */
.builder-landing {
  padding: var(--space-8) 0 4rem;
  min-height: 100vh;
}

/* ========================================================
   INTRO SCREEN - Welcome/Hero Section
   ======================================================== */
.intro-screen {
  max-width: 900px;
  margin: 0 auto;
}

.intro-card {
  background: linear-gradient(165deg, rgba(28, 32, 40, 0.98) 0%, rgba(18, 22, 28, 0.99) 100%);
  border: 1px solid rgba(60, 68, 80, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.intro-background {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.intro-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(184, 154, 87, 0.15) 0%, rgba(18, 22, 28, 0.9) 100%);
  background-image: 
    radial-gradient(circle at 30% 50%, rgba(184, 154, 87, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(212, 165, 116, 0.15) 0%, transparent 40%);
  position: relative;
}

/* Placeholder pattern for product image area */
.intro-bg-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(184, 154, 87, 0.03) 20px,
      rgba(184, 154, 87, 0.03) 40px
    );
}

.intro-bg-placeholder::after {
  content: '\f1b2'; /* fa-cube */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(184, 154, 87, 0.2);
}

/* Gradient fade at bottom of image */
.intro-background::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(18, 22, 28, 1) 0%, transparent 100%);
}

.intro-content {
  padding: var(--space-6) 2rem 2rem;
  text-align: center;
}

/* Duplicate intro styles removed - defined above in lines 305-350 */





@media (min-width: 600px) {
  .intro-background {
    height: 280px;
  }
  
  .intro-title {
    font-size: 3rem;
  }
  
  .intro-content {
    padding: var(--space-8) 3rem 2.5rem;
  }
}

/* ========================================================
   LANDING STEPS SECTION
   ======================================================== */
.landing-section {
  /* Shown after intro */
}

/* Header back button */
.header-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(184, 154, 87, 0.1);
  border: 1px solid rgba(184, 154, 87, 0.25);
  border-radius: var(--radius-sm);
  color: var(--gold-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-back-btn:hover {
  background: rgba(184, 154, 87, 0.2);
  border-color: var(--gold-600);
  transform: translateX(-2px);
}

.header-spacer {
  width: 32px;
  flex-shrink: 0;
}

/* Hide old hero section */
.landing-hero {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(184, 154, 87, 0.2), rgba(184, 154, 87, 0.1));
  border: 1px solid rgba(184, 154, 87, 0.3);
  color: var(--gold-400);
  padding: var(--space-2) 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.landing-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.landing-title span {
  color: var(--gold-500);
}

.landing-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (min-width: 600px) {
  .landing-title {
    font-size: 3rem;
  }
}

/* Feature Strip */
.feature-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(30, 35, 41, 0.8) 100%);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-4) 1.5rem;
  margin-bottom: 2rem;
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: var(--space-1) 0.5rem;
}

.feature-strip-item i {
  color: var(--gold-600);
  font-size: 1rem;
}

.feature-strip-divider {
  width: 4px;
  height: 4px;
  background: var(--border-muted);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .feature-strip {
    gap: var(--space-1);
    padding: var(--space-3) 1rem;
  }
  .feature-strip-item {
    font-size: 0.75rem;
    padding: var(--space-1) 0.3rem;
  }
  .feature-strip-item i {
    font-size: 0.85rem;
  }
}

/* Landing Content */
.landing-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Landing Card - Matches builder-main styling */
.landing-card {
  background: linear-gradient(165deg, rgba(28, 32, 40, 0.98) 0%, rgba(18, 22, 28, 0.99) 100%);
  border: 1px solid rgba(60, 68, 80, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Landing Card Header - Matches builder-header */
.landing-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) 1.25rem;
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.98) 0%, rgba(18, 22, 28, 0.98) 100%);
  min-height: 50px;
  position: relative;
}

/* Animated gold gradient bar at bottom of header */
@keyframes headerShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.landing-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 90, 43, 0.6) 15%,
    var(--gold-600) 35%,
    var(--gold-400) 50%,
    var(--gold-600) 65%,
    rgba(139, 90, 43, 0.6) 85%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: headerShimmer 6s ease-in-out infinite;
}

.landing-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-500);
  font-family: var(--font-heading);
  line-height: 1;
}

/* Landing Card Body */
.landing-card-body {
  padding: var(--space-6);
}

/* Step Content - Animates in/out */
.landing-step-content {
  /* Animation handled by JS fadeIn/fadeOut */
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: 1.5rem;
}

.step-header-with-back {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: 1.5rem;
}

.step-header-with-back .step-header {
  margin-bottom: 0;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--text-on-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-header-text {
  flex: 1;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--gold-500);
}

.step-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.step-back-btn {
  background: rgba(184, 154, 87, 0.1);
  border: 1px solid rgba(184, 154, 87, 0.25);
  color: var(--gold-600);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-back-btn:hover {
  background: rgba(184, 154, 87, 0.2);
  border-color: var(--gold-600);
  transform: translateX(-3px);
}


   TEAM SIZE CARDS (Modern Redesign)
   ======================================================== */
.team-size-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  perspective: 1000px;
}

@media (min-width: 650px) {
  .team-size-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* Size card - uses .card base from component library */
.size-card {
  position: relative;
  transition: transform var(--transition-normal);
  /* Base card styles inherited from .card .card--elevated .card--interactive */
}

.size-card:focus-within .size-card-inner {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

.size-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-card label {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  position: relative;
  /* Background, border, border-radius, cursor, transition inherited from .card */
}

/* Corner decorations for size cards */
.size-card label::before,
.size-card label::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(184, 154, 87, 0.3);
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 1;
}

.size-card label::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
  border-radius: var(--radius-sm) 0 0 0;
}

.size-card label::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* Hover decorations - base hover handled by .card--interactive */
.size-card:hover label::before,
.size-card:hover label::after {
  border-color: var(--gold-600);
  width: 28px;
  height: 28px;
}

.size-card.selected label {
  border-color: var(--gold-600);
  background: 
    linear-gradient(165deg, rgba(50, 40, 30, 0.98) 0%, rgba(20, 16, 12, 0.99) 100%);
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(184, 154, 87, 0.25),
    inset 0 0 40px rgba(184, 154, 87, 0.08);
}

.size-card.selected label::before,
.size-card.selected label::after {
  border-color: var(--gold-600);
  width: 24px;
  height: 24px;
}

/* Featured Card (16 player) - Glowing Border */
.size-card.featured label {
  border-color: rgba(184, 154, 87, 0.6);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(184, 154, 87, 0.12);
}

.size-card.featured label::before,
.size-card.featured label::after {
  border-color: rgba(184, 154, 87, 0.5);
}

/* Featured Badge - Fantasy Style */
.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-600) 0%, #8b5e25 100%);
  color: var(--text-on-gold);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  padding: var(--space-2) 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 20;
  border-radius: var(--radius-sm);
  box-shadow: 
    0 4px 20px rgba(184, 154, 87, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
}

.featured-ribbon i {
  margin-right: 0.35rem;
}

/* Card Header - Big Number Focus */
.size-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) 1.5rem 1.25rem;
}

.size-card.featured .size-card-header {
  padding-top: 2.25rem;
}

.size-card-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
  font-family: var(--font-display);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.size-card.selected .size-card-number,
.size-card.featured .size-card-number {
  color: var(--gold-500);
}

.size-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.size-card-title .title-main {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.size-card-title .title-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-body);
}

/* Card Body */
.size-card-body {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.size-card-includes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.include-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(200, 205, 215, 0.95);
}

.include-item i {
  color: var(--gold-600);
  font-size: 0.65rem;
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}

.include-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.include-item.highlight {
  color: var(--gold-400);
}

.include-item.highlight strong {
  color: var(--gold-400);
}

.include-item.highlight i {
  color: var(--gold-600);
}

.include-item.faded {
  color: rgba(140, 148, 158, 0.7);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.include-item.faded i {
  color: rgba(140, 148, 158, 0.5);
}

/* Savings Banner - Modern Chip */
.size-card-savings {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.08) 100%);
  border: 1px solid rgba(40, 167, 69, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-3) 0.85rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--btn-success);
  font-weight: 600;
}

.size-card-savings i {
  font-size: 0.85rem;
}

/* Card Footer - Clean Price Row */
.size-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 1.5rem;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-top: 1px solid rgba(184, 154, 87, 0.2);
  border-radius: 0 0 10px 10px;
}

.size-card-price .price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

.size-card-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-neutral);
  color: var(--text-primary);
  padding: var(--space-3) 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-button);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.size-card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left var(--transition-slow);
}

.size-card:hover .size-card-cta::before {
  left: 100%;
}

.size-card:hover .size-card-cta {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-700) 100%);
  color: var(--text-on-gold);
  box-shadow:
    0 6px 20px rgba(184, 154, 87, 0.5),
    0 0 15px rgba(184, 154, 87, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.size-card.selected .size-card-cta {
  background: var(--gradient-success);
  box-shadow: 
    0 4px 15px rgba(92, 184, 92, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.size-card.selected .size-card-cta span {
  display: none;
}

.size-card.selected .size-card-cta::before {
  content: 'Selected';
}

.size-card.selected .size-card-cta i {
  display: none;
}

.size-card.selected .size-card-cta::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.5rem;
}

/* ========================================================
   SELECTED SUMMARY (Step 2) - Compact horizontal bar
   ======================================================== */
.selected-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, rgba(184, 154, 87, 0.12), rgba(184, 154, 87, 0.04));
  border: 1px solid rgba(184, 154, 87, 0.25);
  border-radius: var(--radius-pill);
  padding: var(--space-3) 1rem 0.6rem 0.6rem;
  margin-bottom: 1.5rem;
}

.summary-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.summary-text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.summary-size {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-size .size-value {
  color: var(--gold-600);
}

.summary-price-tag {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--text-on-gold);
  font-weight: 800;
  font-size: 0.9rem;
  padding: var(--space-2) 0.85rem;
  border-radius: var(--radius-xl);
}
/* ========================================================
   MAIN BUILDER - Single Card Container
   ======================================================== */
.builder-main {
  background: linear-gradient(165deg, rgba(28, 32, 40, 0.98) 0%, rgba(18, 22, 28, 0.99) 100%);
  border: 1px solid rgba(60, 68, 80, 0.5);
  border-radius: var(--radius-lg);
  overflow: visible; /* Changed from hidden to allow sticky stats bar */
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  margin: var(--space-4) auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
}

/* ========================================================
