/**
 * BL777 Main Stylesheet
 * All classes use prefix: g0a1-
 * Mobile-first responsive design
 * Color palette: #D3D3D3 (light gray text), #333333 (dark background), #FFEBCD (blanched almond accent)
 */

/* CSS Variables */
:root {
  --g0a1-primary: #FFEBCD;
  --g0a1-bg-dark: #333333;
  --g0a1-text-light: #D3D3D3;
  --g0a1-accent: #FFD700;
  --g0a1-border: #555555;
  --g0a1-hover: #444444;
  --g0a1-footer-bg: #222222;
  --g0a1-header-height: 56px;
  --g0a1-bottom-nav-height: 64px;
}

/* Root font size for rem calculations */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g0a1-bg-dark);
  color: var(--g0a1-text-light);
  font-size: 1.4rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}

/* Header Styles */
.g0a1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g0a1-header-height);
  background-color: var(--g0a1-bg-dark);
  border-bottom: 2px solid var(--g0a1-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.g0a1-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g0a1-primary);
  font-weight: 700;
  font-size: 1.6rem;
  flex: 1;
}

.g0a1-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.g0a1-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.g0a1-header-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.g0a1-header-btn.register {
  background-color: var(--g0a1-primary);
  color: var(--g0a1-bg-dark);
  min-width: 60px;
}

.g0a1-header-btn.register:hover {
  background-color: var(--g0a1-accent);
  transform: scale(1.05);
}

.g0a1-header-btn.login {
  background-color: var(--g0a1-border);
  color: var(--g0a1-text-light);
  min-width: 60px;
}

.g0a1-header-btn.login:hover {
  background-color: var(--g0a1-hover);
  color: var(--g0a1-primary);
}

/* Hamburger Menu */
.g0a1-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
  margin-left: 0.8rem;
}

.g0a1-hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--g0a1-primary);
  transition: all 0.3s ease;
  display: block;
}

.g0a1-hamburger.g0a1-active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.g0a1-hamburger.g0a1-active span:nth-child(2) {
  opacity: 0;
}

.g0a1-hamburger.g0a1-active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Menu */
#proa15-mobile-menu {
  position: fixed;
  top: var(--g0a1-header-height);
  left: 0;
  right: 0;
  background-color: var(--g0a1-hover);
  max-height: calc(100vh - var(--g0a1-header-height));
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  border-bottom: 1px solid var(--g0a1-primary);
}

#proa15-mobile-menu.g0a1-menu-open {
  transform: translateY(0);
}

.g0a1-mobile-menu-item {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--g0a1-border);
  text-decoration: none;
  color: var(--g0a1-text-light);
  display: block;
  transition: all 0.2s ease;
  font-size: 1.3rem;
}

.g0a1-mobile-menu-item:hover {
  background-color: var(--g0a1-bg-dark);
  color: var(--g0a1-primary);
  padding-left: 2rem;
}

.g0a1-mobile-menu-item.active {
  color: var(--g0a1-accent);
  background-color: rgba(255, 235, 205, 0.1);
}

/* Main Content */
main {
  margin-top: var(--g0a1-header-height);
  min-height: calc(100vh - var(--g0a1-header-height));
  padding-bottom: var(--g0a1-bottom-nav-height);
}

/* Container */
.g0a1-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 1.6rem;
  width: 100%;
}

.g0a1-wrapper {
  background-color: var(--g0a1-bg-dark);
}

/* Section Styles */
section {
  margin: 2rem 0;
}

h1, h2, h3 {
  color: var(--g0a1-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  color: var(--g0a1-text-light);
  margin-bottom: 1rem;
  line-height: 1.6rem;
}

/* Carousel Styles */
.g0a1-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--g0a1-hover);
}

.g0a1-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.g0a1-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g0a1-carousel-slide.g0a1-active {
  opacity: 1;
  z-index: 10;
}

.g0a1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.g0a1-carousel-prev,
.g0a1-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 235, 205, 0.7);
  color: var(--g0a1-bg-dark);
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 20;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.g0a1-carousel-prev {
  left: 0.8rem;
}

.g0a1-carousel-next {
  right: 0.8rem;
}

.g0a1-carousel-prev:hover,
.g0a1-carousel-next:hover {
  background-color: var(--g0a1-primary);
}

/* Button Styles */
.g0a1-btn {
  padding: 1rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g0a1-btn-primary {
  background-color: var(--g0a1-primary);
  color: var(--g0a1-bg-dark);
}

.g0a1-btn-primary:hover {
  background-color: var(--g0a1-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 235, 205, 0.3);
}

.g0a1-btn-secondary {
  background-color: var(--g0a1-border);
  color: var(--g0a1-text-light);
}

.g0a1-btn-secondary:hover {
  background-color: var(--g0a1-hover);
  color: var(--g0a1-primary);
}

/* Game List */
.g0a1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.g0a1-game-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.8rem;
  border-radius: 8px;
}

