/* jljl13 Layout Styles */
/* Mobile-first responsive design with unique prefixes */

:root {
  --g635-primary: #DEB887;
  --g635-bg: #3A3A3A;
  --g635-text: #DEB887;
  --g635-text-light: rgba(222, 184, 135, 0.8);
  --g635-accent: #D2B48C;
  --g635-border: rgba(222, 184, 135, 0.3);
  --g635-shadow: rgba(222, 184, 135, 0.2);
  --g635-gradient: linear-gradient(135deg, #DEB887, #D2B48C);
  --g635-dark: #2A2A2A;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g635-bg);
  color: var(--g635-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Container and Layout */
.g635-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.g635-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

.g635-grid {
  display: grid;
  gap: 1rem;
}

.g635-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g635-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Navigation */
.g635-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g635-bg) 0%, var(--g635-dark) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g635-border);
  box-shadow: 0 2px 10px var(--g635-shadow);
}

.g635-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  height: 6rem;
}

.g635-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--g635-primary);
  text-decoration: none;
}

.g635-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.g635-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g635-menu-btn {
  background: none;
  border: none;
  color: var(--g635-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.g635-menu-btn:hover {
  background: var(--g635-primary);
  color: var(--g635-bg);
}

/* Mobile Menu */
.g635-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58, 58, 58, 0.8);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g635-menu-overlay.g635-active {
  opacity: 1;
  visibility: visible;
}

.g635-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 28rem;
  height: calc(100vh - 6rem);
  background: linear-gradient(135deg, var(--g635-bg) 0%, var(--g635-dark) 100%);
  z-index: 1002;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--g635-border);
}

.g635-mobile-menu.g635-active {
  right: 0;
}

.g635-menu-list {
  padding: 2rem 0;
}

.g635-menu-item {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--g635-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g635-border);
  transition: all 0.3s ease;
}

.g635-menu-item:hover {
  background: var(--g635-primary);
  color: var(--g635-bg);
}

/* Buttons */
.g635-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 1rem 2rem;
  background: var(--g635-gradient);
  color: var(--g635-bg);
  text-decoration: none;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--g635-shadow);
}

.g635-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--g635-shadow);
}

.g635-btn.g635-clicked {
  transform: scale(0.95);
}

.g635-btn-sm {
  min-height: 3.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
}

.g635-btn-outline {
  background: transparent;
  color: var(--g635-primary);
  border: 2px solid var(--g635-primary);
}

.g635-btn-outline:hover {
  background: var(--g635-primary);
  color: var(--g635-bg);
}

/* Main Content */
.g635-main {
  margin-top: 6rem;
  padding: 2rem 0;
}

.g635-section {
  margin: 3rem 0;
}

.g635-section-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--g635-primary);
}

.g635-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g635-text);
}

/* Carousel */
.g635-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin: 2rem 0;
}

.g635-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.g635-slide {
  min-width: 100%;
  position: relative;
}

.g635-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  cursor: pointer;
  border-radius: 1rem;
}

/* Game Grid */
.g635-games-section {
  margin: 3rem 0;
}

.g635-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.g635-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--g635-dark) 0%, #4A4A4A 100%);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--g635-border);
}

.g635-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--g635-shadow);
  border-color: var(--g635-primary);
}

.g635-game-item.g635-clicked {
  transform: scale(0.95);
}

.g635-game-item img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
}

.g635-game-item span {
  font-size: 1rem;
  text-align: center;
  color: var(--g635-text-light);
  line-height: 1.2;
}

/* Cards */
.g635-card {
  background: linear-gradient(135deg, var(--g635-dark) 0%, #4A4A4A 100%);
  border: 1px solid var(--g635-border);
  border-radius: 1rem;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px var(--g635-shadow);
}

.g635-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--g635-primary);
}

.g635-card-content {
  color: var(--g635-text-light);
  line-height: 1.6;
}

/* Features */
.g635-features-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.g635-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--g635-dark) 0%, #4A4A4A 100%);
  border-radius: 0.8rem;
  border: 1px solid var(--g635-border);
}

.g635-feature-icon {
  font-size: 2.4rem;
  color: var(--g635-primary);
  flex-shrink: 0;
}

.g635-feature-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--g635-text);
}

.g635-feature-content p {
  color: var(--g635-text-light);
  font-size: 1.3rem;
}

/* FAQ */
.g635-faq-item {
  margin: 1.5rem 0;
  border: 1px solid var(--g635-border);
  border-radius: 0.8rem;
  overflow: hidden;
}

.g635-faq-question {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--g635-dark) 0%, #4A4A4A 100%);
  font-weight: 600;
  color: var(--g635-primary);
  cursor: pointer;
}

.g635-faq-answer {
  padding: 1.5rem;
  color: var(--g635-text-light);
  background: var(--g635-bg);
}

/* Footer */
.g635-footer {
  background: linear-gradient(135deg, var(--g635-bg) 0%, var(--g635-dark) 100%);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
  border-top: 1px solid var(--g635-border);
}

.g635-footer-content {
  text-align: center;
  color: var(--g635-text-light);
}

.g635-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.g635-footer-links a {
  color: var(--g635-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.g635-footer-links a:hover {
  background: var(--g635-primary);
  color: var(--g635-bg);
}

.g635-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.g635-partners img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.g635-partners img:hover {
  opacity: 1;
}

/* Bottom Navigation */
.g635-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--g635-bg) 0%, var(--g635-dark) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--g635-border);
  box-shadow: 0 -2px 10px var(--g635-shadow);
  height: 6.4rem;
}

.g635-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.g635-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
  text-decoration: none;
  color: var(--g635-text-light);
  transition: all 0.3s ease;
  border-radius: 0.8rem;
  padding: 0.5rem;
}

.g635-bottom-nav-item:hover,
.g635-bottom-nav-item.g635-active {
  color: var(--g635-primary);
  background: rgba(222, 184, 135, 0.1);
}

.g635-bottom-nav-item i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.g635-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

.g635-bottom-nav-item.g635-clicked {
  transform: scale(0.95);
}

/* Responsive Design */
@media (min-width: 376px) {
  .g635-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) {
  .g635-container {
    max-width: 768px;
  }
  
  .g635-mobile-menu {
    position: static;
    right: 0;
    width: auto;
    height: auto;
    background: none;
    border: none;
    overflow: visible;
  }
  
  .g635-menu-overlay {
    display: none;
  }
  
  .g635-menu-btn {
    display: none;
  }
  
  .g635-menu-list {
    display: flex;
    gap: 2rem;
    padding: 0;
  }
  
  .g635-menu-item {
    padding: 1rem;
    border: none;
  }
  
  .g635-bottom-nav {
    display: none;
  }
  
  .g635-wrapper {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.g635-text-center { text-align: center; }
.g635-text-left { text-align: left; }
.g635-text-right { text-align: right; }
.g635-hidden { display: none; }
.g635-visible { display: block; }
.g635-mt-1 { margin-top: 1rem; }
.g635-mt-2 { margin-top: 2rem; }
.g635-mb-1 { margin-bottom: 1rem; }
.g635-mb-2 { margin-bottom: 2rem; }
.g635-p-1 { padding: 1rem; }
.g635-p-2 { padding: 2rem; }