/* Send It Athletics — global components (tokens in tokens.css) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: var(--color-bg-tertiary) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-bg-tertiary);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-border-primary);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.logo-link:hover {
  color: var(--text);
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--red);
  background: rgba(227, 30, 36, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-body-lg-size);
  font-weight: var(--text-body-lg-strong-weight);
  line-height: var(--text-body-lg-line);
  letter-spacing: var(--text-body-lg-tracking);
  text-transform: none;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text);
}

.btn-primary:hover {
  color: var(--text);
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--yellow);
}

.btn-secondary:hover {
  color: var(--yellow);
  background: rgba(245, 166, 35, 0.1);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-logo-mark {
  width: 80px;
  height: 80px;
}

.hero-wordmark {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.season-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  color: var(--text);
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.7;
}

/* Section */
.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.0625rem;
}

/* Announcement cards */
.announcement-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.announcement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.announcement-card a {
  color: inherit;
  display: block;
}

.announcement-date {
  font-size: 0.875rem;
  color: var(--yellow);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.0125em;
}

.announcement-title {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.announcement-excerpt {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* League cards */
.leagues-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.leagues-season {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--gradient);
  border-radius: var(--radius-pill);
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.league-card__header {
  background: var(--text);
  color: var(--bg);
  padding: 0.875rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.league-card__body {
  flex: 1;
  padding: 1.5rem 1rem;
  text-align: center;
}

.league-card__location {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.league-card__time {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.league-card__day {
  margin: 0;
  color: var(--yellow);
  text-transform: uppercase;
}

.league-card__accent {
  height: 6px;
  background: var(--gradient);
}

.league-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transform: rotate(-12deg);
  text-shadow:
    2px 0 #00ffff,
    -2px 0 #ff00ff,
    0 0 20px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  text-transform: uppercase;
}

.league-card--full {
  opacity: 0.85;
}

.leagues-cta {
  text-align: center;
}

/* Blog / Post */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.post-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.post-list-item a {
  color: inherit;
}

.post-list-item a:hover {
  color: inherit;
}

.post-list-date {
  font-size: 0.875rem;
  color: var(--yellow);
  margin: 0 0 0.5rem;
}

.post-list-title {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.post-list-excerpt {
  color: var(--text-muted);
  margin: 0;
}

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-size: 0.875rem;
  color: var(--yellow);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.0125em;
}

.post-title {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0;
}

.post-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.post-body h2 {
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 640px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  font-weight: 500;
}

.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-title {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.page-description {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 300px;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav-list a {
    width: 100%;
    padding: 0.875rem 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-wordmark {
    max-width: 260px;
  }

  .announcement-card,
  .league-card__body,
  .contact-card,
  .post-list-item {
    padding: 1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}
