/**
 * Jili56 Gaming Website - Main Stylesheet
 * Mobile-first responsive design with casino luxury aesthetic
 * All classes use 'gbd1-' prefix for namespace isolation
 */

/* ===== CSS Variables ===== */
:root {
  /* Color Palette - Luxury Casino Theme */
  --gbd1-primary: #D2691E; /* Chocolate/Gold */
  --gbd1-secondary: #80CBC4; /* Teal accent */
  --gbd1-accent: #DEB887; /* Burlywood/Light gold */
  --gbd1-dark: #1B263B; /* Deep navy background */
  --gbd1-light: #E8F5E8; /* Mint cream text */

  /* Gradient variants */
  --gbd1-gradient-primary: linear-gradient(135deg, #D2691E 0%, #DEB887 100%);
  --gbd1-gradient-dark: linear-gradient(180deg, #1B263B 0%, #0D1321 100%);
  --gbd1-gradient-glow: radial-gradient(circle, rgba(210,105,30,0.3) 0%, transparent 70%);

  /* Spacing */
  --gbd1-space-xs: 0.4rem;
  --gbd1-space-sm: 0.8rem;
  --gbd1-space-md: 1.6rem;
  --gbd1-space-lg: 2.4rem;
  --gbd1-space-xl: 3.2rem;

  /* Typography */
  --gbd1-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --gbd1-font-display: 'Bebas Neue', 'Impact', sans-serif;

  /* Borders & Shadows */
  --gbd1-radius-sm: 0.6rem;
  --gbd1-radius-md: 1.2rem;
  --gbd1-radius-lg: 2rem;
  --gbd1-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --gbd1-shadow-glow: 0 0 30px rgba(210, 105, 30, 0.5);
  --gbd1-shadow-intense: 0 8px 40px rgba(210, 105, 30, 0.6);

  /* Z-index layers */
  --gbd1-z-dropdown: 1000;
  --gbd1-z-header: 1000;
  --gbd1-z-bottom-nav: 1000;
  --gbd1-z-menu: 9999;
  --gbd1-z-overlay: 9998;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--gbd1-font-body);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--gbd1-light);
  background: var(--gbd1-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gbd1-font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--gbd1-space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: 3.6rem;
  background: var(--gbd1-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(210, 105, 30, 0.5);
}

h2 {
  font-size: 2.8rem;
  color: var(--gbd1-primary);
}

h3 {
  font-size: 2.2rem;
  color: var(--gbd1-accent);
}

p {
  margin-bottom: var(--gbd1-space-md);
  line-height: 1.7;
}

a {
  color: var(--gbd1-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gbd1-primary);
  text-shadow: 0 0 10px rgba(210, 105, 30, 0.6);
}

/* ===== Layout Container ===== */
.gbd1-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gbd1-space-md);
  width: 100%;
}

.gbd1-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem; /* Space for bottom nav */
  background: var(--gbd1-gradient-dark);
}

/* ===== Header ===== */
.gbd1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 19, 33, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 105, 30, 0.2);
  z-index: var(--gbd1-z-header);
  transition: all 0.3s ease;
}

.gbd1-header-scrolled {
  box-shadow: var(--gbd1-shadow);
  background: rgba(13, 19, 33, 0.98);
}

.gbd1-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gbd1-space-sm) var(--gbd1-space-md);
  max-width: 430px;
  margin: 0 auto;
}

.gbd1-logo {
  display: flex;
  align-items: center;
  gap: var(--gbd1-space-sm);
  font-family: var(--gbd1-font-display);
  font-size: 2.4rem;
  color: var(--gbd1-primary);
  letter-spacing: 0.1em;
}

.gbd1-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  filter: drop-shadow(0 0 8px rgba(210, 105, 30, 0.6));
}

.gbd1-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gbd1-space-sm);
}

