/* ============================================
   TROPHY ROOM PAGE CSS
   ============================================
   Extracted from base.css PR 8/8 (2026-05-15).
   Trophy Room page + sidebar/main layout. Consumed by TrophyRoom.js. */

/* ============================================
   TROPHY ROOM PAGE STYLES
   ============================================ */

.trophy-room-page {
  min-height: 100vh;
  background: var(--bg-page);
}

.trophy-room-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-md);
}

.trophy-room-header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trophy-room-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-accent-aqua-light);
  margin-top: var(--space-xs);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-left: 40px;
}

@media (min-width: 1024px) {
  .trophy-room-subtitle {
    margin-left: 0;
  }
}

.trophy-room-back-btn {
  margin-left: auto;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  background: var(--scrim-white-medium);
  border: var(--border-width-default) solid var(--scrim-white-bold);
  border-radius: var(--border-radius-default);
  color: var(--text-inverse);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.trophy-room-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.trophy-room-content {
  padding: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

/* Empty state */
.trophy-room-empty {
  text-align: center;
  padding: var(--space-xl);
}

.trophy-room-empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.trophy-room-empty-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  margin: 0 0 var(--space-sm);
}

.trophy-room-empty-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
}

/* Champions list */
.trophy-room-champions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Champion card */
.trophy-room-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: var(--border-width-medium) solid var(--border-default);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-default);
}

.trophy-room-card.latest {
  border-color: var(--color-action-primary);
  box-shadow: var(--shadow-lg);
}

.trophy-room-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-structure-medium) 0%, var(--color-structure-deep) 100%);
}

.trophy-room-card.latest .trophy-room-card-header {
  background: linear-gradient(135deg, var(--color-action-primary) 0%, var(--color-structure-deep) 100%);
}

.trophy-room-card-trophy {
  font-size: 48px;
}

.trophy-room-card-season {
  display: flex;
  flex-direction: column;
}

.trophy-room-season-label {
  font-size: var(--font-size-xs);
  color: var(--text-inverse);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.trophy-room-season-year {
  font-size: var(--font-size-xl);
  color: var(--text-inverse);
  line-height: 1;
}

.trophy-room-card-body {
  padding: var(--space-lg);
}

.trophy-room-champion-name {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  text-align: center;
}

.trophy-room-score {
  background: var(--color-structure-bg);
  border-radius: var(--border-radius-default);
  padding: var(--space-md);
  text-align: center;
  margin-bottom: var(--space-md);
}

.trophy-room-score-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  display: block;
  margin-bottom: var(--space-xs);
}

.trophy-room-score-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.trophy-room-score-winner {
  color: var(--color-success);
}

.trophy-room-score-separator {
  color: var(--text-secondary);
}

.trophy-room-score-loser {
  color: var(--text-secondary);
}

.trophy-room-runner-up {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.trophy-room-runner-up-label {
  color: var(--text-secondary);
}

.trophy-room-runner-up-name {
  font-weight: var(--font-weight-semibold);
}

.trophy-room-current-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--color-action-primary);
  color: var(--text-inverse);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-default);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

/* Loading and error states */
.trophy-room-loading,
.trophy-room-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--space-xl);
  text-align: center;
  color: var(--text-secondary);
}

/* ============================================
   TROPHY ROOM LAYOUT - Sidebar + Main
   ============================================ */

.trophy-room-layout {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--space-md);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .trophy-room-layout {
    flex-direction: row;
    padding: var(--space-lg);
  }
}

/* History sidebar */
.trophy-room-sidebar {
  flex: 0 0 auto;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: var(--border-width-default) solid var(--border-default);
  overflow: hidden;
}

@media (min-width: 768px) {
  .trophy-room-sidebar {
    width: 280px;
    max-height: calc(100vh - 200px);
    position: sticky;
    top: 140px;
    overflow-y: auto;
  }
}

.trophy-room-sidebar-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-structure-medium);
  border-bottom: var(--border-width-default) solid var(--border-default);
}

.trophy-room-sidebar-title {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-weight: var(--font-weight-bold);
}

.trophy-room-history-list {
  display: flex;
  flex-direction: column;
}

/* History item */
.trophy-room-history-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-width-default) solid var(--scrim-white-medium);
  transition: background 0.15s ease;
}

.trophy-room-history-item:last-child {
  border-bottom: none;
}

.trophy-room-history-item:hover {
  background: var(--color-structure-bg);
}

.trophy-room-history-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 48px;
}

.trophy-room-history-trophy {
  font-size: 24px;
}

.trophy-room-history-season {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  font-family: var(--font-display);
}

.trophy-room-history-right {
  flex: 1;
  min-width: 0;
}

.trophy-room-history-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
}

.trophy-room-history-score {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.trophy-room-history-runner-up {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main area */
.trophy-room-main {
  flex: 1;
  min-width: 0;
}

/* Current champion - prominent display */
.trophy-room-current {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: var(--border-width-medium) solid var(--color-action-primary);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(var(--color-action-primary-rgb), 0.15);
  overflow: hidden;
  text-align: center;
  padding: var(--space-xl);
  position: relative;
}

.trophy-room-current-trophy {
  font-size: 80px;
  margin-bottom: var(--space-md);
  animation: trophy-glow 2s ease-in-out infinite alternate;
}

@keyframes trophy-glow {
  from {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  }
}

.trophy-room-current-season {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.trophy-room-current-season-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.trophy-room-current-season-year {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  line-height: 1;
}

.trophy-room-current-name {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

@media (min-width: 768px) {
  .trophy-room-current-name {
    font-size: var(--font-size-3xl);
  }
}

.trophy-room-current-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-action-primary), var(--color-accent-gold));
  color: var(--text-inverse);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-lg);
}

.trophy-room-current-score {
  background: var(--color-structure-bg);
  border-radius: var(--border-radius-default);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.trophy-room-current-score-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-sm);
}

.trophy-room-current-score-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
}

.trophy-room-current-score-winner {
  color: var(--color-success);
}

.trophy-room-current-score-separator {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

.trophy-room-current-score-loser {
  color: var(--text-secondary);
}

.trophy-room-current-runner-up {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.trophy-room-current-runner-up-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.trophy-room-current-runner-up-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}
