/* KMP Event Page Styles
 * Usage: <link rel="stylesheet" href="/css/kmp-event.css">
 * Requires: kmp-base.css loaded first
 */

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--fg);
}

.breadcrumb .sep {
  margin: 0 6px;
}

/* ========================================
   Game Header (title area)
   ======================================== */
.game-header {
  margin-bottom: 24px;
}

.game-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.game-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f3f3f3;
  color: var(--muted);
}

.game-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.game-date {
  font-size: 15px;
  color: var(--muted);
}

/* ========================================
   Game Stats (bordered stat boxes)
   ======================================== */
.game-stats {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0 28px;
}

.game-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.game-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ========================================
   Gallery Link (SmugMug album card)
   ======================================== */
.gallery-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: border-color 0.15s;
}

.gallery-link:hover {
  border-color: #999;
}

.gallery-link-text {
  font-size: 14px;
  font-weight: 500;
}

.gallery-link-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.gallery-link-arrow {
  font-size: 18px;
  color: #bbb;
}

/* ========================================
   Section Bar + Sort Toggle
   ======================================== */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0;
}

.sort-toggle {
  display: flex;
  gap: 0;
}

.sort-btn {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.sort-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.sort-btn:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.sort-btn.active {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

/* ========================================
   Player Grid + Cards
   ======================================== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.player-card {
  text-decoration: none;
  display: block;
}

.player-card:hover .player-photo {
  transform: scale(1.03);
}

.player-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  margin-bottom: 8px;
}

.player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.2s ease;
}

.player-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.player-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 640px) {
  .game-header h1 {
    font-size: 22px;
  }
  .game-stats {
    gap: 20px;
  }
  .game-stat-value {
    font-size: 18px;
  }
  .player-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  .player-name {
    font-size: 13px;
  }
}
