/* jljl9.my Theme CSS - Mobile-First Design */
/* All classes prefixed with 'gfc1-' to avoid conflicts */

/* CSS Variables */
:root {
  --gfc1-primary: #0F0F23;
  --gfc1-secondary: #CC99FF;
  --gfc1-accent: #EE82EE;
  --gfc1-bg: #0F0F23;
  --gfc1-text: #FFFFFF;
  --gfc1-text-muted: #CC99FF;
  --gfc1-border: #333366;
  --gfc1-shadow: rgba(204, 153, 255, 0.1);
  --gfc1-gradient: linear-gradient(135deg, #CC99FF, #EE82EE);
  --gfc1-gradient-dark: linear-gradient(135deg, #0F0F23, #1F1F3F);
  --gfc1-transition: all 0.3s ease;
  --gfc1-border-radius: 0.8rem;
  --gfc1-spacing: 1.6rem;
  --gfc1-header-height: 6.4rem;
  --gfc1-bottom-nav-height: 6.4rem;
}

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

html {
  font-size: 62.5%; /* 10px base */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gfc1-text);
  background: var(--gfc1-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Utilities */
.gfc1-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.gfc1-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--gfc1-header-height);
  padding-bottom: var(--gfc1-bottom-nav-height);
}

.gfc1-main {
  flex: 1;
  padding: 2rem 0;
}

/* Header Styles */
.gfc1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gfc1-header-height);
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gfc1-border);
  z-index: 1000;
  transition: var(--gfc1-transition);
}

.gfc1-header-scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: 0 2px 20px var(--gfc1-shadow);
}

.gfc1-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.gfc1-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gfc1-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.gfc1-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
}

.gfc1-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.gfc1-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--gfc1-border-radius);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--gfc1-transition);
  cursor: pointer;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.gfc1-btn-primary {
  background: var(--gfc1-gradient);
  color: var(--gfc1-primary);
  box-shadow: 0 4px 15px rgba(204, 153, 255, 0.3);
}

.gfc1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 153, 255, 0.4);
}

.gfc1-btn-secondary {
  background: transparent;
  color: var(--gfc1-secondary);
  border: 2px solid var(--gfc1-secondary);
}

.gfc1-btn-secondary:hover {
  background: var(--gfc1-secondary);
  color: var(--gfc1-primary);
}

.gfc1-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.gfc1-menu-line {
  width: 100%;
  height: 0.2rem;
  background: var(--gfc1-text);
  transition: var(--gfc1-transition);
  margin: 0.2rem 0;
}

.gfc1-toggle-active .gfc1-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.gfc1-toggle-active .gfc1-menu-line:nth-child(2) {
  opacity: 0;
}

.gfc1-toggle-active .gfc1-menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.gfc1-mobile-menu {
  position: fixed;
  top: var(--gfc1-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gfc1-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.gfc1-menu-active {
  transform: translateX(0);
}

.gfc1-menu-overlay {
  position: fixed;
  top: var(--gfc1-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--gfc1-transition);
  z-index: 998;
}

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

.gfc1-menu-list {
  list-style: none;
  padding: 2rem;
}

.gfc1-menu-item {
  margin-bottom: 1rem;
}

.gfc1-menu-link {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--gfc1-text);
  text-decoration: none;
  border-radius: var(--gfc1-border-radius);
  transition: var(--gfc1-transition);
  font-weight: 500;
}

.gfc1-menu-link:hover {
  background: var(--gfc1-border);
  color: var(--gfc1-secondary);
}

/* Carousel Styles */
.gfc1-carousel {
  position: relative;
  height: 20rem;
  margin: 2rem 0;
  border-radius: var(--gfc1-border-radius);
  overflow: hidden;
}

.gfc1-carousel-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.gfc1-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.gfc1-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--gfc1-border-radius);
}

.gfc1-carousel-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.gfc1-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--gfc1-transition);
}

.gfc1-indicator-active {
  background: var(--gfc1-secondary);
  transform: scale(1.2);
}

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

.gfc1-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  text-align: center;
  background: var(--gfc1-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gfc1-game-category {
  margin-bottom: 3rem;
}

.gfc1-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--gfc1-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.gfc1-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.gfc1-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--gfc1-text);
  border-radius: var(--gfc1-border-radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gfc1-border);
  transition: var(--gfc1-transition);
  cursor: pointer;
  min-height: 4.4rem;
}

.gfc1-game-item:hover,
.gfc1-touch-active {
  transform: translateY(-3px);
  background: rgba(204, 153, 255, 0.1);
  border-color: var(--gfc1-secondary);
  box-shadow: 0 4px 15px var(--gfc1-shadow);
}

