/* =========================================
   Ark Nova Map Randomizer - Swiss Modernist
   ========================================= */

:root {
  /* Color System */
  --color-text-dim: #9AA0A6;
  --accent-color: var(--color-accent);
  --color-border-bright: #333333;

  /* Player Colors - Ark Nova Standard (Muted for Dark UI) */
  --player-red: #FF4D4D;
  --player-blue: #60A5FA;
  --player-yellow: #FBBF24;
  --player-gray: #E4E4E7;

  /* Shadows */
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
  display: flex;
  flex-direction: column;
  padding: 32px 16px;
  gap: 32px;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

/* ========== HEADER ========== */
header {
  text-align: center;
}

h1 {
  font-size: 24px;
  font-weight: 950;
  margin: 0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ========== MAIN ========== */
main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== CONTROLS ========== */
.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.primary-button {
  width: 100%;
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
}

.primary-button:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

/* ========== CHECKBOX OPTIONS ========== */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--color-surface);
  padding: 12px;
  border: 1px solid var(--color-border);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.2s;
}

.checkbox-label:active {
  background-color: var(--color-border);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-border-bright);
  background: var(--color-bg);
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  font-size: 13px;
  color: var(--color-text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

/* ========== GRID CONTAINER ========== */
.grid-container {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.grid-container.show {
  display: grid;
}

.grid-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px 12px;
  text-align: center;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid-container.show .grid-item {
  animation: itemReveal 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.grid-container.show .grid-item:nth-child(1) {
  animation-delay: 0.05s;
}

.grid-container.show .grid-item:nth-child(2) {
  animation-delay: 0.1s;
}

.grid-container.show .grid-item:nth-child(3) {
  animation-delay: 0.15s;
}

.grid-container.show .grid-item:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes itemReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-info {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 4px;
}

.player-name {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

/* ========== PLAYER COLOR STYLING ========== */

.grid-item:nth-child(1) {
  border-left: 4px solid var(--player-red);
}

.grid-item:nth-child(1) .player-name {
  color: var(--player-red);
}

.grid-item:nth-child(2) {
  border-left: 4px solid var(--player-blue);
}

.grid-item:nth-child(2) .player-name {
  color: var(--player-blue);
}

.grid-item:nth-child(3) {
  border-left: 4px solid var(--player-yellow);
}

.grid-item:nth-child(3) .player-name {
  color: var(--player-yellow);
}

.grid-item:nth-child(4) {
  border-left: 4px solid var(--player-gray);
}

.grid-item:nth-child(4) .player-name {
  color: var(--player-gray);
}