/**
 * jilibibi Layout Styles
 * All classes use g46b prefix for namespace isolation
 * Mobile-first responsive design with max-width 430px
 */

/* CSS Variables */
:root {
  --g46b-primary: #2E4057;
  --g46b-secondary: #FFCC02;
  --g46b-accent1: #FF8000;
  --g46b-accent2: #00FF7F;
  --g46b-accent3: #FFEB3B;
  --g46b-dark: #1a1a2e;
  --g46b-darker: #0f0f1a;
  --g46b-light: #f0f0f0;
  --g46b-white: #ffffff;
  --g46b-text: #ffffff;
  --g46b-text-dark: #2E4057;
  --g46b-border: #3d3d5c;
  --g46b-shadow: rgba(0, 0, 0, 0.3);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g46b-text);
  background: linear-gradient(135deg, var(--g46b-darker) 0%, var(--g46b-primary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.g46b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Header Styles */
.g46b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g46b-primary) 0%, var(--g46b-dark) 100%);
  box-shadow: 0 2px 10px var(--g46b-shadow);
  padding: 0.8rem 0;
}

.g46b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g46b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g46b-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.g46b-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.g46b-logo-text {
  color: var(--g46b-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g46b-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.g46b-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.g46b-btn-register {
  background: linear-gradient(135deg, var(--g46b-accent1) 0%, var(--g46b-accent3) 100%);
  color: var(--g46b-text-dark);
  box-shadow: 0 2px 8px rgba(255, 128, 0, 0.4);
}

.g46b-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 128, 0, 0.6);
}

.g46b-btn-login {
  background: transparent;
  color: var(--g46b-secondary);
  border: 2px solid var(--g46b-secondary);
}

.g46b-btn-login:hover {
  background: var(--g46b-secondary);
  color: var(--g46b-text-dark);
}

/* Mobile Menu */
.g46b-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

.g46b-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--g46b-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g46b-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--g46b-primary) 0%, var(--g46b-darker) 100%);
  z-index: 9999;
  padding: 2rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.g46b-mobile-menu.g46b-menu-open {
  transform: translateX(0);
}

.g46b-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.g46b-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--g46b-text);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--g46b-accent2);
}

.g46b-menu-link:hover {
  background: rgba(0, 255, 127, 0.1);
  padding-left: 2rem;
}

.g46b-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--g46b-accent1);
  color: var(--g46b-text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
main {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.g46b-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px var(--g46b-shadow);
}

.g46b-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g46b-carousel-slide.g46b-active {
  opacity: 1;
}

.g46b-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Sections */
.g46b-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.g46b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g46b-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g46b-section-title h2 {
  font-size: inherit;
  color: inherit;
}

/* Game Grid */
.g46b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g46b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.g46b-game-item:hover {
  transform: scale(1.05);
}

.g46b-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--g46b-shadow);
  transition: box-shadow 0.3s ease;
}

.g46b-game-item:hover .g46b-game-icon {
  box-shadow: 0 4px 16px rgba(255, 204, 2, 0.6);
}

.g46b-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g46b-game-name {
  font-size: 1.1rem;
  color: var(--g46b-text);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Category Title */
.g46b-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g46b-accent2);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g46b-category-title::before {
  content: '';
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, var(--g46b-accent1) 0%, var(--g46b-accent3) 100%);
  border-radius: 2px;
}

/* Cards */
.g46b-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.g46b-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--g46b-accent2);
  transform: translateY(-2px);
}

.g46b-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g46b-secondary);
  margin-bottom: 1rem;
}

.g46b-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g46b-light);
}

.g46b-card-content p {
  margin-bottom: 1rem;
}

/* Promotional Links */
.g46b-promo-link {
  color: var(--g46b-accent2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.g46b-promo-link:hover {
  color: var(--g46b-accent3);
  text-decoration: underline;
}

/* Button CTA */
.g46b-cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g46b-accent1) 0%, var(--g46b-accent3) 100%);
  color: var(--g46b-text-dark);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
  transition: all 0.3s ease;
  margin: 1rem 0;
  text-align: center;
}

.g46b-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 128, 0, 0.6);
}

/* Footer */
.g46b-footer {
  background: linear-gradient(180deg, var(--g46b-dark) 0%, var(--g46b-darker) 100%);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.g46b-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g46b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.g46b-footer-link {
  color: var(--g46b-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.g46b-footer-link:hover {
  background: rgba(255, 204, 2, 0.1);
  color: var(--g46b-accent3);
}

.g46b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g46b-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g46b-partner-logo:hover {
  opacity: 1;
}

.g46b-copyright {
  text-align: center;
  color: var(--g46b-light);
  font-size: 1.2rem;
  margin-top: 2rem;
  opacity: 0.7;
}

/* Bottom Navigation (Mobile) */
.g46b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g46b-primary) 0%, var(--g46b-darker) 100%);
  box-shadow: 0 -2px 10px var(--g46b-shadow);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.g46b-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g46b-text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem;
}

.g46b-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.g46b-nav-btn.active {
  color: var(--g46b-secondary);
}

.g46b-nav-btn i,
.g46b-nav-btn svg {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.g46b-nav-btn span {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g46b-bottom-nav {
    display: none;
  }
}

/* H1 Title */
.g46b-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g46b-secondary);
  text-align: center;
  margin: 2rem 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Text */
@media (max-width: 380px) {
  .g46b-main-title {
    font-size: 1.8rem;
  }

  .g46b-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .g46b-game-name {
    font-size: 1rem;
  }
}

/* Utilities */
.g46b-text-center {
  text-align: center;
}

.g46b-mt-1 {
  margin-top: 1rem;
}

.g46b-mt-2 {
  margin-top: 2rem;
}

.g46b-mb-1 {
  margin-bottom: 1rem;
}

.g46b-mb-2 {
  margin-bottom: 2rem;
}

/* Animations */
@keyframes g46b-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g46b-fade-in {
  animation: g46b-fadeIn 0.5s ease forwards;
}

/* FAQ Styles */
.g46b-faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.g46b-faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--g46b-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.g46b-faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.g46b-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--g46b-light);
  line-height: 1.6;
  display: none;
}

.g46b-faq-item.active .g46b-faq-answer {
  display: block;
}

/* List Styles */
.g46b-list {
  list-style: none;
  padding: 0;
}

.g46b-list li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--g46b-accent2);
  transition: all 0.3s ease;
}

.g46b-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}
