/* ==========================================================================
   LANFACTORY PARTY GAMES - UNIFIED SYSTEM STYLES
   Red, Black, and White Obsidian Cyber Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,700&family=Inter:wght@300;400;500;600;700;900&family=Rajdhani:wght@500;600;700&family=Orbitron:wght@700;900&display=swap');
@import url('quiplash.css');
@import url('trivia.css');
@import url('posters.css');

:root {
  --party-red: #ff202e;
  --party-red-hover: #ff4754;
  --party-red-glow: rgba(255, 32, 46, 0.45);
  --party-bg: #0a0a0f;
  --party-card: #14141e;
  --party-card-hover: #1c1c2a;
  --party-border: rgba(255, 255, 255, 0.12);
  --party-text: #ffffff;
  --party-text-muted: #94a3b8;
}

/* Launcher Grid for Big Screen Host */
.host-launcher-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.host-launcher-header {
  text-align: center;
  margin-bottom: 3rem;
}

.host-launcher-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.host-launcher-title span {
  color: var(--party-red);
  text-shadow: 0 0 25px var(--party-red-glow);
}

.host-launcher-subtitle {
  color: var(--party-text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
}

.host-games-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .host-games-selection {
    grid-template-columns: 1fr;
  }
}

.host-game-box {
  background: linear-gradient(180deg, #181824 0%, #101018 100%);
  border: 1px solid var(--party-border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.host-game-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 32, 46, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 32, 46, 0.25);
}

.host-game-box.trivia-box:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.25);
}

.host-box-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.host-box-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.host-box-desc {
  color: var(--party-text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.host-config-row {
  margin-bottom: 1.25rem;
}

.host-config-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--party-text-muted);
  margin-bottom: 0.5rem;
}

.host-config-select {
  width: 100%;
  background: #09090f;
  border: 1px solid var(--party-border);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.host-config-select:focus {
  outline: none;
  border-color: var(--party-red);
  box-shadow: 0 0 12px var(--party-red-glow);
}

.btn-launch-game {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

.btn-launch-quip {
  background: linear-gradient(135deg, var(--party-red), #b80d19);
  box-shadow: 0 4px 18px rgba(255, 32, 46, 0.4);
}

.btn-launch-quip:hover {
  background: linear-gradient(135deg, var(--party-red-hover), var(--party-red));
  box-shadow: 0 6px 25px rgba(255, 32, 46, 0.65);
  transform: translateY(-2px);
}

.btn-launch-trivia {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.btn-launch-trivia:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.65);
  transform: translateY(-2px);
}

/* Leaderboard Page Styles */
.lb-hero {
  background: radial-gradient(circle at 50% 20%, rgba(255, 32, 46, 0.15) 0%, rgba(10, 10, 15, 0.98) 75%), var(--party-bg);
  border-bottom: 1px solid var(--party-border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.lb-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
}

.lb-tab-btn {
  background: #14141e;
  border: 1px solid var(--party-border);
  color: var(--party-text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lb-tab-btn.active {
  background: var(--party-red);
  border-color: var(--party-red);
  color: #fff;
  box-shadow: 0 0 18px var(--party-red-glow);
}

.lb-table-card {
  max-width: 1100px;
  margin: 0 auto 4rem;
  background: #12121a;
  border: 1px solid var(--party-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lb-table th {
  background: #181824;
  color: var(--party-text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--party-border);
}

.lb-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: #fff;
}

.lb-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.player-cell-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.badge-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--party-text-muted);
}

.badge-rank-1 { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.badge-rank-2 { color: #94a3b8; text-shadow: 0 0 10px rgba(148, 163, 184, 0.5); }
.badge-rank-3 { color: #f97316; text-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }

/* Quick Status Pill on Player Input */
.room-detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.room-detect-pill.quiplash {
  background: rgba(255, 32, 46, 0.15);
  border: 1px solid rgba(255, 32, 46, 0.4);
  color: #ff6470;
}

.room-detect-pill.trivia {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
