/**
 * jiliko747.cfd - Theme Stylesheet
 * All classes use ga57- prefix for namespace isolation
 * Color palette: #2C3E50 | #00CED1 | #B2DFDB | #EEEEEE
 */

:root {
  --ga57-primary: #00CED1;
  --ga57-primary-dark: #00A8AB;
  --ga57-secondary: #B2DFDB;
  --ga57-bg: #2C3E50;
  --ga57-bg-dark: #1a252f;
  --ga57-bg-card: #34495E;
  --ga57-text: #EEEEEE;
  --ga57-text-muted: #B0BEC5;
  --ga57-accent: #00E5FF;
  --ga57-border: #3d5266;
  --ga57-gradient: linear-gradient(135deg, #00CED1, #00A8AB);
  --ga57-radius: 10px;
  --ga57-radius-sm: 6px;
  --ga57-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --ga57-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--ga57-bg);
  color: var(--ga57-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ga57-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ga57-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.ga57-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga57-bg-dark);
  border-bottom: 1px solid var(--ga57-border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.ga57-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ga57-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ga57-logo span {
  color: var(--ga57-text);
  font-size: 1.3rem;
  font-weight: 400;
}

.ga57-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ga57-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--ga57-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ga57-btn-register {
  background: var(--ga57-gradient);
  color: var(--ga57-bg-dark);
}

.ga57-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.4);
}

.ga57-btn-login {
  background: transparent;
  color: var(--ga57-primary);
  border: 1.5px solid var(--ga57-primary);
}

.ga57-btn-login:hover {
  background: rgba(0, 206, 209, 0.1);
}

.ga57-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--ga57-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile Menu */
.ga57-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ga57-bg-dark);
  border-bottom: 2px solid var(--ga57-primary);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ga57-mobile-menu.ga57-menu-open {
  max-height: 500px;
  opacity: 1;
}

.ga57-mobile-menu ul {
  list-style: none;
  padding: 8px 0;
}

.ga57-mobile-menu li {
  border-bottom: 1px solid var(--ga57-border);
}

.ga57-mobile-menu li:last-child {
  border-bottom: none;
}

.ga57-mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 1.4rem;
  color: var(--ga57-text);
  transition: background 0.2s ease;
}

.ga57-mobile-menu a:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--ga57-primary);
}

.ga57-menu-group-title {
  padding: 8px 20px 4px;
  font-size: 1.1rem;
  color: var(--ga57-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Main Content */
main {
  padding-top: 56px;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.ga57-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--ga57-radius) var(--ga57-radius);
}

.ga57-carousel-inner {
  position: relative;
  width: 100%;
}

.ga57-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.ga57-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.ga57-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ga57-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
}

.ga57-dot-active {
  background: var(--ga57-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section Titles */
.ga57-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ga57-text);
  margin: 24px 16px 12px;
  padding-left: 12px;
  border-left: 4px solid var(--ga57-primary);
}

.ga57-section-subtitle {
  font-size: 1.3rem;
  color: var(--ga57-text-muted);
  margin: 0 16px 16px;
}

/* Category Tabs */
.ga57-cat-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ga57-cat-tabs::-webkit-scrollbar {
  display: none;
}

.ga57-cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--ga57-bg-card);
  color: var(--ga57-text-muted);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--ga57-border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ga57-cat-tab:hover {
  border-color: var(--ga57-primary);
  color: var(--ga57-primary);
}

.ga57-cat-active {
  background: var(--ga57-gradient);
  color: var(--ga57-bg-dark);
  border-color: transparent;
  font-weight: 600;
}

/* Game Grid */
.ga57-game-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px 12px 20px;
}

