/**
 * JILBB Theme CSS
 * Version: 1.0.0
 * Color Palette: Gray (#808080), Very Dark Gray (#141414), Slate Gray (#708090), Light Slate Gray (#778899)
 */

:root {
  --g24b-primary: #808080;
  --g24b-secondary: #141414;
  --g24b-accent1: #708090;
  --g24b-accent2: #778899;
  --g24b-text: #e0e0e0;
  --g24b-text-muted: #a0a0a0;
  --g24b-bg: #0a0a0a;
  --g24b-bg-card: #1a1a1a;
  --g24b-bg-hover: #252525;
  --g24b-border: #2a2a2a;
  --g24b-gradient: linear-gradient(135deg, var(--g24b-primary) 0%, var(--g24b-accent1) 100%);
  --g24b-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

* {
  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, Oxygen, Ubuntu, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g24b-text);
  background-color: var(--g24b-bg);
  min-height: 100vh;
}

.g24b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.g24b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g24b-secondary);
  border-bottom: 1px solid var(--g24b-border);
  z-index: 1000;
  box-shadow: var(--g24b-shadow);
}

.g24b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g24b-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g24b-text);
}

.g24b-logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

.g24b-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g24b-primary);
}

.g24b-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.g24b-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.g24b-btn-primary {
  background: var(--g24b-gradient);
  color: #fff;
}

.g24b-btn-secondary {
  background-color: var(--g24b-accent1);
  color: #fff;
}

.g24b-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 128, 144, 0.4);
}

.g24b-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--g24b-text);
}

/* Mobile Menu */
.g24b-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--g24b-secondary);
  border-bottom: 1px solid var(--g24b-border);
  padding: 1rem;
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

.g24b-mobile-menu.g24b-menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.g24b-menu-link {
  display: block;
  padding: 1rem;
  color: var(--g24b-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g24b-border);
  font-size: 1.4rem;
  transition: background-color 0.2s ease;
}

.g24b-menu-link:hover {
  background-color: var(--g24b-bg-hover);
}

.g24b-menu-link:last-child {
  border-bottom: none;
}

/* Main Content */
.g24b-main {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .g24b-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.g24b-carousel {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/9;
}

.g24b-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g24b-carousel-slide.g24b-slide-active {
  opacity: 1;
}

.g24b-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g24b-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g24b-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g24b-carousel-dot.g24b-dot-active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Sections */
.g24b-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--g24b-bg-card);
  border-radius: 12px;
  border: 1px solid var(--g24b-border);
}

.g24b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g24b-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.g24b-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g24b-accent2);
  margin: 1.5rem 0 1rem;
}

/* Game Grid */
.g24b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g24b-game-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.g24b-game-item:hover {
  transform: scale(1.05);
}

.g24b-game-icon {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--g24b-border);
}

.g24b-game-name {
  font-size: 1rem;
  color: var(--g24b-text);
  text-align: center;
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.g24b-card {
  background-color: var(--g24b-bg-card);
  border: 1px solid var(--g24b-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.g24b-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g24b-accent1);
  margin-bottom: 1rem;
}

.g24b-card-content {
  font-size: 1.4rem;
  color: var(--g24b-text-muted);
  line-height: 1.6;
}

.g24b-card-content a {
  color: var(--g24b-accent2);
  text-decoration: none;
  font-weight: 600;
}

.g24b-card-content a:hover {
  text-decoration: underline;
}

/* Bottom Navigation */
.g24b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--g24b-secondary);
  border-top: 1px solid var(--g24b-border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .g24b-bottom-nav {
    display: none;
  }
}

.g24b-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--g24b-text-muted);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.g24b-nav-item:hover,
.g24b-nav-item.g24b-nav-active {
  color: var(--g24b-primary);
}

.g24b-nav-item.g24b-nav-active {
  background-color: var(--g24b-bg-hover);
  border-radius: 8px;
}

.g24b-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.g24b-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.g24b-footer {
  background-color: var(--g24b-secondary);
  border-top: 1px solid var(--g24b-border);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.g24b-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g24b-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g24b-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.g24b-footer-text {
  font-size: 1.4rem;
  color: var(--g24b-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.g24b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g24b-footer-link {
  font-size: 1.2rem;
  color: var(--g24b-accent2);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: var(--g24b-bg-card);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.g24b-footer-link:hover {
  background-color: var(--g24b-accent1);
  color: #fff;
}

.g24b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g24b-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g24b-partner-logo:hover {
  opacity: 1;
}

.g24b-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g24b-text-muted);
  border-top: 1px solid var(--g24b-border);
  padding-top: 1.5rem;
}

/* Utility Classes */
.g24b-text-center {
  text-align: center;
}

.g24b-mt-1 {
  margin-top: 1rem;
}

.g24b-mb-1 {
  margin-bottom: 1rem;
}

.g24b-mb-2 {
  margin-bottom: 2rem;
}

.g24b-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.g24b-promo-link {
  color: var(--g24b-accent2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.g24b-promo-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 769px) {
  .g24b-container {
    max-width: 1200px;
  }

  .g24b-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .g24b-header-inner {
    max-width: 1200px;
  }

  .g24b-mobile-menu {
    max-width: 1200px;
  }
}
