/**
 * NBA League - Layout Stylesheet
 * @version 1.0.0
 * @description Mobile-first responsive design for nba-league.click
 */

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #2C2C2C;
  background: linear-gradient(135deg, #F0E68C 0%, #EEE8AA 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.pgeb-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.pgeb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #8B0000 0%, #E9967A 100%);
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pgeb-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.pgeb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #F0E68C;
  font-size: 2rem;
  font-weight: 700;
}

.pgeb-logo img {
  width: 4rem;
  height: 4rem;
  margin-right: 0.8rem;
  border-radius: 0.8rem;
}

.pgeb-header-buttons {
  display: flex;
  gap: 1rem;
}

.pgeb-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.pgeb-btn-register {
  background: #F0E68C;
  color: #8B0000;
}

.pgeb-btn-register:hover {
  background: #EEE8AA;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 230, 140, 0.4);
}

.pgeb-btn-login {
  background: transparent;
  color: #F0E68C;
  border: 0.2rem solid #F0E68C;
}

.pgeb-btn-login:hover {
  background: #F0E68C;
  color: #8B0000;
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.pgeb-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10001;
}

.pgeb-menu-toggle span {
  display: block;
  width: 2.8rem;
  height: 0.3rem;
  background: #F0E68C;
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

.pgeb-menu-toggle:hover span {
  background: #EEE8AA;
}

/* Mobile Menu */
.pgeb-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 44, 44, 0.98);
  z-index: 9999;
  padding: 8rem 2rem 4rem;
  overflow-y: auto;
}

.pgeb-mobile-menu a {
  display: block;
  color: #F0E68C;
  text-decoration: none;
  font-size: 1.8rem;
  padding: 1.2rem 0;
  border-bottom: 0.1rem solid rgba(240, 230, 140, 0.2);
  transition: all 0.3s ease;
}

.pgeb-mobile-menu a:hover {
  color: #EEE8AA;
  padding-left: 1rem;
  background: rgba(240, 230, 140, 0.1);
}

/* Main Content */
.pgeb-main {
  margin-top: 7rem;
  min-height: calc(100vh - 14rem);
}

@media (max-width: 768px) {
  .pgeb-main {
    padding-bottom: 8rem;
  }
}

/* Hero Carousel */
.pgeb-hero {
  position: relative;
  height: 40rem;
  overflow: hidden;
  border-radius: 1.6rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pgeb-hero-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.pgeb-hero-slide {
  min-width: 100%;
  height: 100%;
}

.pgeb-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgeb-hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.pgeb-hero-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pgeb-hero-indicator.active {
  background: #F0E68C;
  transform: scale(1.2);
}

/* Game Grid */
.pgeb-section {
  margin-bottom: 4rem;
}

.pgeb-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pgeb-section-title::before {
  content: '';
  width: 0.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #E9967A 0%, #8B0000 100%);
  border-radius: 0.3rem;
}

.pgeb-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pgeb-game-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.pgeb-game-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pgeb-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pgeb-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2C2C2C;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Modules */
.pgeb-module {
  background: #fff;
  border-radius: 1.6rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pgeb-module-title {
  font-size: 2rem;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgeb-module-title i {
  font-size: 2.4rem;
  color: #E9967A;
}

.pgeb-module-content {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #2C2C2C;
}

.pgeb-module-content p {
  margin-bottom: 1.5rem;
}

.pgeb-module-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.pgeb-module-content li {
  margin-bottom: 0.8rem;
}

.pgeb-module-content a {
  color: #8B0000;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 0.2rem solid #E9967A;
  transition: all 0.3s ease;
}

.pgeb-module-content a:hover {
  color: #E9967A;
  border-bottom-color: #8B0000;
}

/* Bottom Navigation */
.pgeb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #8B0000 0%, #E9967A 100%);
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
  .pgeb-bottom-nav {
    display: none;
  }
}

.pgeb-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.pgeb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 6rem;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1rem;
  padding: 0.5rem;
}

.pgeb-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.pgeb-nav-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.pgeb-nav-icon {
  font-size: 2.4rem;
  color: #F0E68C;
}

.pgeb-nav-text {
  font-size: 1rem;
  font-weight: 600;
  color: #F0E68C;
  text-align: center;
}

/* Footer */
.pgeb-footer {
  background: #2C2C2C;
  color: #F0E68C;
  padding: 3rem 1.5rem 10rem;
  margin-top: 4rem;
}

.pgeb-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pgeb-footer-section {
  margin-bottom: 2.5rem;
}

.pgeb-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #E9967A;
}

.pgeb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pgeb-footer-links a {
  color: #F0E68C;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.pgeb-footer-links a:hover {
  color: #E9967A;
  padding-left: 0.5rem;
}

.pgeb-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.pgeb-partners img {
  width: 8rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(200%);
  transition: all 0.3s ease;
}

.pgeb-partners img:hover {
  filter: grayscale(0%) brightness(100%);
}

.pgeb-copyright {
  text-align: center;
  font-size: 1.4rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(240, 230, 140, 0.2);
}

/* Animations */
@keyframes pgeb-slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pgeb-slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes pgeb-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Back to Top Button */
.pgeb-back-to-top {
  display: none;
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 5rem;
  height: 5rem;
  background: #8B0000;
  color: #F0E68C;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.pgeb-back-to-top:hover {
  background: #E9967A;
  transform: scale(1.1);
}

/* Responsive Utilities */
@media (max-width: 380px) {
  html {
    font-size: 56.25%;
  }

  .pgeb-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Touch-friendly improvements */
button, a {
  min-height: 4.4rem;
  min-width: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
