/* ── Header external action links (Watch / Buy Tickets) ──────── */
.header-action-links {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin: 0 auto;
}

.header-action-link {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.header-action-link:hover { background: rgba(255,255,255,0.12); }

.header-action-link--primary {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

@media (max-width: 640px) {
  .header-action-links { gap: var(--space-1); }
  .header-action-link { font-size: 0.68rem; padding: 4px 9px; }
}

/* ── Season filter tabs (teams view) ─────────────────────────── */
.season-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-border);
}

.season-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.season-btn:hover { color: var(--color-primary); }

.season-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--weight-bold);
}

/* ── Month-divider rows in schedule table ────────────────────── */
.month-divider td {
  background: var(--color-bg);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  cursor: default;
}

/* ── Get Directions button in table rows ──────────────── */
.dir-btn {
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  transition: opacity 0.15s;
  line-height: 1.4;
  white-space: nowrap;
  font-weight: 500;
}

.dir-btn:hover {
  opacity: 0.85;
}

/* ── "Upcoming" result badge (not in components.css) ────────── */
.result-badge--upcoming {
  background: var(--color-scheduled-bg);
  color: var(--color-scheduled);
}

/* ── Detail row extras ───────────────────────────────────────── */
.row-detail__address {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

.row-detail__notes {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
  font-style: italic;
}

/* ── Notify button (header) ──────────────────────────────────── */
.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.notify-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}

/* ── Notify modal ─────────────────────────────────────────────── */
.notify-modal {
  max-width: 480px;
}

.notify-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.notify-field {
  margin-bottom: var(--space-4);
}

.notify-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.notify-input {
  width: 100%;
  padding: 9px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-bg);
  transition: border-color 0.12s;
}

.notify-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.notify-sports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-5);
}

.notify-sport-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
}

.notify-sport-check input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.notify-status {
  min-height: 20px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.notify-status--ok    { color: #276749; font-weight: var(--weight-medium); }
.notify-status--error { color: #c53030; }

.notify-actions {
  display: flex;
  gap: var(--space-3);
}

.notify-submit-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  cursor: pointer;
  transition: background 0.15s;
}

.notify-submit-btn:hover:not(:disabled) { background: var(--color-primary-dark); }
.notify-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Today's Games card (teams view) ────────────────────────── */
.today-games-card {
  background: var(--color-scheduled-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
}

.today-games-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.today-games-card__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.today-games-card__view-link {
  font-size: var(--text-xs);
  color: var(--color-primary-light);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.today-games-card__view-link:hover { text-decoration: underline; }

.today-games-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.today-game-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.today-game-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.today-game-item__time { color: var(--color-text-secondary); }

/* ── Schedule page actions (ICS + Refresh) ───────────────────── */
.schedule-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-wrap: wrap;
}

.ics-btn {
  background: none;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.ics-btn:hover { background: var(--color-scheduled-bg); }

.refresh-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.refresh-btn:hover { background: var(--color-bg); }

.last-updated {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── Notify sports fieldset reset (A3) ───────────────────────── */
.notify-sports-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* ── Hamburger button (mobile only) ─────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-btn__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

@media (max-width: 640px) {
  .hamburger-btn { display: flex; }
}

/* ── Mobile dropdown menu ────────────────────────────────────── */
.header-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.header-mobile-menu--open {
  display: flex;
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-5);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
  box-sizing: border-box;
}

.mobile-menu-item:last-child { border-bottom: none; }

.mobile-menu-item:hover,
.mobile-menu-item:active { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .season-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .dir-btn {
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .notify-sports-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding: var(--space-3) 0 0;
  text-align: center;
  background: transparent;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  background: var(--color-primary);
  color: #fff;
  outline: none;
}

.footer-social-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #888;
  margin: 0;
  line-height: 1;
}
