/* ============================================
   Survivor Games — survivor-games.css
   Dedicated program sub-page styling.
   Reuses shared tokens + page-hero from components.css.
   ============================================ */

/* ---------- Hero tag pills (on dark hero) ---------- */
.sg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.sg-hero-tags .sg-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Generic section frame ---------- */
.sg-section {
  padding: 70px 40px;
}

.sg-section.alt {
  background: var(--off-white);
}

.sg-container {
  max-width: 1080px;
  margin: 0 auto;
}

.sg-section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.sg-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--dark-blue);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sg-section-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.sg-section-lead:last-child {
  margin-bottom: 0;
}

/* ---------- About / intro prose ---------- */
.sg-about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.sg-about p:last-child {
  margin-bottom: 0;
}

/* ---------- Highlights grid ---------- */
.sg-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sg-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.sg-highlight .sg-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent-green);
}

/* ---------- Game-type cards (Points / Protection) ---------- */
.sg-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sg-game-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sg-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sg-game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.sg-game-card.points::before {
  background: linear-gradient(90deg, #2a3f6b, #4a6bb0);
}

.sg-game-card.protection::before {
  background: linear-gradient(90deg, var(--accent-green-dark), var(--accent-green));
}

.sg-game-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.sg-game-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 6px;
}

.sg-game-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.sg-game-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-game-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.sg-game-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}

.sg-game-card.points ul li::before {
  background: var(--medium-blue);
}

/* ---------- Weekly cycle flow ---------- */
.sg-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.sg-flow-step {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark-blue);
  box-shadow: var(--shadow-sm);
}

.sg-flow-arrow {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Season progression timeline ---------- */
.sg-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.sg-timeline-item {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.sg-timeline-item .sg-week {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.sg-timeline-item p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.sg-note {
  text-align: center;
  font-style: italic;
  color: var(--gray-700);
  margin-top: 28px;
  font-size: 1rem;
}

/* ---------- Challenge type cards (4) ---------- */
.sg-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.sg-challenge-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sg-challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sg-challenge-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(40, 167, 69, 0.1);
  color: var(--accent-green-dark);
  margin-bottom: 16px;
}

.sg-challenge-icon svg {
  width: 26px;
  height: 26px;
}

.sg-challenge-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.sg-challenge-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---------- Quick facts (who / team / duration / prize) ---------- */
.sg-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sg-fact {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  box-shadow: var(--shadow-sm);
}

.sg-fact .sg-fact-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent-green);
  line-height: 1.1;
  margin-bottom: 6px;
}

.sg-fact .sg-fact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ---------- Previous seasons strip ---------- */
.sg-seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sg-season-stat {
  text-align: center;
}

.sg-season-stat .sg-season-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.sg-season-stat .sg-season-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.sg-section.dark {
  background: var(--gradient-dark-brand);
  color: var(--white);
}

.sg-section.dark .sg-section-title {
  color: var(--white);
}

.sg-section.dark .sg-section-eyebrow {
  color: #6ee08a;
}

/* ---------- FAQ accordion (native details) ---------- */
.sg-faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-faq details {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sg-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sg-faq summary::-webkit-details-marker {
  display: none;
}

.sg-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-green);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.sg-faq details[open] summary::after {
  transform: rotate(45deg);
}

.sg-faq details p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--gray-700);
}

/* ---------- CTA band ---------- */
.sg-cta {
  text-align: center;
  padding: 80px 40px;
  background: var(--gradient-dark-brand);
  color: var(--white);
}

.sg-cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.sg-cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.sg-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.sg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.sg-btn-primary {
  background: var(--accent-green);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

.sg-btn-primary:hover {
  background: var(--accent-green-dark);
  transform: translateY(-2px);
}

.sg-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.sg-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- Back link ---------- */
.sg-back {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 40px 0;
}

.sg-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition);
}

.sg-back a:hover {
  color: var(--accent-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sg-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .sg-timeline {
    grid-template-columns: 1fr;
  }

  .sg-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .sg-seasons {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .sg-section {
    padding: 50px 20px;
  }

  .sg-game-grid,
  .sg-challenge-grid,
  .sg-highlights {
    grid-template-columns: 1fr;
  }

  .sg-back {
    padding: 22px 20px 0;
  }

  .sg-cta {
    padding: 60px 20px;
  }

  .sg-btn {
    width: 100%;
    justify-content: center;
  }
}
