/* Showdown Styles - Mobile Safari Fix v3.1 - Cache Cleared 2026-01-19 */
:root {
  --blue: #123c66;
  --orange: #ef7d1a;
  --ink: #0c1016;
  --bg: #ffffff;
  --white: #fff;
  --header-h: 72px;
}

body {
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--ink);
  /* padding-top removed - handled by navbar.css */
}

/* Utilities */
.center { text-align: center }
.muted { color: #64748b }
.tiny { font-size: .95rem }
.container { width: min(1200px, 92vw); margin-inline: auto; padding: 0 16px }

/* Hero - Matches events.css structure */
.hero {
  position:relative;
  min-height:calc(60vh - 0px);
  display:grid; 
  place-items:center;
  background:
    radial-gradient(1200px 600px at -10% 10%, rgba(239,125,26,.12), transparent 60%),
    radial-gradient(1000px 520px at 110% -10%, rgba(18,60,102,.12), transparent 55%),
    #fff;
  overflow:hidden;
}
.hero-wrap {
  position:relative;
  width:min(1200px,92vw);
  padding:46px 16px;
  text-align:center;
  z-index:1;
}
.eyebrow {
  color:var(--orange);
  font-weight:700;
  text-transform:uppercase;
  font-size:0.9rem;
  margin-bottom:12px;
}
.title {
  font-size:clamp(2.5rem, 5vw, 4rem);
  font-weight:800;
  color:var(--ink);
  margin-bottom:16px;
}
.title span { 
  color:var(--blue); 
}
.subhead {
  color:#475569;
  font-size:1.1rem;
  max-width:65ch;
  margin:0 auto 24px;
}

/* What is Showdown Section */
.what-is-showdown {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(18, 60, 102, 0.04), rgba(239, 125, 26, 0.04));
  border: 1px solid rgba(18, 60, 102, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.what-is-title {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.what-is-description {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 75ch;
  margin: 0 auto;
}

/* Crewneck Banner Incentive */
.crewneck-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--orange), #f59e42);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(239, 125, 26, 0.25);
  display: flex;
  align-items: center;
  gap: 20px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(239, 125, 26, 0.25);
  }
  50% {
    box-shadow: 0 8px 28px rgba(239, 125, 26, 0.4);
  }
}

.crewneck-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.crewneck-content {
  color: white;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
}

.crewneck-content strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.crewneck-content .highlight {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.hero-actions {
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:16px;
}

html {
  scroll-behavior: smooth;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #123c66 0%, #ef7d1a 100%) !important;
  color: white !important;
  border: 2px solid white !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f2a4a 0%, #d66a0a 100%) !important;
  border-color: white !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: linear-gradient(135deg, #123c66 0%, #ef7d1a 100%) !important;
  color: white !important;
  border: 2px solid white !important;
}

.btn-ghost:hover {
  background: linear-gradient(135deg, #0f2a4a 0%, #d66a0a 100%) !important;
  color: white !important;
  border-color: white !important;
  transform: translateY(-2px);
}

/* Sections */
.section { 
  padding:32px 0;
}
.section.alt { 
  background:#f8fafc;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 16px;
  line-height: 1.2;
}

/* Card Styles */
.card {
  background: white;
  border: 1px solid rgba(12, 16, 22, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.detail-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue), #1e4a72);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Showdown Interest Form Styles */
.showdown-interest-form.hidden {
  display: none;
}

.showdown-interest-form {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.showdown-interest-form iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  display: block !important;
  transform: scale(1) !important;
  transform-origin: 0 0 !important;
}

.showdown-interest-btn {
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.showdown-interest-btn:hover {
  transform: translateY(-2px);
}

/* Important deadlines timeline */
.deadlines-section {
  max-width: 900px;
  margin: 60px auto 0;
}

.deadlines-title {
  text-align: center;
  color: var(--blue);
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.deadlines-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: block;
}

.timeline-dot {
  display: none;
}

.timeline-content {
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 18px 20px;
}

.timeline-label {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}

.timeline-date {
  color: #334155;
}

/* Step cards responsive */
.step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Tryout Schedules */
.tryout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.schedule-card {
  padding: 0;
  overflow: hidden;
}

.schedule-title {
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--blue), #1f4e7f);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.schedule-table thead th {
  background: #f59e42;
  color: #fff7ed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 14px 12px;
  border-bottom: 2px solid rgba(18, 60, 102, 0.12);
}

.schedule-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(18, 60, 102, 0.12);
  color: #334155;
  font-weight: 600;
}

.schedule-table tbody tr:nth-child(even) td {
  background: rgba(239, 125, 26, 0.06);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-note {
  margin: 18px auto 0;
  text-align: center;
  color: var(--orange);
  font-weight: 700;
}

/* Mobile hero adjustments */
@media (max-width:640px) {
  .title { 
    font-size:2rem; 
  }
  .subhead { 
    font-size:1rem; 
  }
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .what-is-showdown {
    padding: 24px 20px;
  }
  
  .what-is-title {
    font-size: 1.4rem;
  }
  
  .what-is-description {
    font-size: 1rem;
  }
  
  .crewneck-banner {
    flex-direction: column;
    padding: 20px 18px;
    text-align: center;
  }
  
  .crewneck-content {
    font-size: 1rem;
  }
  
  .showdown-interest-form {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    padding: 16px;
    display: block !important;
  }
  
  .showdown-interest-form.hidden {
    display: none !important;
  }
  
  .showdown-interest-form iframe {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 1200px !important;
    margin-left: -16px;
    margin-right: -16px;
  }
  
  .step-card {
    padding: 24px 20px;
  }
  
  .steps-container {
    padding: 0 8px;
  }
  
  .deadlines-timeline {
    gap: 14px;
  }

  .timeline-content {
    padding: 16px;
  }
  
  .coordinators-grid {
    grid-template-columns: 1fr !important;
  }

  .schedule-table {
    min-width: 460px;
  }
  
  .schedule-title {
    font-size: 1.1rem;
    padding: 18px 16px;
  }
}