.gfc1-game-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
  transition: var(--gfc1-transition);
}

.gfc1-img-loaded {
  opacity: 1;
}

.gfc1-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Sections */
.gfc1-content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--gfc1-border-radius);
  border: 1px solid var(--gfc1-border);
}

.gfc1-content-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--gfc1-secondary);
}

.gfc1-content-text {
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: var(--gfc1-text-muted);
}

.gfc1-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin: 2rem 0;
}

.gfc1-feature-item {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--gfc1-border-radius);
  border: 1px solid var(--gfc1-border);
}

.gfc1-feature-icon {
  font-size: 2.4rem;
  color: var(--gfc1-secondary);
  margin-bottom: 1rem;
}

.gfc1-feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--gfc1-text);
}

.gfc1-feature-desc {
  color: var(--gfc1-text-muted);
  line-height: 1.5;
}

/* FAQ Styles */
.gfc1-faq-section {
  margin: 3rem 0;
}

.gfc1-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--gfc1-border);
  border-radius: var(--gfc1-border-radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.gfc1-faq-question {
  padding: 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--gfc1-text);
  font-size: 1.5rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
  transition: var(--gfc1-transition);
}

.gfc1-faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.gfc1-faq-icon {
  font-size: 1.2rem;
  color: var(--gfc1-secondary);
  transition: var(--gfc1-transition);
}

.gfc1-faq-open .gfc1-faq-icon {
  transform: rotate(180deg);
}

.gfc1-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.gfc1-faq-open .gfc1-faq-content {
  max-height: 50rem;
}

.gfc1-faq-answer {
  padding: 0 1.6rem 1.6rem;
  color: var(--gfc1-text-muted);
  line-height: 1.6;
}

/* Bottom Navigation */
.gfc1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--gfc1-bottom-nav-height);
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gfc1-border);
  z-index: 1000;
}

.gfc1-bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.gfc1-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  transition: var(--gfc1-transition);
}

.gfc1-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gfc1-text-muted);
  width: 100%;
  height: 100%;
  padding: 0.8rem 0.4rem;
  transition: var(--gfc1-transition);
  min-height: 4.4rem;
}

.gfc1-nav-active a,
.gfc1-bottom-nav-item a:hover {
  color: var(--gfc1-secondary);
  transform: scale(1.05);
}

.gfc1-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.gfc1-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer Styles */
.gfc1-footer {
  background: var(--gfc1-gradient-dark);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--gfc1-border);
}

.gfc1-footer-content {
  text-align: center;
}

.gfc1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.gfc1-footer-link {
  color: var(--gfc1-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--gfc1-transition);
}

.gfc1-footer-link:hover {
  color: var(--gfc1-secondary);
}

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

.gfc1-partner-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--gfc1-transition);
  border-radius: 0.4rem;
}

.gfc1-partner-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.gfc1-copyright {
  color: var(--gfc1-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Utility Classes */
.gfc1-text-center { text-align: center; }
.gfc1-text-left { text-align: left; }
.gfc1-text-right { text-align: right; }

.gfc1-mb-1 { margin-bottom: 1rem; }
.gfc1-mb-2 { margin-bottom: 2rem; }
.gfc1-mb-3 { margin-bottom: 3rem; }

.gfc1-mt-1 { margin-top: 1rem; }
.gfc1-mt-2 { margin-top: 2rem; }
.gfc1-mt-3 { margin-top: 3rem; }

.gfc1-p-1 { padding: 1rem; }
.gfc1-p-2 { padding: 2rem; }
.gfc1-p-3 { padding: 3rem; }

.gfc1-hidden { display: none !important; }
.gfc1-visible { display: block !important; }

/* Loading States */
.gfc1-loading {
  opacity: 0.6;
  pointer-events: none;
}

.gfc1-skeleton {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: gfc1-loading 1.5s infinite;
}

@keyframes gfc1-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (min-width: 48rem) {
  .gfc1-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gfc1-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gfc1-carousel {
    height: 24rem;
  }
  
  .gfc1-game-img {
    width: 5.6rem;
    height: 5.6rem;
  }
  
  .gfc1-game-name {
    font-size: 1.2rem;
  }
}

@media (min-width: 64rem) {
  .gfc1-container {
    max-width: 64rem;
  }
  
  .gfc1-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .gfc1-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Print Styles */
@media print {
  .gfc1-header,
  .gfc1-bottom-nav,
  .gfc1-mobile-menu {
    display: none !important;
  }
  
  .gfc1-wrapper {
    padding: 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --gfc1-border: #FFFFFF;
    --gfc1-shadow: rgba(255, 255, 255, 0.3);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}