/* Host Lobby Styles */
.host-lobby {
  min-height: 100vh;
  background: #f5f5f0;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
}

/* Header */
.host-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
}

/* Lang switcher styles now in main.css */

.header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Icon btn styles in main.css, override only if needed */
.host-header .icon-btn {
  border-radius: 50%;
  border: 1px solid #ddd;
}

/* Main Content */
.host-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 4rem 3rem;
  align-items: start;
}

/* Join Section */
.join-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.join-card {
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 2rem 0;
}

.alt-join {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.join-link {
  display: block;
  text-align: center;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: #f5f5f0;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
}

.join-link:hover {
  background: #e8e8e0;
  text-decoration: underline;
}

.link {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}

.game-code {
  background: #f0e500;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 12px;
  font-family: system-ui, sans-serif;
  margin-top: auto;
}

/* Players Section */
.players-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.players-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.players-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.players-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.players-subtitle {
  font-size: 1rem;
  color: #888;
  margin-top: 0.25rem;
}

.players-count {
  font-size: 2.5rem;
  font-weight: 700;
}

.players-count span:first-child {
  color: #1a1a1a;
}

.players-count span:last-child {
  color: #ccc;
}

.players-progress {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c5e500, #a0d000);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1;
  align-content: start;
}

/* Player Slots */
.player-slot {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

.player-slot.empty {
  border: 2px dashed #ddd;
  color: #bbb;
  justify-content: center;
}

.player-slot.filled {
  background: #fafafa;
  border: 1px solid #eee;
}

.waiting-icon {
  font-size: 1.3rem;
}

.waiting-text {
  font-size: 1rem;
}

.player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.player-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.player-status.joined {
  color: #888;
}

/* Start Button */
.start-btn {
  width: 100%;
  padding: 1.5rem 2rem;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.2s, transform 0.1s;
}

.start-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.start-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.play-icon {
  font-size: 1rem;
}

/* Footer */
.host-footer {
  padding: 1.25rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */

/* Large screens / TV */
@media (min-width: 1600px) {
  .host-content {
    padding: 3rem 6rem 4rem;
    gap: 4rem;
  }
  
  .game-code {
    font-size: 6rem;
    padding: 2rem;
  }
  
  .qr-frame {
    width: 260px;
    height: 260px;
  }
  
  .players-title {
    font-size: 2rem;
  }
  
  .player-slot {
    min-height: 90px;
    padding: 1.25rem 1.5rem;
  }
  
  .player-avatar {
    width: 60px;
    height: 60px;
  }
  
  .player-name {
    font-size: 1.2rem;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
  .host-content {
    padding: 1.5rem 2.5rem 2rem;
    gap: 2rem;
  }
  
  .game-code {
    font-size: 4rem;
  }
  
  .qr-frame {
    width: 180px;
    height: 180px;
  }
}

/* Tablet portrait / small screens */
@media (max-width: 1024px) {
  .host-content {
    grid-template-columns: 1fr;
    padding: 1rem 2rem 2rem;
    gap: 1.5rem;
  }
  
  .join-section {
    order: 1;
  }
  
  .players-section {
    order: 2;
  }
  

  .game-code {
    font-size: 3.5rem;
    letter-spacing: 8px;
  }
  
  .qr-frame {
    width: 160px;
    height: 160px;
  }
  
  .players-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .host-header {
    padding: 1rem 1.5rem;
  }
  
  .host-content {
    padding: 1rem 1.5rem;
  }
  
  .game-code {
    font-size: 2.5rem;
    letter-spacing: 6px;
    padding: 1.25rem;
  }
  
  .qr-frame {
    width: 140px;
    height: 140px;
  }
  
  .players-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .player-slot {
    min-height: 70px;
    padding: 0.75rem;
  }
  
  .player-avatar {
    width: 42px;
    height: 42px;
  }
  
  .player-name {
    font-size: 0.95rem;
  }
}
