/* ===== index.html 專屬樣式 ===== */

/* Quick Navigation */
.quick-nav {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.quick-nav__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #333);
  margin-bottom: 0.75rem;
}
.quick-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-hover, #f5f5f5);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text, #333);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.quick-nav__link:hover {
  background: var(--accent, #1e88e5);
  color: #fff;
}
.quick-nav__link-icon {
  font-size: 1rem;
}

/* Team Links Grid */
.team-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}
.team-links-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text, #333);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-links-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.team-links-grid a img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* VS Links Grid */
.vs-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  padding: 1rem 0;
}
.vs-links-grid a {
  display: block;
  padding: 0.5rem 0.8rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text, #333);
  font-size: 0.85rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.vs-links-grid a:hover {
  background: var(--accent, #1e88e5);
  color: #fff;
}

/* League label row inside division table */
tr.league-label th {
  background: var(--bg-section, #f0f4f8);
  color: var(--text-muted, #666);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border, #e0e0e0);
}

/* Standings title badges */
.standings__title-badge--mlb {
  background: linear-gradient(135deg, #002B5C, #004687);
  color: #fff;
}
.standings__title-badge--cpbl {
  background: linear-gradient(135deg, #A50044, #004D98);
  color: #fff;
}

/* ===== Fix 1: Hero Section 居中修正 ===== */
.hero__inner {
  width: 100%;
  margin: 0 auto;
}

/* ===== Fix 2: CPBL 表格內球隊 Logo 尺寸修正 ===== */
.cpbl-team-cell a img {
  width: 24px !important;
  height: 24px !important;
  vertical-align: middle;
  object-fit: contain;
}

.cpbl-team-cell a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cpbl-sticky-wrap .cpbl-team-cell img {
  width: 24px !important;
  height: 24px !important;
  vertical-align: middle;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .team-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
  }
  .team-links-grid a img {
    width: 36px;
    height: 36px;
  }
  .vs-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.4rem;
  }
  .quick-nav__list {
    gap: 0.35rem;
  }
  .quick-nav__link {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
}
