/* base.css - shared structure for all screens */

:root{
  --bg: #f7f7f7;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;

  --accent: #111827;        /* overridden by theme */
  --accent-soft: #f3f4f6;   /* overridden by theme */

  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,0.06);
}

html, body { height: 100%; }
body{
  background: var(--bg);
  color: var(--text);
}

a{ text-decoration: none; }
a:hover{ text-decoration: underline; }

.app-container{
  max-width: 1200px;
  margin: 26px auto;
  padding: 0 14px;
}

.app-header{
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 8px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-header h1{
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

.app-subtitle{
  color: var(--muted);
  font-size: 0.95rem;
  margin: 2px 0 0 0;
}

.role-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.role-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.app-card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.app-card h2{
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.app-meta{
  color: var(--muted);
  font-size: 0.95rem;
}

.kv{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0 0;
}
.kv .kv-item{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
}
.kv strong{ font-weight: 700; }

.table thead th{
  background: rgba(0,0,0,0.03);
  font-weight: 700;
}

.btn-accent{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-accent:hover{
  filter: brightness(0.95);
}

.btn-outline-accent{
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.btn-outline-accent:hover{
  background: var(--accent) !important;
  color: #fff !important;
}

.footer-links{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}
/* Highlight the currently selected tournament */
.tournament-active {
  background: var(--accent-soft) !important;
  border-left: 8px solid var(--accent) !important;
}
/* Leaderboard alignment */
.lb-center {
  text-align: center;
  vertical-align: middle;
}

.lb-name {
  text-align: left; /* player names stay left */
}
