/* Match Simulator - page specific styles */

.modes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab:hover:not(.active) {
  border-color: var(--accent);
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.card {
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.dropdowns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dropdown select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.2s;
}

.dropdown select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.pitch {
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  min-height: 400px;
  overflow: hidden;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.3);
}

.pitch::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

.pitch-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.pitch-line {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.team-display {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.team-display.home {
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
}

.team-display.away {
  top: 50%;
  right: 20%;
  transform: translateY(-50%);
}

.team-display .flag {
  font-size: 4rem;
}

.team-display .name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.score-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.score-display .score {
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
}

.score-display .vs {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
}

.events-log {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface2);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.event-item:last-child {
  border-bottom: none;
}

.event-time {
  color: var(--accent);
  font-weight: 700;
  min-width: 40px;
}

.event-text {
  color: var(--text);
}

@media (max-width: 700px) {
  .pitch {
    min-height: 300px;
  }

  .team-display .flag {
    font-size: 2.5rem;
  }

  .score-display .score {
    font-size: 2rem;
  }
}
