/* =========================================================
   CROSSGAMES - LOBBY VIEW STYLES
   ========================================================= */

.lobby-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero Banner */
.hero-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: linear-gradient(135deg, rgba(22, 27, 46, 0.85) 0%, rgba(15, 18, 30, 0.95) 100%);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Hero Stats Card */
.hero-stats-card {
  background: rgba(11, 14, 24, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.stats-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stats-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stats-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-bright);
}

.stats-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-primary);
}

.stats-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Progress Bar */
.progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.5s ease;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.section-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.game-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.filter-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Game Cards Grid */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.game-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--card-theme-color, var(--accent-primary));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-theme-glow, var(--accent-glow));
}

.game-card-banner {
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(22, 27, 46, 0.95) 100%);
}

.game-card-icon-massive {
  font-size: 64px;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-card:hover .game-card-icon-massive {
  transform: scale(1.18) rotate(4deg);
}

.game-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.game-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.game-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.game-card-tag {
  font-size: 12px;
  color: var(--card-theme-color, var(--accent-primary));
  font-weight: 700;
}

.game-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-stat-val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.card-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.game-card-footer {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-card-play {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: none;
  background: var(--card-theme-color, var(--accent-primary));
  color: #0b0d14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  text-decoration: none;
}
.btn-card-play:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 16px var(--card-theme-glow, var(--accent-glow));
}

.btn-card-levels {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-bright);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-card-levels:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-card-standalone {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  white-space: nowrap;
}
.btn-card-standalone:hover {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  color: #fff;
}

/* Bottom Grid: Daily & Highlights */
.lobby-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.special-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daily-card {
  background: linear-gradient(135deg, rgba(255, 115, 0, 0.08) 0%, rgba(22, 27, 46, 0.8) 100%);
  border-color: rgba(255, 123, 0, 0.3);
}

.special-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.special-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(255, 183, 3, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.special-reward {
  font-size: 12px;
  font-weight: 700;
  color: #ffd166;
}

.special-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.special-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.special-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.challenge-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.feature-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-bullet-list li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-bullet-list b {
  color: var(--text-main);
}

@media (max-width: 992px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .lobby-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 26px;
  }
  .lobby-container {
    padding: 16px 12px 48px 12px;
  }
}
