/* TAGUP ORGS — Static Template Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Fallback if markup ever omits .org-site-root tokens (invalid calc() would drop all padding) */
:root {
  --org-site-header-h: 4rem;
}

/* ── Design Tokens ── */
.org-site-root {
  --brand-primary-h: 24;
  --brand-primary-s: 95%;
  --brand-primary-l: 53%;
  --brand-primary: var(--brand-primary-h) var(--brand-primary-s) var(--brand-primary-l);
  --brand-primary-light: 24 95% 60%;
  --brand-primary-dark: 24 95% 45%;

  --background: 0 0% 4%;
  --foreground: 0 0% 98%;
  --card: 0 0% 8%;
  --card-foreground: 0 0% 98%;
  --card-hover: 0 0% 12%;
  --muted: 0 0% 14%;
  --muted-foreground: 0 0% 60%;
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 98%;
  --border: 0 0% 18%;
  --border-strong: 0 0% 25%;
  --input: 0 0% 12%;
  --primary: var(--brand-primary);
  --primary-foreground: 0 0% 98%;
  --destructive: 0 84% 60%;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --org-site-header-h: 4rem;

  --shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / 0.4);
  --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.5), 0 2px 4px -2px hsl(0 0% 0% / 0.4);
  --shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.5), 0 4px 6px -4px hsl(0 0% 0% / 0.4);

  font-family: 'Inter', system-ui, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}

/* Full-site ambient gradient (matches Lovable shell: fixed band under header + main) */
.org-site-ambient {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 37.5rem;
  max-height: 70vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.org-site-ambient__primary {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--primary) / 0.07) 0%,
    hsl(var(--primary) / 0.02) 42%,
    transparent 100%
  );
}
.org-site-ambient__highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12.5rem;
  background: linear-gradient(
    to bottom,
    hsl(0 0% 100% / 0.045) 0%,
    transparent 100%
  );
}
/* Keep stacking above ambient; do not set position here — would override sticky on .site-header */
.org-site-root > .site-header {
  z-index: 10;
}
.org-site-root > #main-content {
  position: relative;
  z-index: 1;
}
.org-site-root > .site-footer {
  position: relative;
  z-index: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utility Classes ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }

/* Text */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.whitespace-nowrap { white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

/* Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-white { color: #fff; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.bg-background { background: hsl(var(--background)); }
.bg-card { background: hsl(var(--card)); }
.bg-card\/50 { background: hsl(var(--card) / 0.5); }
.bg-primary { background: hsl(var(--primary)); }
.bg-primary\/10 { background: hsl(var(--primary) / 0.1); }
.bg-muted { background: hsl(var(--muted)); }
.bg-muted\/50 { background: hsl(var(--muted) / 0.5); }
.bg-secondary { background: hsl(var(--secondary)); }
/* Filter chips: match channel page style — bg-card with border instead of bg-secondary */
button.bg-secondary.rounded-full,
button.bg-secondary\/80 { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }

/* Borders */
.border { border: 1px solid hsl(var(--border)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-border\/30 { border-color: hsl(var(--border) / 0.3); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

/* Sizing */
.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.min-h-screen { min-height: 100vh; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }

/* Focus */
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

/* ── Component Styles ── */

/* Card */
.card-athletic {
  display: block;
  background: hsl(var(--card) / 0.5);
  border: 1px solid hsl(var(--border-strong) / 0.85);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.2s ease;
}
.card-athletic:hover {
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.12);
  transform: translateY(-2px);
}

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; border: none; transition: all 0.2s ease;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--secondary)); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* Section Header */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); }
.section-header p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }
.section-header .view-all { font-size: 0.875rem; font-weight: 500; color: hsl(var(--primary)); }
.section-header .view-all:hover { text-decoration: underline; }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
}
.badge-primary { background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.badge-live { background: hsl(0 84% 60% / 0.15); color: hsl(0 84% 60%); }

/* Header — sticky, transparent at top, solid black on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.35);
}
.site-header nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  height: var(--org-site-header-h, 4rem);
  padding: 0 1rem;
}
.site-header .nav-link {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  border-radius: 0.375rem; color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: hsl(var(--primary)); }
.logo-box {
  width: 2.5rem; height: 2.5rem; background: none;
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary-foreground)); font-weight: 700; font-size: 1.125rem;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  flex-wrap: wrap;
  min-width: 0;
}
.mobile-toggle { display: none; padding: 0.5rem; background: none; border: none; color: hsl(var(--foreground)); cursor: pointer; }
.mobile-menu { display: none; background: hsl(var(--background) / 0.98); border-top: 1px solid hsl(var(--border) / 0.5); padding: 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius-lg); color: hsl(var(--foreground) / 0.8);
}
.mobile-menu a:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* Footer */
.site-footer { background: hsl(var(--background)); border-top: 1px solid hsl(var(--border) / 0.3); }
.site-footer .footer-inner { padding: 3rem 0; }
.social-icon {
  width: 2.25rem; height: 2.25rem;
  background: hsl(var(--card) / 0.5); border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.social-icon:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.5); }

