/* ==========================================================================
   Previously Sports — Live Game Tracker Styles
   ESPN-style live tracker for matchup pages
   ========================================================================== */

.gt-tracker {
  background: var(--card-bg, #141419);
  border: 1px solid var(--border, #2a2a32);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  font-family: inherit;
}

.gt-tracker.gt-live {
  border-color: #e8452c;
  box-shadow: 0 0 0 1px rgba(232, 69, 44, 0.3);
}

.gt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8452c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.gt-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: gt-pulse 1.5s ease-in-out infinite;
}

@keyframes gt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gt-final-badge {
  background: #3a3a42;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.gt-clock {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim, #a0a0ab);
}

.gt-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.gt-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.gt-team.gt-winner {
  background: rgba(255, 255, 255, 0.06);
}

.gt-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.gt-team-info {
  flex: 1;
}

.gt-team-name {
  font-size: 16px;
  font-weight: 700;
}

.gt-team-record {
  font-size: 12px;
  color: var(--text-dim, #a0a0ab);
}

.gt-score {
  font-size: 32px;
  font-weight: 800;
  min-width: 60px;
  text-align: right;
}

.gt-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #a0a0ab);
  margin: 0 0 12px 0;
}

.gt-stats {
  margin-bottom: 20px;
}

.gt-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gt-stats-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gt-stats-table tr:last-child {
  border-bottom: none;
}

.gt-stat-val {
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  width: 30%;
}

.gt-stat-label {
  padding: 8px 4px;
  text-align: center;
  color: var(--text-dim, #a0a0ab);
  font-size: 12px;
  width: 40%;
}

.gt-plays {
  margin-bottom: 20px;
}

.gt-plays-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-play {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 13px;
}

.gt-play-meta {
  font-size: 11px;
  color: var(--text-dim, #a0a0ab);
  margin-bottom: 4px;
  font-weight: 600;
}

.gt-play-text {
  line-height: 1.4;
}

.gt-play-score {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim, #a0a0ab);
}

.gt-leaders {
  margin-bottom: 20px;
}

.gt-leader-cat {
  margin-bottom: 12px;
}

.gt-leader-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim, #a0a0ab);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gt-athlete {
  font-size: 14px;
  padding: 4px 0;
}

.gt-athlete-val {
  font-weight: 700;
  color: var(--accent, #e8452c);
  margin-left: 8px;
}

.gt-updated {
  font-size: 11px;
  color: var(--text-dim, #a0a0ab);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gt-unavailable {
  background: var(--card-bg, #141419);
  border: 1px solid var(--border, #2a2a32);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.gt-unavailable-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gt-unavailable-msg {
  font-size: 14px;
  color: var(--text-dim, #a0a0ab);
  margin-bottom: 16px;
  line-height: 1.5;
}

.gt-retry {
  background: var(--accent, #e8452c);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.gt-retry:hover {
  opacity: 0.9;
}

.gt-error {
  padding: 20px;
  text-align: center;
  color: var(--text-dim, #a0a0ab);
}

/* Mobile */
@media (max-width: 640px) {
  .gt-tracker {
    padding: 16px;
    margin: 16px 0;
  }
  
  .gt-score {
    font-size: 28px;
    min-width: 50px;
  }
  
  .gt-logo {
    width: 40px;
    height: 40px;
  }
}
