/**
 * NBA Games - design-1561.css
 * Mobile-first responsive design for nbagames.click
 * All classes prefixed w1561-
 */
:root {
  --w1561-primary: #BAFFC9;
  --w1561-secondary: #0000CD;
  --w1561-highlight: #AFEEEE;
  --w1561-accent: #4682B4;
  --w1561-bg: #273746;
  --w1561-bg-dark: #1a252f;
  --w1561-bg-card: #2c3e50;
  --w1561-text: #ffffff;
  --w1561-text-muted: #b0bec5;
  --w1561-text-dark: #121212;
  --w1561-border: #3b5167;
  --w1561-shadow: rgba(0, 0, 0, 0.3);
  --w1561-radius: 8px;
  --w1561-radius-lg: 16px;
  --w1561-transition: all 0.3s ease;
  --w1561-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --w1561-max-w: 430px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--w1561-font);
  background: var(--w1561-bg);
  color: var(--w1561-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--w1561-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* Container */
.w1561-container {
  max-width: var(--w1561-max-w);
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
}

/* Header */
.w1561-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w1561-bg-dark);
  border-bottom: 2px solid var(--w1561-primary);
  transition: var(--w1561-transition);
  height: 56px;
  display: flex;
  align-items: center;
}
.w1561-header-shrink {
  height: 46px;
  box-shadow: 0 2px 12px var(--w1561-shadow);
}
.w1561-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--w1561-max-w);
  margin: 0 auto;
  padding: 0 12px;
}
.w1561-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.w1561-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--w1561-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w1561-text-dark);
  font-weight: 700;
  font-size: 14px;
}
.w1561-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--w1561-primary);
  letter-spacing: 0.5px;
}
.w1561-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w1561-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--w1561-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--w1561-transition);
  text-decoration: none;
}
.w1561-btn-register {
  background: var(--w1561-primary);
  color: var(--w1561-text-dark);
}
.w1561-btn-register:hover {
  background: #9fe6b0;
  transform: translateY(-1px);
}
.w1561-btn-login {
  background: var(--w1561-secondary);
  color: var(--w1561-text);
}
.w1561-btn-login:hover {
  background: #0000b3;
  transform: translateY(-1px);
}
.w1561-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.w1561-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--w1561-primary);
  border-radius: 2px;
  transition: var(--w1561-transition);
}

/* Desktop nav - hidden on mobile */
.w1561-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .w1561-desktop-nav {
    display: flex;
    background: var(--w1561-bg-dark);
    border-bottom: 1px solid var(--w1561-border);
    justify-content: center;
    padding: 8px 0;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
  }
  .w1561-desktop-nav a {
    color: var(--w1561-text-muted);
    padding: 6px 14px;
    font-size: 14px;
    transition: var(--w1561-transition);
  }
  .w1561-desktop-nav a:hover {
    color: var(--w1561-primary);
    text-decoration: none;
  }
  .w1561-hamburger {
    display: none;
  }
}

/* Mobile menu overlay */
.w1561-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.w1561-mobile-overlay.w1561-active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu panel */
.w1561-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w1561-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 16px;
}
.w1561-menu-open {
  right: 0;
}
.w1561-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--w1561-border);
}
.w1561-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--w1561-primary);
}
.w1561-menu-close {
  background: none;
  border: none;
  color: var(--w1561-text);
  font-size: 22px;
  cursor: pointer;
}
.w1561-menu-section {
  margin-bottom: 16px;
}
.w1561-menu-section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--w1561-accent);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.w1561-menu-link {
  display: block;
  padding: 10px 12px;
  color: var(--w1561-text);
  font-size: 14px;
  border-radius: var(--w1561-radius);
  transition: var(--w1561-transition);
  cursor: pointer;
}
.w1561-menu-link:hover {
  background: var(--w1561-bg-card);
  color: var(--w1561-primary);
  text-decoration: none;
}

/* Slider */
.w1561-slider {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  height: 180px;
  background: var(--w1561-bg-dark);
}
@media (min-width: 769px) {
  .w1561-slider {
    margin-top: 100px;
  }
}
.w1561-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.w1561-slide-active {
  opacity: 1;
}
.w1561-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w1561-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.w1561-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--w1561-transition);
  border: none;
}
.w1561-dot-active {
  background: var(--w1561-primary);
  transform: scale(1.2);
}

/* Main content */
.w1561-main {
  padding-top: 16px;
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .w1561-main {
    padding-bottom: 80px;
  }
}

/* Section titles */
.w1561-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--w1561-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w1561-accent);
}
.w1561-section-title .material-icons {
  vertical-align: middle;
  margin-right: 6px;
  font-size: 22px;
}

/* Category tabs */
.w1561-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.w1561-cat-tabs::-webkit-scrollbar {
  display: none;
}
.w1561-cat-tab {
  padding: 6px 14px;
  background: var(--w1561-bg-card);
  color: var(--w1561-text-muted);
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--w1561-border);
  transition: var(--w1561-transition);
  flex-shrink: 0;
}
.w1561-cat-tab.w1561-tab-active {
  background: var(--w1561-primary);
  color: var(--w1561-text-dark);
  border-color: var(--w1561-primary);
  font-weight: 600;
}

/* Game grid */
.w1561-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 769px) {
  .w1561-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}
