/* public.css - front facing theme for Strike3Sports */

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0C2340; /* Red Sox navy */
  color: #0f172a;
}

/* Layout container */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: rgba(12, 35, 64, 0.97); /* navy */
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.brand-name {
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links a {
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
  margin-left: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  color: #f97316;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #BD3039 0, #0C2340 55%, #0A472A 100%);
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bbf7d0;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.hero-title span {
  color: #bbf7d0;
}

.hero-text {
  font-size: 14px;
  color: #e5e7eb;
  margin-top: 8px;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.35);
}

.hero-cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #0A472A; /* Fenway green */
  color: #ecfdf5;
  border-color: #22c55e;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.8);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.4);
}

/* Hero image panel */
.hero-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top, rgba(241, 245, 249, 0.12), rgba(15, 23, 42, 0.95));
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* Content section */
.main-content {
  flex: 1;
  background: #f1f5f9;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.section-subtitle {
  font-size: 12px;
  color: #6b7280;
}

/* Tournament cards */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.t-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.t-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.t-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.t-chip {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.t-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

.t-meta span {
  margin-right: 8px;
}

.t-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.t-actions a {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.t-actions a:nth-child(1) {
  background: #0A472A;
  color: #ecfdf5;
}

.t-actions a:nth-child(2) {
  background: #f3f4f6;
  color: #111827;
}

/* Label for “spots left” etc */
.t-pill {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
}

/* Footer */
.site-footer {
  background: #0C2340;
  color: #94a3b8;
  padding: 14px 16px;
  font-size: 11px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cbd5f5;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-wrap img {
    height: 190px;
  }

  .nav-links {
    display: none;
  }
}
