/* ========================================
   Globe Map Page
   ======================================== */

/* Full-width dark zone containing header + toolbar + globe */
.globe-page {
  position: relative;
  background: #0a0a2e;
  margin-top: -2rem;
}

/* Header overlaying the top of the globe area */
.globe-header {
  position: relative;
  z-index: 5;
  padding: 2.5rem 0 0.5rem;
  text-align: center;
}

.globe-header .page-title {
  margin-bottom: 0;
}

/* Toolbar: selector + legend, centered above globe */
.globe-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.globe-select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: Roboto, sans-serif;
  cursor: pointer;
  outline: none;
}

.globe-select:focus {
  border-color: var(--accent);
}

.globe-select option {
  background: #032374;
  color: #fff;
}

.globe-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.globe-nav-btn:hover {
  background: rgba(220, 175, 77, 0.15);
  border-color: rgba(220, 175, 77, 0.4);
  color: #fff;
}

/* Legend */
.globe-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.globe-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.globe-legend-dot--nice {
  background: var(--accent);
}

.globe-legend-dot--other {
  background: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
}

/* Globe canvas container */
.globe-container {
  width: 100%;
  height: 65vh;
}

/* ========================================
   Match Cards (horizontal scroll above globe)
   ======================================== */
.globe-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 0 1.5rem 1rem;
}

.globe-match-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.globe-match-card:hover {
  border-color: rgba(220, 175, 77, 0.4);
}

.globe-match-card--nice {
  border-left: 3px solid var(--accent);
}

.globe-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.globe-match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.globe-match-team:last-child {
  justify-content: flex-end;
  text-align: right;
}

.globe-match-score {
  text-align: center;
  min-width: 60px;
}

.globe-score-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.globe-time-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.globe-match-venue {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.6rem;
  text-align: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .globe-container {
    height: 50vh;
  }

  .globe-toolbar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .globe-legend {
    margin-left: 0;
    margin-top: 0.25rem;
    width: 100%;
    justify-content: center;
  }

  .globe-match-list {
    grid-template-columns: 1fr;
    padding: 0 1rem 0.75rem;
  }
}