.g0a1-game-item:hover {
  background-color: var(--g0a1-hover);
  transform: scale(1.05);
}

.g0a1-game-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.g0a1-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--g0a1-text-light);
  line-height: 1.2rem;
}

.g0a1-game-item:hover .g0a1-game-name {
  color: var(--g0a1-primary);
}

/* Category Section */
.g0a1-category-section {
  margin: 2rem 0;
}

.g0a1-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g0a1-primary);
  margin: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--g0a1-primary);
  padding-bottom: 0.8rem;
}

/* Content Modules */
.g0a1-module {
  background-color: var(--g0a1-hover);
  border: 1px solid var(--g0a1-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.g0a1-module h3 {
  margin-top: 0;
}

.g0a1-module p {
  margin-bottom: 0.8rem;
}

.g0a1-module-list {
  list-style: none;
  padding-left: 0;
}

.g0a1-module-list li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  color: var(--g0a1-text-light);
}

.g0a1-module-list li:before {
  content: '►';
  position: absolute;
  left: 0;
  color: var(--g0a1-primary);
  font-weight: 700;
}

/* Links in content */
.g0a1-content-link {
  color: var(--g0a1-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.g0a1-content-link:hover {
  color: var(--g0a1-accent);
  text-decoration: underline;
}

/* Footer */
.g0a1-footer {
  background-color: var(--g0a1-footer-bg);
  border-top: 2px solid var(--g0a1-primary);
  padding: 2rem 1.6rem;
  margin-top: 3rem;
  color: var(--g0a1-text-light);
  font-size: 1.2rem;
}

.g0a1-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g0a1-footer-section {
  margin-bottom: 1.5rem;
}

.g0a1-footer-title {
  color: var(--g0a1-primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.g0a1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.g0a1-footer-link {
  color: var(--g0a1-text-light);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-right: 1px solid var(--g0a1-border);
  transition: all 0.3s ease;
}

.g0a1-footer-link:last-child {
  border-right: none;
}

.g0a1-footer-link:hover {
  color: var(--g0a1-primary);
}

.g0a1-footer-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.g0a1-partner-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.g0a1-partner-logo:hover {
  opacity: 1;
}

.g0a1-footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g0a1-border);
  font-size: 1.1rem;
  color: rgba(211, 211, 211, 0.7);
}

/* Bottom Navigation */
.g0a1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--g0a1-bg-dark);
  border-top: 2px solid var(--g0a1-primary);
  height: var(--g0a1-bottom-nav-height);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.g0a1-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--g0a1-text-light);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.8rem;
  transition: all 0.3s ease;
  min-height: 64px;
  font-size: 1rem;
  font-weight: 600;
}

.g0a1-bottom-nav-btn:hover {
  color: var(--g0a1-primary);
  transform: scale(1.1);
}

.g0a1-bottom-nav-btn.g0a1-active {
  color: var(--g0a1-accent);
  background-color: rgba(255, 235, 205, 0.1);
}

.g0a1-bottom-nav-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g0a1-bottom-nav-label {
  font-size: 1.1rem;
  text-align: center;
  max-width: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 1.3rem;
  }

  .g0a1-header {
    padding: 0 0.8rem;
  }

  .g0a1-header-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }

  .g0a1-container {
    padding: 1.2rem 0.8rem;
  }

  .g0a1-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .g0a1-carousel {
    height: 160px;
  }

  main {
    padding-bottom: calc(var(--g0a1-bottom-nav-height) + 1rem);
  }
}

@media (max-width: 430px) {
  html {
    font-size: 60%;
  }

  .g0a1-header {
    padding: 0 0.6rem;
  }

  .g0a1-header-logo {
    gap: 0.6rem;
  }

  .g0a1-header-btn {
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
    min-width: 50px;
  }

  .g0a1-container {
    padding: 1rem 0.6rem;
  }

  .g0a1-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .g0a1-game-item {
    padding: 0.6rem;
  }

  .g0a1-carousel {
    height: 140px;
    margin: 1rem 0;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .g0a1-module {
    padding: 1.2rem;
    margin: 1.2rem 0;
  }

  .g0a1-footer {
    padding: 1.5rem 0.8rem;
  }

  .g0a1-footer-partners {
    grid-template-columns: repeat(4, 1fr);
  }

  .g0a1-bottom-nav {
    height: 60px;
  }

  .g0a1-bottom-nav-icon {
    font-size: 1.6rem;
  }

  .g0a1-bottom-nav-label {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .g0a1-header,
  .g0a1-bottom-nav,
  .g0a1-hamburger {
    display: none;
  }

  main {
    margin-top: 0;
    padding-bottom: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
  /* Styles already optimized for dark mode */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .g0a1-btn:active,
  .g0a1-content-link:active {
    transform: scale(0.98);
  }
}
