/* ============================================
   TopDeck Championship Series page
   ============================================

   Builds on enhancements.css (tokens) + subscribe-page.css (marketing
   components). Same "refined utility" language, on the house blue accent.
   Tier identity lives in medallion glows and tinted type — never in
   accent bars.

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

:root {
  --tdcs-cell: #11161d; /* opaque option/ladder cell over surface-1 */
  --tdcs-hairline: rgba(255, 255, 255, 0.07);
}

/* Tier ink + glow, echoed from the medallion art */
.tdcs-t-bronze { --tier-ink: #cf8a52; --tier-glow: rgba(207, 138, 82, 0.30); }
.tdcs-t-silver { --tier-ink: #aab4bf; --tier-glow: rgba(170, 180, 191, 0.28); }
.tdcs-t-gold { --tier-ink: #e8b64a; --tier-glow: rgba(232, 182, 74, 0.32); }
.tdcs-t-platinum { --tier-ink: #4fb3e6; --tier-glow: rgba(79, 179, 230, 0.30); }
.tdcs-t-diamond { --tier-ink: #7ba2e8; --tier-glow: rgba(123, 162, 232, 0.30); }

/* ============================================
   Hero — left copy, medallion climb on the right
   ============================================ */
.tdcs-hero .td-hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
}

.tdcs-hero .td-hero-subtitle {
  max-width: 560px;
}

/* "2027" rides the title line, not its own block */
.tdcs-hero .td-hero-accent {
  display: inline;
}

/* The series lockup. The source art carries last season's year under the
   divider; the clip trims that band so the headline owns the year. */
.tdcs-hero-logo {
  display: flex;
  justify-content: center;
}

.tdcs-hero-logo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  clip-path: inset(0 0 8% 0);
  margin-bottom: -6%;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 44px rgba(108, 166, 234, 0.22));
}

/* One orchestrated entrance, then the page holds still */
@keyframes tdcsRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.tdcs-hero .td-trust-badges,
.tdcs-hero .td-hero-title,
.tdcs-hero .td-hero-subtitle,
.tdcs-hero .td-hero-cta,
.tdcs-hero-logo img {
  animation: tdcsRise 0.55s var(--td-ease-out) both;
}

.tdcs-hero .td-hero-title { animation-delay: 60ms; }
.tdcs-hero .td-hero-subtitle { animation-delay: 130ms; }
.tdcs-hero .td-hero-cta { animation-delay: 200ms; }
.tdcs-hero-logo img { animation-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .tdcs-hero .td-trust-badges,
  .tdcs-hero .td-hero-title,
  .tdcs-hero .td-hero-subtitle,
  .tdcs-hero .td-hero-cta,
  .tdcs-hero-logo img {
    animation: none;
  }
}

/* ============================================
   Section rhythm
   ============================================ */
.tdcs-section { padding: 5.5rem 0; background: var(--td-surface-1); }
.tdcs-section-alt { background: rgba(0, 0, 0, 0.25); }

/* ============================================
   Season timeline — a rail, not a card grid
   ============================================ */
.tdcs-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.tdcs-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(108, 166, 234, 0.4) 12%,
    rgba(108, 166, 234, 0.4) 88%,
    transparent);
}

.tdcs-node {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--td-surface-1);
  border: 2px solid var(--td-accent);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 12px rgba(108, 166, 234, 0.35);
}

.tdcs-milestone-date {
  font-family: var(--td-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-text-muted);
  margin-bottom: 0.4rem;
}

.tdcs-milestone-name {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.tdcs-milestone-note {
  color: var(--td-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  max-width: 220px;
}

.tdcs-tba {
  display: inline-block;
  font-family: var(--td-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--td-surface-1);
  background: var(--td-accent);
  border-radius: 100px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: 0.12em;
}

@media (max-width: 767px) {
  .tdcs-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 6px;
  }

  .tdcs-timeline::before {
    top: 8px;
    bottom: 8px;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg,
      transparent,
      rgba(108, 166, 234, 0.4) 8%,
      rgba(108, 166, 234, 0.4) 92%,
      transparent);
  }

  .tdcs-milestone {
    position: relative;
    padding-left: 2rem;
  }

  .tdcs-node {
    position: absolute;
    left: -6px;
    top: 3px;
    margin-bottom: 0;
  }
}

/* ============================================
   Event tier ladder — one card, five columns
   ============================================ */
.tdcs-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--tdcs-hairline);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.tdcs-ladder-cell {
  background: var(--tdcs-cell);
  padding: 2.25rem 1.25rem 2rem;
  text-align: center;
  transition: background-color var(--td-duration-base) var(--td-ease-out);
}

.tdcs-ladder-cell:hover {
  background: #141a23;
}

.tdcs-ladder-cell img {
  width: 76px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px var(--tier-glow));
  transition: transform var(--td-duration-base) var(--td-ease-spring);
}

.tdcs-ladder-cell:hover img {
  transform: scale(1.07) translateY(-2px);
}

.tdcs-ladder-cell h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tdcs-ladder-count {
  font-family: var(--td-font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tier-ink);
  margin-bottom: 0.15rem;
}

.tdcs-ladder-count small {
  display: block;
  font-family: var(--td-font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-text-muted);
  margin-top: 0.1rem;
}

