/* ===== NYC 1 POINT SLAM TOURNAMENT INFO PAGE STYLES ===== */
/* Color scheme matches nyc-1-point-slam-xl-display.css for visual consistency */

:root {
  --primary-bg: #1a68ae;
  --primary-text: #ffcf25;
  --secondary-text: #e7f23c;
  --border-color: #0d3a7d;
  --page-bg: #ffcf25;
  --page-text: #1a68ae;
}

body {
  background-color: var(--page-bg);
  color: #fff;
}

/* Tournament Logo in Header */
#tournament-header-logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#tournament-header-logo {
  max-width: 80px;
  height: auto;
  cursor: pointer;
}

#tournament-section {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Tab Buttons */
#tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  width: 100%;
}

.tab-btn {
  flex: 1;
  padding: 8px 6px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid var(--primary-text);
  background: var(--primary-bg);
  color: #fff;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-btn.active {
  background: #2a7bc4;
  color: #fff;
}

.tab-btn:not(.active):hover {
  background: #2a7bc4;
}

/* Tab Content */
#tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Teams Tab */
#teams-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.teams-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  color: #1a68ae;
  margin-bottom: 12px;
  text-align: center;
}

.team-container {
  display: flex;
  flex-direction: column;
}

.team-button {
  padding: 12px 16px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-bg);
  color: #fff;
  border: 2px solid var(--primary-text);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.team-button-rank {
  flex-shrink: 0;
  width: 30px;
  text-align: center;
  margin-right: 12px;
  font-weight: bold;
}

.team-button-name {
  flex: 1;
  text-align: left;
}

.team-button-points {
  flex-shrink: 0;
  margin-left: 12px;
  font-weight: bold;
}

.team-button:hover,
.team-button.active {
  background: #2a7bc4;
  color: #fff;
}

@keyframes team-score-highlight {
  0% {
    background-color: #ffffff;
  }
  100% {
    background-color: var(--primary-bg);
  }
}

.team-button.score-highlight {
  animation: team-score-highlight 2s ease-out forwards;
}

.team-details {
  background: #fff;
  color: #1a68ae;
  padding: 20px;
  border-radius: 0;
  margin-top: 8px;
  margin-bottom: 12px;
  border: 2px solid var(--border-color);
}

.team-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.team-logo-container img {
  max-width: 100px;
  height: auto;
}

.team-players {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-card {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.player-card:last-child {
  border-bottom: none;
}

.player-headshot {
  width: 60px;
  height: 60px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-name {
  font-weight: bold;
  font-size: 0.9rem;
  color: #1a68ae;
}

/* Draw Tab */
#round-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.round-btn {
  padding: 8px 12px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: var(--primary-bg);
  color: #fff;
  border: 2px solid var(--primary-text);
  cursor: pointer;
  transition: all 0.15s;
}

.round-btn.active {
  background: #2a7bc4;
  color: #fff;
}

.round-btn:not(.active):hover {
  background: #2a7bc4;
}

#matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  background: #fff;
  color: #1a68ae;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 0;
}

.match-card.completed {
  background: #d2d1d1;
}

.match-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: bold;
}

.match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60px;
}

.match-player-side {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-team-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.match-team-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a68ae;
  font-weight: bold;
  margin-bottom: 4px;
  word-break: break-word;
}

.match-player-name {
  font-size: 0.85rem;
  color: #1a68ae;
  font-weight: bold;
  margin-bottom: 8px;
}

.match-player-headshot {
  width: 60px;
  height: 60px;
  border-radius: 0;
  object-fit: cover;
  border: 2px solid #0d3a7d;
}

.match-vs {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: bold;
  color: #1a68ae;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Leaderboard Tab */
#leaderboard-content {
  background: #fff;
  color: #1a68ae;
  padding: 20px;
  border-radius: 0;
  border: 2px solid var(--border-color);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
}

.leaderboard-table th {
  font-weight: bold;
  text-transform: uppercase;
  background: #f5f5f5;
  font-size: 0.75rem;
  color: #1a68ae;
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.team-rank {
  font-weight: bold;
  width: 30px;
  color: #666;
}

.team-name-cell {
  flex: 1;
  color: #1a68ae;
}

.team-points-cell {
  font-weight: bold;
  text-align: right;
  width: 60px;
  color: #1a68ae;
}

/* Loading/Empty States */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Tournament page specific header/footer styling */
#header-top {
  padding: 12px 0px;
}

/* Hamburger menu styling */
.menu {
  background-color: var(--primary-bg);
  border: 2px solid var(--border-color);
}

.menu-link {
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.menu-link:hover {
  background-color: #2a7bc4;
}

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

/* Tighter header on desktop */
@media (min-width: 768px) {
  #header-top {
    padding: 2px 0px;
  }
}

#header-divider {
  background-color: var(--primary-bg);
}

.hamburger span {
  background-color: var(--primary-bg);
}

.footer-divider {
  background-color: var(--primary-bg);
}

.footer-icon {
  color: var(--primary-bg);
}

.footer-icon:hover {
  color: #fff;
}

/* Replace logo with text version */
#logo {
  display: none;
}

#logo-link {
  margin-left: -12px;
}

#logo-link::before {
  content: '';
  display: block;
  width: 60px;
  height: auto;
  background-image: url('../assets/bageled_nyc_logo_text.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 1;
}

/* Larger logo on desktop/laptop */
@media (min-width: 768px) {
  #logo-link::before {
    width: 120px;
  }
}

/* Override pulse-glow animation color for this page */
@keyframes pulse-glow {
  0%, 100% { background-color: #ffffff; }
  50% { background-color: #2a7bc4; }
}