@media (min-width: 431px) {
  .ga57-game-section {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ga57-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: var(--ga57-radius-sm);
  background: var(--ga57-bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ga57-game-item:hover {
  background: var(--ga57-border);
  transform: translateY(-2px);
  box-shadow: var(--ga57-shadow-sm);
}

.ga57-game-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  margin-bottom: 4px;
  object-fit: cover;
}

.ga57-game-name {
  font-size: 1rem;
  color: var(--ga57-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Bottom Navigation */
.ga57-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--ga57-bg-dark);
  border-top: 1px solid var(--ga57-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.ga57-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--ga57-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 2px;
  border-radius: 8px;
  padding: 4px 6px;
}

.ga57-bottom-btn:hover,
.ga57-bottom-btn:focus {
  color: var(--ga57-primary);
  background: rgba(0, 206, 209, 0.08);
}

.ga57-bottom-btn .ga57-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.ga57-bottom-btn .ga57-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.ga57-bottom-btn.ga57-active {
  color: var(--ga57-primary);
}

.ga57-bottom-btn.ga57-active .ga57-nav-icon {
  text-shadow: 0 0 8px rgba(0, 206, 209, 0.5);
}

@media (min-width: 769px) {
  .ga57-bottom-nav {
    display: none;
  }
}

/* Desktop Navigation */
.ga57-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .ga57-desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .ga57-hamburger {
    display: none !important;
  }
}

/* Promo Banner */
.ga57-promo-banner {
  margin: 16px;
  padding: 16px;
  background: var(--ga57-gradient);
  border-radius: var(--ga57-radius);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ga57-promo-banner:hover {
  transform: scale(1.02);
}

.ga57-promo-banner h3 {
  font-size: 1.8rem;
  color: var(--ga57-bg-dark);
  margin-bottom: 4px;
}

.ga57-promo-banner p {
  font-size: 1.2rem;
  color: rgba(44, 62, 80, 0.8);
}

/* Footer */
.ga57-footer {
  background: var(--ga57-bg-dark);
  padding: 24px 16px 20px;
  margin-top: 24px;
  border-top: 2px solid var(--ga57-primary);
}

.ga57-footer-brand {
  text-align: center;
  margin-bottom: 20px;
}

.ga57-footer-brand h3 {
  font-size: 2rem;
  color: var(--ga57-primary);
  margin-bottom: 8px;
}

.ga57-footer-brand p {
  font-size: 1.2rem;
  color: var(--ga57-text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

.ga57-footer-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.ga57-footer-btn {
  padding: 8px 14px;
  background: var(--ga57-bg-card);
  color: var(--ga57-primary);
  border: 1px solid var(--ga57-border);
  border-radius: var(--ga57-radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ga57-footer-btn:hover {
  background: var(--ga57-primary);
  color: var(--ga57-bg-dark);
  border-color: var(--ga57-primary);
}

.ga57-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.ga57-footer-links a {
  font-size: 1.2rem;
  color: var(--ga57-text-muted);
  transition: color 0.2s ease;
}

.ga57-footer-links a:hover {
  color: var(--ga57-primary);
}

.ga57-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ga57-text-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ga57-border);
}

/* Content Sections */
.ga57-content-section {
  padding: 16px;
  margin: 0;
}

.ga57-content-section h2 {
  font-size: 1.8rem;
  color: var(--ga57-text);
  margin-bottom: 10px;
}

.ga57-content-section p {
  font-size: 1.3rem;
  color: var(--ga57-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ga57-content-section ul {
  list-style: none;
  padding: 0;
}

.ga57-content-section li {
  font-size: 1.3rem;
  color: var(--ga57-text-muted);
  padding: 6px 0 6px 18px;
  position: relative;
  line-height: 1.5;
}

.ga57-content-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--ga57-primary);
  border-radius: 50%;
}

/* Help Pages */
.ga57-help-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}

.ga57-help-container h1 {
  font-size: 2.2rem;
  color: var(--ga57-primary);
  margin-bottom: 16px;
  padding-top: 12px;
}

.ga57-help-container h2 {
  font-size: 1.8rem;
  color: var(--ga57-text);
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--ga57-primary);
}

.ga57-help-container p {
  font-size: 1.35rem;
  color: var(--ga57-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ga57-help-container ol,
.ga57-help-container ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.ga57-help-container li {
  font-size: 1.35rem;
  color: var(--ga57-text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.ga47-cta-block {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background: var(--ga57-bg-card);
  border-radius: var(--ga57-radius);
  border: 1px solid var(--ga57-border);
}

.ga47-cta-block p {
  font-size: 1.4rem;
  color: var(--ga57-text);
  margin-bottom: 12px;
}

.ga57-cta-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--ga57-gradient);
  color: var(--ga57-bg-dark);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--ga57-radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ga57-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.4);
}

/* FAQ Accordion */
.ga57-faq-item {
  background: var(--ga57-bg-card);
  border-radius: var(--ga57-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--ga57-border);
}

.ga57-faq-question {
  padding: 14px 16px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ga57-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.ga57-faq-question:hover {
  background: rgba(0, 206, 209, 0.05);
}

.ga57-faq-answer {
  padding: 0 16px 14px;
  font-size: 1.3rem;
  color: var(--ga57-text-muted);
  line-height: 1.6;
}

/* Utility */
.ga57-text-primary {
  color: var(--ga57-primary);
}

.ga57-mt-8 {
  margin-top: 8px;
}

.ga57-mb-16 {
  margin-bottom: 16px;
}

.ga57-text-center {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 430px) {
  .ga57-logo {
    font-size: 1.7rem;
  }
  .ga57-btn {
    padding: 7px 12px;
    font-size: 1.2rem;
  }
  .ga57-section-title {
    font-size: 1.7rem;
  }
  .ga57-game-item img {
    width: 46px;
    height: 46px;
  }
  .ga57-game-name {
    font-size: 0.95rem;
  }
}