.gbd1-menu-toggle {
  background: none;
  border: none;
  color: var(--gbd1-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gbd1-space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gbd1-menu-toggle:hover {
  color: var(--gbd1-primary);
  transform: scale(1.1);
}

/* ===== Buttons ===== */
.gbd1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--gbd1-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--gbd1-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gbd1-btn-primary {
  background: var(--gbd1-gradient-primary);
  color: var(--gbd1-dark);
  box-shadow: var(--gbd1-shadow-glow);
}

.gbd1-btn-primary:hover {
  box-shadow: var(--gbd1-shadow-intense);
  transform: translateY(-2px);
}

.gbd1-btn-secondary {
  background: transparent;
  color: var(--gbd1-primary);
  border: 2px solid var(--gbd1-primary);
}

.gbd1-btn-secondary:hover {
  background: var(--gbd1-primary);
  color: var(--gbd1-dark);
  box-shadow: var(--gbd1-shadow-glow);
}

.gbd1-btn-small {
  padding: 0.6rem 1.4rem;
  font-size: 1.2rem;
}

/* ===== Mobile Menu ===== */
.gbd1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: var(--gbd1-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gbd1-overlay-active {
  opacity: 1;
  visibility: visible;
}

.gbd1-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--gbd1-gradient-dark);
  border-left: 2px solid var(--gbd1-primary);
  z-index: var(--gbd1-z-menu);
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.webbbd-menu-open {
  right: 0;
}

.gbd1-menu-header {
  padding: var(--gbd1-space-lg) var(--gbd1-space-md);
  border-bottom: 1px solid rgba(210, 105, 30, 0.2);
  text-align: center;
}

.gbd1-menu-header h3 {
  font-size: 2rem;
  margin: 0;
}

.gbd1-menu-nav {
  padding: var(--gbd1-space-md);
}

.gbd1-menu-nav ul {
  list-style: none;
}

.gbd1-menu-nav li {
  margin-bottom: var(--gbd1-space-sm);
}

.gbd1-menu-nav a {
  display: flex;
  align-items: center;
  padding: var(--gbd1-space-md);
  color: var(--gbd1-light);
  background: rgba(210, 105, 30, 0.1);
  border-radius: var(--gbd1-radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.gbd1-menu-nav a:hover,
.gbd1-nav-active {
  background: rgba(210, 105, 30, 0.2);
  border-left-color: var(--gbd1-primary);
  transform: translateX(5px);
}

/* ===== Main Content ===== */
.gbd1-main {
  padding-top: 6rem; /* Header height */
  padding-bottom: 8rem; /* Bottom nav height */
}

/* ===== Carousel/Slider ===== */
.gbd1-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: var(--gbd1-space-md) 0;
  overflow: hidden;
  border-radius: var(--gbd1-radius-md);
}

.gbd1-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gbd1-slide-active {
  opacity: 1;
  z-index: 1;
}

.gbd1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--gbd1-radius-md);
}

.gbd1-dots {
  position: absolute;
  bottom: var(--gbd1-space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gbd1-space-sm);
  z-index: 2;
}

.gbd1-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gbd1-dot-active {
  background: var(--gbd1-primary);
  width: 2.4rem;
  border-radius: 0.4rem;
  box-shadow: 0 0 10px var(--gbd1-primary);
}

/* ===== Game Grid ===== */
.gbd1-game-section {
  margin: var(--gbd1-space-xl) 0;
}

.gbd1-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gbd1-space-md);
  padding-bottom: var(--gbd1-space-sm);
  border-bottom: 2px solid rgba(210, 105, 30, 0.3);
}

.gbd1-section-title {
  font-size: 2.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--gbd1-space-sm);
}

.gbd1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gbd1-space-sm);
}

.gbd1-game-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--gbd1-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(13, 19, 33, 0.8);
  border: 1px solid rgba(210, 105, 30, 0.2);
}

.gbd1-game-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--gbd1-shadow-glow);
  border-color: var(--gbd1-primary);
  z-index: 10;
}