.tdcs-ladder-cell p {
  color: var(--td-text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

@media (max-width: 991px) {
  .tdcs-ladder {
    grid-template-columns: 1fr;
  }

  .tdcs-ladder-cell {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 1.25rem;
    align-items: center;
    text-align: left;
    padding: 1.25rem 1.5rem;
  }

  .tdcs-ladder-cell img {
    width: 64px;
    margin-bottom: 0;
    grid-row: span 3;
  }

  .tdcs-ladder-cell h3 { margin-bottom: 0.1rem; }
  .tdcs-ladder-count { font-size: 1.1rem; }
  .tdcs-ladder-count small { display: inline; margin-left: 0.35rem; }
  .tdcs-ladder-cell p { margin-top: 0.35rem; }
}

/* ============================================
   Points — data table as the centerpiece
   ============================================ */
.tdcs-points-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.tdcs-points-table {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
  color: var(--td-text-primary);
}

.tdcs-points-table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.1rem 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tier-ink, var(--td-text-muted));
}

.tdcs-points-table th img {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto 0.45rem;
  filter: drop-shadow(0 0 14px var(--tier-glow, transparent));
}

.tdcs-points-table th .tdcs-best {
  display: block;
  font-family: var(--td-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--td-text-muted);
  margin-top: 0.3rem;
}

.tdcs-points-table td {
  font-family: var(--td-font-mono);
  font-feature-settings: 'tnum' on;
  font-size: 0.95rem;
  padding: 0.85rem 0.75rem;
  transition: background-color var(--td-duration-fast);
}

.tdcs-points-table tbody tr:not(:first-child) td {
  box-shadow: inset 0 1px 0 var(--tdcs-hairline);
}

.tdcs-points-table tbody tr:hover td {
  background: rgba(108, 166, 234, 0.05);
}

.tdcs-points-table td:first-child {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-text-secondary);
}

.tdcs-points-table .tdcs-nil {
  color: rgba(255, 255, 255, 0.18);
}

.tdcs-points-foot {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 var(--tdcs-hairline);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--td-text-secondary);
  text-align: center;
}

/* ============================================
   Championship events — featured, house accent
   ============================================ */
.tdcs-event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .tdcs-event-grid { grid-template-columns: 1fr; }
}

.tdcs-event-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(108, 166, 234, 0.10) 0%, rgba(108, 166, 234, 0.015) 55%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 166, 234, 0.18);
  border-radius: 16px;
  padding: 2rem;
  transition:
    border-color var(--td-duration-base) var(--td-ease-out),
    box-shadow var(--td-duration-base) var(--td-ease-out);
}

.tdcs-event-card:hover {
  border-color: rgba(108, 166, 234, 0.35);
  box-shadow: 0 8px 32px rgba(108, 166, 234, 0.10);
}

.tdcs-event-eyebrow {
  font-family: var(--td-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-accent);
  margin-bottom: 0.6rem;
}

.tdcs-event-card h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.tdcs-event-card p {
  color: var(--td-text-secondary);
  margin-bottom: 0;
}

.tdcs-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(108, 166, 234, 0.18);
}

.tdcs-event-meta span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.tdcs-event-meta i {
  color: var(--td-accent);
  margin-right: 0.4rem;
}

/* ============================================
   Partner packages — one card, three options
   ============================================ */
.tdcs-partner-card {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.tdcs-partner-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tdcs-hairline);
}

@media (max-width: 991px) {
  .tdcs-partner-inner { grid-template-columns: 1fr; }
}

.tdcs-partner-option {
  background: var(--tdcs-cell);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tdcs-partner-option.tdcs-t-gold {
  background:
    linear-gradient(160deg, rgba(108, 166, 234, 0.09) 0%, rgba(108, 166, 234, 0.02) 60%),
    var(--tdcs-cell);
}

.tdcs-partner-label {
  font-family: var(--td-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tier-ink);
  margin-bottom: 1.1rem;
}

.tdcs-partner-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}

.tdcs-currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.tdcs-partner-price {
  font-family: var(--td-font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.tdcs-partner-features {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  text-align: left;
  flex-grow: 1;
}

.tdcs-partner-features li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.32rem 0;
}

.tdcs-partner-features i {
  color: #22c55e;
  font-size: 0.72rem;
}

.tdcs-partner-features i.fa-circle-info {
  color: var(--td-text-muted);
}

.tdcs-partner-note {
  color: var(--td-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0.9rem 0 0;
}

.tdcs-partner-note a { color: var(--td-accent); }

/* Gold eligibility result — a full-width band under the three options, so a
   failed check never stretches one option out of line with its neighbors */
.tdcs-gold-checks {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 var(--tdcs-hairline);
  padding: 1.4rem 2rem 1.6rem;
  text-align: center;
}

.tdcs-gold-checks p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.tdcs-gold-checks ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  padding: 0;
  margin: 0 0 1.1rem;
}

.tdcs-gold-checks li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.tdcs-gold-checks li .fa-check { color: #22c55e; font-size: 0.72rem; }
.tdcs-gold-checks li .fa-xmark { color: #e35d6a; font-size: 0.72rem; }

/* ============================================
   Single event pricing — a rate card
   ============================================ */
.tdcs-single-strip {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--tdcs-hairline);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.tdcs-single-item {
  background: var(--tdcs-cell);
  padding: 1.15rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tdcs-single-item h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.tdcs-single-item p {
  font-family: var(--td-font-mono);
  color: var(--td-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.tdcs-single-price {
  font-family: var(--td-font-mono);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  font-feature-settings: 'tnum' on;
}
