/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
  background-color: #343a40;
}

:root {
  --page-bg: #dbe4ec;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --text-main: #13263a;
  --text-soft: #5d6d7d;
  --line: #d6e0e8;
  --line-strong: #b7c6d4;
  --brand: #0d5ea6;
  --brand-deep: #08345c;
  --brand-accent: #f2b441;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 60px rgba(11, 34, 57, 0.15);
  --shadow-md: 0 14px 34px rgba(11, 34, 57, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  padding-top: 54px;
  background:
    radial-gradient(circle at top left, rgba(242, 180, 65, 0.38), transparent 24%),
    radial-gradient(circle at top right, rgba(13, 94, 166, 0.22), transparent 28%),
    linear-gradient(180deg, #eef4f8 0%, #d9e4ec 100%);
  color: var(--text-main);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

.home-shell,
.teams-shell,
.leagues-shell,
.champs-shell,
.records-shell,
.mascots-shell {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(8, 52, 92, 0.96), rgba(13, 94, 166, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #fff;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(242, 180, 65, 0.14);
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
}

.content-panel {
  padding: 1.25rem;
}

.panel-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stats-card,
.quick-links,
.feature-card,
.story-card,
.announcement-card,
.support-card,
.search-card,
.team-card,
.legend-card,
.season-card,
.league-card,
.empty-state,
.summary-card,
.history-card,
.season-note,
.record-section,
.note-card,
.mascot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.stat-block {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fafc, #edf3f8);
  border: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
  flex: 0 0 auto;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-input:focus,
.team-select:focus,
.league-select:focus,
.jump-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 94, 166, 0.12);
}

@media (max-width: 767.98px) {
  .hero-panel,
  .content-panel,
  .stats-card,
  .quick-links,
  .feature-card,
  .story-card,
  .announcement-card,
  .support-card,
  .search-card,
  .team-card,
  .legend-card,
  .season-card,
  .league-card,
  .empty-state,
  .summary-card,
  .history-card,
  .season-note,
  .record-section,
  .note-card,
  .mascot-card {
    border-radius: 22px;
  }
}
