/* games.css — spil-forslag styling (alle klasser starter med .games- eller .game-) */

.games-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  max-width: 56ch;
  line-height: 1.5;
}

.games-empty {
  padding: 20px 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 0.5px solid var(--rule);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color .14s, background .14s;
}
.game-row.is-voted {
  border-color: rgba(201, 161, 74, .35);
  background: rgba(201, 161, 74, .04);
}

/* Vote button — count + action label stacked, looks like a counted pill */
.game-vote {
  appearance: none;
  background: transparent;
  border: 0.5px solid var(--rule);
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 56px;
  flex-shrink: 0;
  transition: background .14s, border-color .14s, color .14s;
}
.game-vote:hover:not(:disabled) {
  border-color: var(--brass);
  color: var(--ink);
}
.game-vote.is-voted {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--ink);
}
.game-vote.is-voted:hover {
  background: var(--moss-deep);
}
.game-vote:disabled { cursor: default; opacity: 0.4; }
.game-vote-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  color: var(--brass);
}
.game-vote.is-voted .game-vote-count { color: var(--ink); }
.game-vote-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-title {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}
.game-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(201, 161, 74, .35);
  transition: border-color .14s, color .14s;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.game-title-link:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.game-title-ext {
  color: var(--brass);
  opacity: 0.7;
  flex-shrink: 0;
}
.game-title-link:hover .game-title-ext { opacity: 1; }
.game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.game-adder em {
  color: var(--ink-soft);
  font-style: italic;
}
.game-voters {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.game-voters > .avatar {
  margin-left: -5px;
  box-shadow: 0 0 0 1.5px var(--bg-card);
}
.game-voters > .avatar:first-child { margin-left: 0; }
.game-voters-more {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-faint);
}

.game-remove {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color .12s;
}
.game-remove:hover { color: var(--terracotta); }

.games-add-btn {
  appearance: none;
  background: none;
  border: 0.5px dashed rgba(201, 161, 74, .35);
  color: var(--brass);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  transition: border-color .14s, background .14s, color .14s;
}
.games-add-btn:hover:not(:disabled) {
  border-style: solid;
  background: rgba(201, 161, 74, .08);
  color: var(--ink);
}
.games-add-btn:disabled { opacity: 0.4; cursor: default; }

.games-form {
  background: var(--bg-soft);
  border: 0.5px solid var(--rule);
  border-radius: 3px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.games-form-input {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 6px 0;
  outline: none;
  transition: border-bottom-color .14s;
}
.games-form-input:focus { border-bottom-color: var(--brass); }
.games-form-input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.games-form-url {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
}
.games-form-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(200, 130, 100, .7);
  letter-spacing: 0.02em;
  margin-top: -4px;
}
.games-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 540px) {
  .game-row { gap: 10px; padding: 10px; }
  .game-vote { min-width: 48px; padding: 5px 8px; }
  .game-vote-count { font-size: 16px; }
  .game-title { font-size: 15px; }
}