/* Home hero — header is in flow; normal vertical padding only */
[data-context="hero_section"] {
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(180deg, hsl(var(--brand-primary) / 0.1) 0%, transparent 55%);
}

/* 404 */
.page-404-body {
  padding: 4rem 1rem 4rem;
}

/* Hero */
.hero-wrap { position: relative; border-radius: 1rem; overflow: hidden; min-height: 480px; }
/* Subtle brand wash when no image yet; covered by photo when PHP injects hero_background */
.hero-bg { position: absolute; inset: 0; background: linear-gradient(155deg, hsl(var(--brand-primary) / 0.22) 0%, hsl(var(--muted) / 0.45) 55%, hsl(var(--background) / 0.6) 100%); }
/* Default overlay before PHP replaces with org-specific gradient (editor static preview) */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(var(--brand-primary) / 0.4), hsl(var(--brand-primary) / 0.15), hsl(0 0% 0% / 0.55)); }
.hero-content {
  position: relative; z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 480px;
  padding: 3rem 1.5rem; text-align: center;
}

/* Sub-page hero panel — pixel-match Indiana Magic Gold: max-w-6xl, centered */
.recruiters-hero-panel,
.about-hero-panel {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(
    155deg,
    hsl(var(--brand-primary) / 0.22) 0%,
    hsl(var(--muted) / 0.42) 52%,
    hsl(var(--background) / 0.62) 100%
  );
  border-color: hsl(var(--border-strong) / 0.75);
  box-shadow:
    inset 0 1px 0 0 hsl(0 0% 100% / 0.06),
    0 0 0 1px hsl(var(--primary) / 0.1);
}
/* Inner content padding — override Tailwind py-8/md:py-10 to match Indiana Magic Gold py-16/sm:py-20 */
.recruiters-hero-panel > .relative,
.about-hero-panel > .relative {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
@media (min-width: 640px) {
  .recruiters-hero-panel > .relative,
  .about-hero-panel > .relative {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* Inner page hero — inset card + brand band (nav is not fixed; no extra top offset) */
.page-hero,
.contact-page-hero {
  text-align: center;
  margin: 0 1rem 1.25rem;
  padding: 2.5rem 1.25rem 2rem;
  scroll-margin-top: var(--org-site-header-h, 4rem);
  background: linear-gradient(180deg, hsl(var(--brand-primary) / 0.18) 0%, hsl(var(--brand-primary) / 0.06) 50%, hsl(var(--background) / 0.35) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid hsl(var(--border-strong) / 0.75);
  box-shadow:
    inset 0 1px 0 0 hsl(0 0% 100% / 0.06),
    0 0 0 1px hsl(var(--primary) / 0.08);
}
.page-hero h1,
.contact-page-hero h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p,
.contact-page-hero p { color: hsl(var(--muted-foreground)); }

/* Contact page — two-column layout only (hero styles shared above) */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.contact-rows { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex-shrink: 0;
  background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}

/* Live indicator */
.live-dot { width: 8px; height: 8px; background: hsl(0 84% 60%); border-radius: 50%; animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 110;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: none; cursor: pointer; display: none;
  align-items: center; justify-content: center; font-size: 1.25rem;
}
.back-to-top.visible { display: flex; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid hsl(var(--border) / 0.3); }
.data-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); }

/* Form inputs */
.form-input {
  width: 100%; padding: 0.625rem 0.75rem; background: hsl(var(--input));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  color: hsl(var(--foreground)); font-size: 0.875rem;
}
.form-input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }

/* Tabs / filter chips */
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-chip {
  padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500;
  background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); border: none; cursor: pointer;
}
.filter-chip.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* Stat card */
.stat-card {
  background: hsl(var(--card) / 0.5); border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius-xl); padding: 1.25rem; text-align: center;
  transition: all 0.2s;
}
.stat-card:hover { border-color: hsl(var(--primary) / 0.5); }
