/**
 * jili qq - Core Stylesheet
 * All classes use prefix: gf2c-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --gf2c-primary: #FFB6C1;
  --gf2c-secondary: #FFB3FF;
  --gf2c-bg-dark: #0D1117;
  --gf2c-bg-card: #161B22;
  --gf2c-bg-hover: #21262D;
  --gf2c-text-primary: #E9ECEF;
  --gf2c-text-secondary: #8B949E;
  --gf2c-border: #30363D;
  --gf2c-success: #2EA043;
  --gf2c-warning: #D29922;
  --gf2c-error: #F85149;
  --gf2c-shadow: rgba(0, 0, 0, 0.3);
  --gf2c-gradient: linear-gradient(135deg, #FFB6C1 0%, #FFB3FF 100%);
}

/* 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(--gf2c-text-primary);
  background-color: var(--gf2c-bg-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gf2c-loaded {
  opacity: 1;
}

/* Container */
.gf2c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gf2c-wrapper {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* Header */
.gf2c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--gf2c-bg-dark);
  border-bottom: 1px solid var(--gf2c-border);
  z-index: 1000;
  box-shadow: 0 2px 8px var(--gf2c-shadow);
}

.gf2c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.gf2c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gf2c-text-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.gf2c-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
}

.gf2c-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.gf2c-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.gf2c-btn-primary {
  background: var(--gf2c-gradient);
  color: var(--gf2c-bg-dark);
}

.gf2c-btn-secondary {
  background-color: var(--gf2c-bg-hover);
  color: var(--gf2c-primary);
  border: 1px solid var(--gf2c-primary);
}

.gf2c-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gf2c-shadow);
}

.gf2c-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.gf2c-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--gf2c-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.gf2c-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gf2c-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--gf2c-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--gf2c-border);
}

.gf2c-mobile-menu.gf2c-menu-open {
  right: 0;
}

.gf2c-mobile-menu.gf2c-menu-open + .gf2c-mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.gf2c-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gf2c-border);
}

.gf2c-menu-close {
  background: none;
  border: none;
  color: var(--gf2c-text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.gf2c-menu-nav {
  padding: 1rem 0;
}

.gf2c-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gf2c-text-primary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.gf2c-menu-nav a:hover {
  background-color: var(--gf2c-bg-hover);
  border-left-color: var(--gf2c-primary);
  color: var(--gf2c-primary);
}

/* Carousel */
.gf2c-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.gf2c-carousel-slide {
  display: none;
  width: 100%;
}

.gf2c-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.gf2c-carousel-slide.gf2c-active {
  display: block;
}

.gf2c-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.gf2c-carousel-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gf2c-carousel-prev {
  left: 1rem;
}

.gf2c-carousel-next {
  right: 1rem;
}

.gf2c-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.gf2c-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gf2c-carousel-indicator.gf2c-active,
.gf2c-carousel-indicator:hover {
  background-color: var(--gf2c-primary);
  transform: scale(1.2);
}

/* Section Styles */
.gf2c-section {
  margin-bottom: 2rem;
}

.gf2c-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gf2c-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gf2c-card {
  background-color: var(--gf2c-bg-card);
  border: 1px solid var(--gf2c-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.gf2c-card:hover {
  border-color: var(--gf2c-primary);
  box-shadow: 0 4px 16px var(--gf2c-shadow);
}

/* Game Grid */
.gf2c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.gf2c-game-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gf2c-game-item:hover {
  transform: translateY(-4px);
}

.gf2c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gf2c-game-item:hover .gf2c-game-icon {
  border-color: var(--gf2c-primary);
  box-shadow: 0 4px 12px var(--gf2c-shadow);
}

.gf2c-game-name {
  font-size: 1.1rem;
  color: var(--gf2c-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Footer */
.gf2c-footer {
  background-color: var(--gf2c-bg-card);
  border-top: 1px solid var(--gf2c-border);
  padding: 2rem 0 8rem;
  margin-top: 2rem;
}

.gf2c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gf2c-footer-link {
  color: var(--gf2c-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.gf2c-footer-link:hover {
  color: var(--gf2c-primary);
}

.gf2c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gf2c-partner-logo {
  height: 3rem;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gf2c-partner-logo:hover {
  opacity: 1;
}

.gf2c-copyright {
  text-align: center;
  color: var(--gf2c-text-secondary);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.gf2c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--gf2c-bg-card) 0%, var(--gf2c-bg-dark) 100%);
  border-top: 1px solid var(--gf2c-border);
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 8px var(--gf2c-shadow);
}

.gf2c-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.gf2c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 6rem;
  justify-content: center;
  text-decoration: none;
  color: var(--gf2c-text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.gf2c-nav-item:hover {
  color: var(--gf2c-primary);
  transform: scale(1.05);
}

.gf2c-nav-item.gf2c-active {
  color: var(--gf2c-primary);
}

.gf2c-nav-item.gf2c-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.3rem;
  background: var(--gf2c-gradient);
  border-radius: 0 0 3px 3px;
}

.gf2c-nav-icon {
  font-size: 2.4rem;
}

.gf2c-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .gf2c-bottom-nav {
    display: none;
  }

  .gf2c-wrapper {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.gf2c-text-center {
  text-align: center;
}

.gf2c-mb-1 {
  margin-bottom: 1rem;
}

.gf2c-mb-2 {
  margin-bottom: 2rem;
}

.gf2c-text-gradient {
  background: var(--gf2c-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Links */
.gf2c-link {
  color: var(--gf2c-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gf2c-link:hover {
  color: var(--gf2c-secondary);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 380px) {
  .gf2c-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
