/* enquint.com Web UI Styles */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #1a5f2a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow: hidden;
}

#game-container {
  width: 100vw;
  height: 100vh;
}

/* Menu styles - Nordic design */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.menu h1 {
  color: #f8f9fa;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  margin-bottom: 60px;
  position: relative;
}

.menu h1::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
}

/* Button styles - Nordic minimal */
.btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
}

.btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.game-btn {
  width: 100%;
  font-size: 13px;
  padding: 18px 32px;
  letter-spacing: 0.2em;
}

.btn-small {
  font-size: 11px;
  padding: 8px 16px;
  letter-spacing: 0.1em;
}

/* AI Selection screen - Nordic style */
.ai-menu {
  gap: 20px;
}

.ai-menu h1 {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  margin-bottom: 40px;
}

.ai-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.ai-btn {
  width: 100%;
  text-align: center;
}

.neural-btn {
  padding: 20px 32px;
}

.neural-btn .model-name {
  font-size: 13px;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.neural-btn .model-desc {
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: none;
}

.back-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  width: auto;
  padding: 10px 20px;
  font-size: 11px;
}

.sort-buttons {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.sort-buttons .btn-small {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}

.sort-buttons .btn-small:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Game board styles */
.game-board {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Game header - solid Nordic top bar */
.game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  z-index: 10;
  background: #0d1f12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-header > * {
  pointer-events: auto;
}

.phase-display {
  color: #f8f9fa;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.score-display {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.player-score {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  font-weight: 300;
}

.selection-status {
  color: #ffd700;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* SVG game table - below header */
.game-table {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  height: calc(100% - 48px);
}

/* Card styles */
.card {
  cursor: default;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:hover {
  transform: translateY(-10px);
  filter: brightness(1.1);
}

.card.selected {
  transform: translateY(-20px);
}

/* Playable cards have a slight lift to indicate they can be played */
.card.playable {
  /* SVG filter provides the glow effect (cross-browser) */
}

.card.playable.selected {
  /* Selected overrides playable styling */
}

/* Message area - minimal */
.message-area {
  position: absolute;
  bottom: 16px;
  left: 24px;
  color: rgba(255, 255, 255, 0.6);
  max-height: 100px;
  max-width: 300px;
  overflow-y: auto;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  z-index: 10;
}

.message-area div {
  padding: 3px 0;
}

.message-area div:last-child {
  border-bottom: none;
}

/* Action buttons */
.action-buttons {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
  max-height: 50vh;
  overflow-y: auto;
}

.btn-action {
  background: rgba(255, 180, 50, 0.2);
  border-color: rgba(255, 180, 50, 0.5);
  color: #ffd700;
}

.btn-action:hover {
  background: rgba(255, 180, 50, 0.35);
  border-color: rgba(255, 180, 50, 0.7);
}

/* Game over screen */
.game-over {
  text-align: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  color: white;
}

.game-over h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: gold;
}

.game-over p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.game-over .score-display {
  justify-content: center;
}

/* Hand zones */
.hand {
  /* Base hand styling */
}

.hand.human .card {
  /* Human player cards have hover effects via .clickable */
}

.hand.opponent {
  /* Opponent hands are face down */
}

/* Trick area */
.trick-area {
  /* Center trick cards */
}

/* Deck and discard */
.deck, .discard {
  /* Pile styling */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .menu h1 {
    font-size: 1.75rem;
    letter-spacing: 0.2em;
  }

  .menu-buttons {
    max-width: 240px;
  }

  .game-btn {
    font-size: 12px;
    padding: 16px 24px;
  }

  .game-header {
    flex-direction: column;
    text-align: center;
  }

  .score-display {
    justify-content: center;
  }
}
