/* JL99 App Layout Styles - Monochrome with Gold Accent Theme */
/* Mobile-first responsive design with gbbd- prefix */

/* CSS Reset and Base Styles */
* {
  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.4rem;
  line-height: 1.5;
  background-color: #0C0C0C;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.gbbd-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* Header Styles */
.gbbd-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #0C0C0C 0%, #1A1A1A 100%);
  border-bottom: 1px solid #BDB76B;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 2px 10px rgba(189, 183, 107, 0.1);
}

.gbbd-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.8rem;
}

.gbbd-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
  background: linear-gradient(45deg, #BDB76B, #FFFFFF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.gbbd-header-actions {
  display: flex;
  gap: 0.8rem;
}

.gbbd-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.gbbd-btn-register {
  background: linear-gradient(45deg, #BDB76B, #FFFFFF);
  color: #0C0C0C;
}

.gbbd-btn-register:hover {
  background: linear-gradient(45deg, #FFFFFF, #BDB76B);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(189, 183, 107, 0.3);
}

.gbbd-btn-login {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #BDB76B;
}

.gbbd-btn-login:hover {
  background: #BDB76B;
  color: #0C0C0C;
}

.gbbd-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.gbbd-hamburger span {
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.gbbd-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #1A1A1A 0%, #0C0C0C 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.gbbd-mobile-menu.gbbd-menu-open {
  right: 0;
}

.gbbd-menu-header {
  padding: 2rem;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gbbd-menu-close {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gbbd-menu-nav {
  padding: 1.5rem 0;
}

.gbbd-menu-item {
  display: block;
  padding: 1.2rem 2rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.gbbd-menu-item:hover {
  background: rgba(189, 183, 107, 0.1);
  border-left-color: #BDB76B;
  color: #BDB76B;
}

.gbbd-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gbbd-menu-overlay.gbbd-overlay-show {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
main {
  margin-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 60px);
}

/* Carousel */
.gbbd-carousel-container {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1A1A1A;
}

.gbbd-carousel-slide {
  display: block;
  width: 100%;
}

.gbbd-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.gbbd-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.gbbd-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.gbbd-carousel-dot.gbbd-active {
  background: #BDB76B;
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.gbbd-section {
  margin: 2.5rem 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(189, 183, 107, 0.1);
}

.gbbd-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.gbbd-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #BDB76B, #FFFFFF);
}

/* Category Tabs */
.gbbd-category-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.gbbd-category-tabs::-webkit-scrollbar {
  height: 4px;
}

.gbbd-category-tabs::-webkit-scrollbar-track {
  background: #1A1A1A;
}

.gbbd-category-tabs::-webkit-scrollbar-thumb {
  background: #BDB76B;
  border-radius: 2px;
}

.gbbd-category-tab {
  padding: 0.8rem 1.5rem;
  background: rgba(189, 183, 107, 0.1);
  border: 1px solid rgba(189, 183, 107, 0.3);
  border-radius: 6px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
  font-size: 1.3rem;
}

.gbbd-category-tab:hover {
  background: rgba(189, 183, 107, 0.2);
  border-color: #BDB76B;
}

.gbbd-category-tab.gbbd-active {
  background: #BDB76B;
  color: #0C0C0C;
  border-color: #BDB76B;
}

/* Game Grid */
.gbbd-category-content {
  display: none;
}

.gbbd-category-content.gbbd-active {
  display: block;
}

.gbbd-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gbbd-game-item {
  text-align: center;
  transition: all 0.3s ease;
}

.gbbd-game-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.gbbd-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  padding: 8px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #BDB76B;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 183, 107, 0.2);
}

.gbbd-game-link:hover .gbbd-game-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #BDB76B, #FFFFFF);
  color: #0C0C0C;
  box-shadow: 0 4px 12px rgba(189, 183, 107, 0.3);
}

.gbbd-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.5rem;
}

/* Feature Cards */
.gbbd-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gbbd-feature-card {
  background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(189, 183, 107, 0.2);
  transition: all 0.3s ease;
}

.gbbd-feature-card:hover {
  border-color: #BDB76B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 183, 107, 0.1);
}

.gbbd-feature-icon {
  font-size: 2.4rem;
  color: #BDB76B;
  margin-bottom: 1rem;
  text-align: center;
}

.gbbd-feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.gbbd-feature-description {
  font-size: 1.3rem;
  color: #CCCCCC;
  line-height: 1.5;
}

/* Partner Section */
.gbbd-partners {
  margin: 2.5rem 0;
}

.gbbd-partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-items: center;
}

.gbbd-partner-item {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 183, 107, 0.1);
}

.gbbd-partner-item:hover {
  background: rgba(189, 183, 107, 0.1);
  border-color: #BDB76B;
}

.gbbd-partner-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gbbd-partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Bottom Navigation */
.gbbd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 64px;
  background: linear-gradient(180deg, #1A1A1A 0%, #0C0C0C 100%);
  border-top: 1px solid #BDB76B;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(189, 183, 107, 0.1);
}

.gbbd-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #CCCCCC;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  cursor: pointer;
}

.gbbd-bottom-nav-item:hover,
.gbbd-bottom-nav-item.gbbd-active {
  color: #BDB76B;
}

.gbbd-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.gbbd-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.gbbd-footer {
  background: linear-gradient(180deg, #1A1A1A 0%, #0C0C0C 100%);
  padding: 3rem 0 2rem;
  border-top: 1px solid #BDB76B;
  margin-top: 4rem;
}

.gbbd-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.gbbd-footer-logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: #BDB76B;
  margin-bottom: 1rem;
}

.gbbd-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gbbd-footer-link {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.3rem;
}

.gbbd-footer-link:hover {
  color: #BDB76B;
}

.gbbd-footer-copyright {
  color: #888888;
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(189, 183, 107, 0.1);
}

/* Loading State */
.gbbd-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Design */
@media (min-width: 769px) {
  .gbbd-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .gbbd-hamburger {
    display: none;
  }

  .gbbd-header-actions {
    display: flex;
  }

  .gbbd-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gbbd-partner-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media (max-width: 768px) {
  .gbbd-desktop-only {
    display: none;
  }

  .gbbd-section {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .gbbd-section-title {
    font-size: 2rem;
  }

  .gbbd-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .gbbd-game-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  .gbbd-game-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gbbd-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gbbd-feature-grid {
    gap: 1rem;
  }

  .gbbd-section {
    padding: 1.2rem;
  }
}

/* Utility Classes */
.gbbd-text-center {
  text-align: center;
}

.gbbd-mb-1 {
  margin-bottom: 1rem;
}

.gbbd-mb-2 {
  margin-bottom: 2rem;
}

.gbbd-mt-1 {
  margin-top: 1rem;
}

.gbbd-mt-2 {
  margin-top: 2rem;
}

.gbbd-hidden {
  display: none;
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gbbd-fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.gbbd-pulse {
  animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
  .gbbd-header,
  .gbbd-bottom-nav,
  .gbbd-mobile-menu,
  .gbbd-menu-overlay {
    display: none;
  }

  main {
    margin-top: 0;
    padding-bottom: 0;
  }

  .gbbd-section {
    break-inside: avoid;
  }
}