/**
 * jl29 2026 - Main Stylesheet
 * All classes use ga4c- prefix for namespace isolation
 * Color palette: #4DB6AC | #FF8C00 | #333333 | #BDB76B | #F0E68C
 */

/* CSS Variables */
:root {
  --ga4c-primary: #4DB6AC;
  --ga4c-secondary: #FF8C00;
  --ga4c-dark: #333333;
  --ga4c-khaki-dark: #BDB76B;
  --ga4c-khaki-light: #F0E68C;
  --ga4c-white: #ffffff;
  --ga4c-gray-light: #f5f5f5;
  --ga4c-text-dark: #1a1a1a;
  --ga4c-text-light: #ffffff;
}

/* 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(--ga4c-text-dark);
  background-color: var(--ga4c-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.ga4c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--ga4c-white);
  min-height: 100vh;
}

@media (min-width: 769px) {
  .ga4c-container {
    max-width: 100%;
  }
}

/* Header */
.ga4c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--ga4c-primary) 0%, var(--ga4c-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1rem;
}

.ga4c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 769px) {
  .ga4c-header-inner {
    max-width: 1200px;
  }
}

.ga4c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ga4c-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.ga4c-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.ga4c-header-actions {
  display: flex;
  gap: 0.8rem;
}

.ga4c-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ga4c-btn-register {
  background-color: var(--ga4c-secondary);
  color: var(--ga4c-white);
}

.ga4c-btn-register:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.ga4c-btn-login {
  background-color: transparent;
  color: var(--ga4c-white);
  border: 2px solid var(--ga4c-white);
}

.ga4c-btn-login:hover {
  background-color: var(--ga4c-white);
  color: var(--ga4c-dark);
}

.ga4c-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ga4c-white);
  font-size: 2rem;
}

@media (min-width: 769px) {
  .ga4c-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.ga4c-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--ga4c-primary) 0%, var(--ga4c-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.ga4c-mobile-menu.ga4c-menu-open {
  right: 0;
}

.ga4c-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;
}

.ga4c-menu-open + .ga4c-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.ga4c-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ga4c-secondary);
}

.ga4c-menu-close {
  background: transparent;
  border: none;
  color: var(--ga4c-white);
  font-size: 2.5rem;
  cursor: pointer;
}

.ga4c-menu-nav {
  list-style: none;
}

.ga4c-menu-nav li {
  margin-bottom: 1rem;
}

.ga4c-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--ga4c-white);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.ga4c-menu-nav a:hover {
  background-color: var(--ga4c-secondary);
  padding-left: 1.5rem;
}

/* Main Content */
.ga4c-main {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .ga4c-main {
    padding-bottom: 2rem;
  }
}

/* Hero Slider */
.ga4c-hero {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.ga4c-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ga4c-slide.ga4c-slide-active {
  opacity: 1;
}

.ga4c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.ga4c-section {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.ga4c-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ga4c-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.ga4c-section-title span {
  color: var(--ga4c-secondary);
}

/* Game Grid */
.ga4c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.ga4c-game-item {
  display: block;
  text-decoration: none;
  color: var(--ga4c-text-dark);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ga4c-game-item:hover {
  transform: scale(1.05);
}

.ga4c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--ga4c-gray-light);
}

.ga4c-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--ga4c-text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* Card Component */
.ga4c-card {
  background-color: var(--ga4c-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ga4c-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ga4c-dark);
  margin-bottom: 1rem;
}

.ga4c-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ga4c-text-dark);
}

.ga4c-card-content p {
  margin-bottom: 1rem;
}

/* Feature List */
.ga4c-feature-list {
  list-style: none;
  padding: 0;
}

.ga4c-feature-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ga4c-gray-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ga4c-feature-list li:last-child {
  border-bottom: none;
}

.ga4c-feature-icon {
  color: var(--ga4c-primary);
  font-size: 2rem;
  flex-shrink: 0;
}

/* FAQ Styles */
.ga4c-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--ga4c-gray-light);
  border-radius: 8px;
  overflow: hidden;
}

.ga4c-faq-question {
  background-color: var(--ga4c-khaki-light);
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ga4c-faq-answer {
  padding: 1rem;
  background-color: var(--ga4c-white);
  display: none;
}

.ga4c-faq-item.active .ga4c-faq-answer {
  display: block;
}

/* Bottom Navigation */
.ga4c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--ga4c-dark) 0%, #222 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
}

@media (min-width: 769px) {
  .ga4c-bottom-nav {
    display: none;
  }
}

.ga4c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ga4c-white);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.ga4c-nav-item:hover,
.ga4c-nav-item.ga4c-nav-active {
  color: var(--ga4c-secondary);
}

.ga4c-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.ga4c-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.ga4c-footer {
  background-color: var(--ga4c-dark);
  color: var(--ga4c-white);
  padding: 3rem 1rem 1rem;
  text-align: center;
}

.ga4c-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ga4c-footer-link {
  color: var(--ga4c-khaki-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.ga4c-footer-link:hover {
  color: var(--ga4c-secondary);
}

.ga4c-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ga4c-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ga4c-partner-logo:hover {
  opacity: 1;
}

.ga4c-footer-text {
  font-size: 1.2rem;
  color: var(--ga4c-khaki-dark);
  margin-bottom: 0.5rem;
}

.ga4c-copyright {
  font-size: 1.1rem;
  color: var(--ga4c-khaki-light);
  border-top: 1px solid var(--ga4c-khaki-dark);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .ga4c-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 360px) {
  .ga4c-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animation */
@keyframes ga4c-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ga4c-fade-in {
  animation: ga4c-fadeIn 0.5s ease;
}

/* Text Utilities */
.ga4c-text-center {
  text-align: center;
}

.ga4c-text-primary {
  color: var(--ga4c-primary);
}

.ga4c-text-secondary {
  color: var(--ga4c-secondary);
}

.ga4c-mt-1 {
  margin-top: 1rem;
}

.ga4c-mb-1 {
  margin-bottom: 1rem;
}

.ga4c-mb-2 {
  margin-bottom: 2rem;
}