.w1561-game-card {
  background: var(--w1561-bg-card);
  border-radius: var(--w1561-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--w1561-transition);
  border: 1px solid var(--w1561-border);
  text-align: center;
}
.w1561-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--w1561-shadow);
  border-color: var(--w1561-primary);
}
.w1561-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.w1561-game-name {
  font-size: 10px;
  padding: 4px 2px;
  color: var(--w1561-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content sections */
.w1561-content-section {
  background: var(--w1561-bg-card);
  border-radius: var(--w1561-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--w1561-border);
}
.w1561-content-section h2 {
  font-size: 18px;
  color: var(--w1561-primary);
  margin-bottom: 10px;
}
.w1561-content-section h3 {
  font-size: 15px;
  color: var(--w1561-highlight);
  margin-bottom: 8px;
}
.w1561-content-section p {
  font-size: 14px;
  color: var(--w1561-text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.w1561-content-section ul {
  padding-left: 16px;
  margin-bottom: 10px;
}
.w1561-content-section li {
  font-size: 14px;
  color: var(--w1561-text-muted);
  margin-bottom: 6px;
  list-style: disc;
}

/* Promo inline link */
.w1561-promo-link {
  color: var(--w1561-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.w1561-promo-link:hover {
  color: var(--w1561-highlight);
}

/* Promo button */
.w1561-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--w1561-secondary), var(--w1561-accent));
  color: var(--w1561-text);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--w1561-transition);
  text-decoration: none;
  margin: 6px 2px;
}
.w1561-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 205, 0.4);
  text-decoration: none;
}

/* Bottom nav - mobile fixed */
.w1561-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--w1561-bg-dark);
  border-top: 2px solid var(--w1561-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}
@media (min-width: 769px) {
  .w1561-bottom-nav {
    display: none;
  }
}
.w1561-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--w1561-text-muted);
  cursor: pointer;
  transition: var(--w1561-transition);
  padding: 4px 2px;
  border-radius: var(--w1561-radius);
}
.w1561-nav-btn:hover,
.w1561-nav-btn:focus {
  color: var(--w1561-primary);
  background: rgba(186, 255, 201, 0.08);
}
.w1561-nav-btn i,
.w1561-nav-btn .material-icons,
.w1561-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}
.w1561-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.w1561-nav-label {
  font-size: 10px;
  white-space: nowrap;
}
.w1561-nav-btn-active {
  color: var(--w1561-primary);
}

/* Footer */
.w1561-footer {
  background: var(--w1561-bg-dark);
  padding: 24px 12px 80px;
  border-top: 2px solid var(--w1561-border);
}
@media (min-width: 769px) {
  .w1561-footer {
    padding-bottom: 24px;
  }
}
.w1561-footer-brand {
  text-align: center;
  margin-bottom: 16px;
}
.w1561-footer-brand p {
  font-size: 13px;
  color: var(--w1561-text-muted);
  max-width: 340px;
  margin: 0 auto;
}
.w1561-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.w1561-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.w1561-footer-links a {
  font-size: 12px;
  color: var(--w1561-text-muted);
  padding: 4px 8px;
}
.w1561-footer-links a:hover {
  color: var(--w1561-primary);
}
.w1561-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--w1561-text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--w1561-border);
}

/* Back to top */
.w1561-back-top {
  position: fixed;
  bottom: 70px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--w1561-accent);
  color: var(--w1561-text);
  border: none;
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--w1561-transition);
  box-shadow: 0 2px 8px var(--w1561-shadow);
}
@media (min-width: 769px) {
  .w1561-back-top {
    bottom: 24px;
  }
}
.w1561-back-top.w1561-visible {
  opacity: 1;
  pointer-events: auto;
}
.w1561-back-top:hover {
  background: var(--w1561-secondary);
  transform: translateY(-2px);
}

/* Animations */
.w1561-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.w1561-animate.w1561-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.w1561-text-center {
  text-align: center;
}
.w1561-mt-1 { margin-top: 8px; }
.w1561-mt-2 { margin-top: 16px; }
.w1561-mb-1 { margin-bottom: 8px; }
.w1561-mb-2 { margin-bottom: 16px; }
.w1561-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.w1561-gap-1 { gap: 8px; }
.w1561-hidden { display: none; }

/* Feature list styling */
.w1561-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.w1561-feature-item {
  background: var(--w1561-bg);
  padding: 12px;
  border-radius: var(--w1561-radius);
  text-align: center;
  border: 1px solid var(--w1561-border);
}
.w1561-feature-item i,
.w1561-feature-item .material-icons {
  font-size: 28px;
  color: var(--w1561-primary);
  margin-bottom: 6px;
}
.w1561-feature-item h4 {
  font-size: 13px;
  color: var(--w1561-text);
  margin-bottom: 4px;
}
.w1561-feature-item p {
  font-size: 11px;
  color: var(--w1561-text-muted);
}

/* Winner ticker */
.w1561-winner-ticker {
  background: var(--w1561-bg-dark);
  border: 1px solid var(--w1561-primary);
  border-radius: var(--w1561-radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.w1561-winner-badge {
  background: var(--w1561-primary);
  color: var(--w1561-text-dark);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Review page specific */
.w1561-rating-stars {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 8px;
}
.w1561-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.w1561-pros, .w1561-cons {
  padding: 12px;
  border-radius: var(--w1561-radius);
}
.w1561-pros {
  background: rgba(186, 255, 201, 0.1);
  border: 1px solid rgba(186, 255, 201, 0.3);
}
.w1561-cons {
  background: rgba(255, 200, 200, 0.1);
  border: 1px solid rgba(255, 200, 200, 0.3);
}
.w1561-pros h4 {
  color: var(--w1561-primary);
  font-size: 14px;
  margin-bottom: 6px;
}
.w1561-cons h4 {
  color: #ff9999;
  font-size: 14px;
  margin-bottom: 6px;
}
.w1561-pros li, .w1561-cons li {
  font-size: 13px;
  list-style: disc;
  margin-left: 14px;
  margin-bottom: 4px;
  color: var(--w1561-text-muted);
}