.gbd1-game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gbd1-game-card:hover .gbd1-game-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.gbd1-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gbd1-space-xs);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--gbd1-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ===== Content Sections ===== */
.gbd1-section {
  margin: var(--gbd1-space-xl) 0;
  padding: var(--gbd1-space-lg);
  background: rgba(210, 105, 30, 0.05);
  border-radius: var(--gbd1-radius-md);
  border: 1px solid rgba(210, 105, 30, 0.2);
}

.gbd1-card {
  background: rgba(13, 19, 33, 0.8);
  border-radius: var(--gbd1-radius-md);
  padding: var(--gbd1-space-lg);
  margin-bottom: var(--gbd1-space-md);
  border: 1px solid rgba(210, 105, 30, 0.2);
  transition: all 0.3s ease;
}

.gbd1-card:hover {
  border-color: var(--gbd1-primary);
  box-shadow: var(--gbd1-shadow);
}

/* ===== Footer ===== */
.gbd1-footer {
  background: var(--gbd1-gradient-dark);
  border-top: 2px solid rgba(210, 105, 30, 0.3);
  padding: var(--gbd1-space-xl) 0 10rem;
  margin-top: var(--gbd1-space-xl);
}

.gbd1-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--gbd1-space-md);
}

.gbd1-footer-section {
  margin-bottom: var(--gbd1-space-lg);
}

.gbd1-footer-title {
  font-size: 1.8rem;
  margin-bottom: var(--gbd1-space-md);
  color: var(--gbd1-primary);
}

.gbd1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gbd1-space-md);
  list-style: none;
}

.gbd1-footer-links a {
  color: var(--gbd1-secondary);
  font-size: 1.3rem;
}

.gbd1-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gbd1-space-sm);
  margin: var(--gbd1-space-md) 0;
}

.gbd1-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.gbd1-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.gbd1-copyright {
  text-align: center;
  padding-top: var(--gbd1-space-lg);
  border-top: 1px solid rgba(210, 105, 30, 0.2);
  font-size: 1.2rem;
  color: rgba(232, 245, 232, 0.6);
}

/* ===== Bottom Navigation ===== */
.gbd1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 19, 33, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--gbd1-primary);
  z-index: var(--gbd1-z-bottom-nav);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.gbd1-bottom-nav-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--gbd1-space-sm) 0;
}

.gbd1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--gbd1-light);
  transition: all 0.3s ease;
  position: relative;
}

.gbd1-nav-item:hover,
.gbd1-bottom-active {
  color: var(--gbd1-primary);
  transform: translateY(-3px);
}

.gbd1-nav-icon {
  font-size: 2.4rem;
  transition: all 0.3s ease;
}

.gbd1-nav-item:hover .gbd1-nav-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--gbd1-primary));
}

.gbd1-nav-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gbd1-bottom-active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: var(--gbd1-primary);
  box-shadow: 0 0 10px var(--gbd1-primary);
}

/* ===== Responsive Design ===== */
@media (min-width: 431px) {
  .gbd1-container {
    max-width: 800px;
  }

  .gbd1-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 769px) {
  .gbd1-bottom-nav {
    display: none;
  }

  .gbd1-main {
    padding-bottom: var(--gbd1-space-xl);
  }

  .gbd1-wrapper {
    padding-bottom: 0;
  }

  .gbd1-header-actions {
    gap: var(--gbd1-space-md);
  }

  .gbd1-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ===== Utility Classes ===== */
.gbd1-text-center {
  text-align: center;
}

.gbd1-text-gradient {
  background: var(--gbd1-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gbd1-glow {
  box-shadow: var(--gbd1-shadow-glow);
}

.gbd1-hidden {
  display: none;
}

/* ===== Animations ===== */
@keyframes gbd1-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gbd1-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.gbd1-animate-fade {
  animation: gbd1-fadeIn 0.6s ease forwards;
}

.gbd1-animate-pulse {
  animation: gbd1-pulse 2s ease-in-out infinite;
}
