/* ─────────────────────────────────────────
   Competitive Pickleball @ UCR — Styles
   WebCraft Co.
───────────────────────────────────────── */

:root {
  --blue:      #1B4D8E;
  --blue-dark: #123667;
  --blue-light:#EBF1F9;
  --gold:      #F1BE48;
  --gold-dark: #D4A020;
  --gold-light:#FEF9E7;
  --slate:     #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate);
  background: #fff;
  margin: 0;
}

*:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
input, textarea, select { transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,77,142,0.15);
  outline: none;
}


/* ══════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.site-brand {
  position: relative;
  text-align: center;
  padding: 0.75rem 1.5rem 0.3rem;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-menu-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #475569;
  border-radius: 0.375rem;
}
.mobile-menu-btn:hover { background: #f1f5f9; }

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.35rem 1.5rem 0.85rem;
}

.site-nav-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.site-nav-links a:hover { color: var(--blue); }
.site-nav-links a.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}

.site-nav-links .join-btn {
  background: var(--blue);
  color: #fff !important;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-weight: 800;
  transition: background 0.15s;
  border-bottom: none !important;
}
.site-nav-links .join-btn:hover { background: var(--blue-dark); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.mobile-nav a.active { color: var(--blue); }
.mobile-nav .join-btn {
  background: var(--blue);
  color: #fff !important;
  padding: 0.65rem;
  border-radius: 9999px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}
@media (max-width: 767px) {
  .site-nav-links { display: none; }
}


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #2563a8 60%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(241,190,72,0.35);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.25); }

.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-blue:active { transform: scale(0.98); }


/* ══════════════════════════════════════════
   SECTION LABELS
══════════════════════════════════════════ */

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--slate);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 30px rgba(27,77,142,0.12); transform: translateY(-2px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-blue { background: var(--blue-light); color: var(--blue); }
.icon-gold { background: var(--gold-light); color: var(--gold-dark); }


/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */

.stats-bar {
  background: var(--blue);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   EVENT CARDS
══════════════════════════════════════════ */

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: 0 6px 24px rgba(27,77,142,0.1); }

.event-date-block {
  background: var(--blue);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 52px;
}
.event-date-block .month {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.event-date-block .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}
.tag-tournament { background: #FEF3C7; color: #92400E; }
.tag-practice   { background: var(--blue-light); color: var(--blue); }
.tag-social     { background: #F0FDF4; color: #166534; }


/* ══════════════════════════════════════════
   PRACTICE SCHEDULE TABLE
══════════════════════════════════════════ */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.schedule-table th {
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.schedule-table th:first-child { border-radius: 0.75rem 0 0 0; }
.schedule-table th:last-child  { border-radius: 0 0.75rem 0 0; }
.schedule-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: #f8fafc; }
.schedule-table tr:hover td { background: var(--blue-light); }


/* ══════════════════════════════════════════
   FORM
══════════════════════════════════════════ */

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.625rem;
  font-size: 0.925rem;
  color: var(--slate);
  font-family: inherit;
  background: #fff;
}
.form-input::placeholder { color: #94a3b8; }

textarea.form-input { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.875rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.form-submit:hover { background: var(--blue-dark); }
.form-submit:active { transform: scale(0.98); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */

.site-footer {
  background: #fff;
  color: #64748b;
  border-top: 1px solid var(--border);
}
.site-footer a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--blue); }
.footer-heading {
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */

.divider {
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 9999px;
  margin: 0.75rem auto 0;
}
.divider-left { margin: 0.75rem 0 0; }

@media print {
  header, footer, .form-submit { display: none; }
  body { font-size: 12pt; }
}
