/* okfun gcash - Main CSS */
/* All classes use prefix g661- for namespace isolation */

/* CSS Variables */
:root {
  /* Color palette */
  --g661-primary: #20B2AA;
  --g661-secondary: #8B008B;
  --g661-dark: #1A1A2E;
  --g661-light: #999999;
  --g661-accent: #00FF7F;
  --g661-purple: #8A2BE2;

  /* Typography */
  --g661-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --g661-font-size-xs: 1rem;
  --g661-font-size-sm: 1.2rem;
  --g661-font-size-md: 1.4rem;
  --g661-font-size-lg: 1.6rem;
  --g661-font-size-xl: 1.8rem;
  --g661-font-size-xxl: 2.2rem;

  /* Spacing */
  --g661-spacing-xs: 0.5rem;
  --g661-spacing-sm: 1rem;
  --g661-spacing-md: 1.5rem;
  --g661-spacing-lg: 2rem;
  --g661-spacing-xl: 3rem;

  /* Layout */
  --g661-max-width: 430px;
  --g661-header-height: 60px;
  --g661-bottom-nav-height: 64px;

  /* Z-index */
  --g661-z-header: 1000;
  --g661-z-bottom-nav: 1000;
  --g661-z-mobile-menu: 9999;
  --g661-z-overlay: 9998;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--g661-font-primary);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g661-light);
  background-color: var(--g661-dark);
  max-width: var(--g661-max-width);
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
.g661-h1 {
  font-size: var(--g661-font-size-xxl);
  font-weight: 700;
  color: var(--g661-accent);
  margin-bottom: var(--g661-spacing-md);
  line-height: 1.2;
}

.g661-h2 {
  font-size: var(--g661-font-size-xl);
  font-weight: 600;
  color: var(--g661-primary);
  margin-bottom: var(--g661-spacing-sm);
  line-height: 1.3;
}

.g661-h3 {
  font-size: var(--g661-font-size-lg);
  font-weight: 500;
  color: var(--g661-purple);
  margin-bottom: var(--g661-spacing-xs);
  line-height: 1.4;
}

.g661-text {
  font-size: var(--g661-font-size-md);
  line-height: 1.5;
  margin-bottom: var(--g661-spacing-sm);
}

.g661-text-sm {
  font-size: var(--g661-font-size-sm);
  line-height: 1.4;
}

.g661-text-lg {
  font-size: var(--g661-font-size-lg);
  line-height: 1.5;
}

/* Layout containers */
.g661-container {
  width: 100%;
  max-width: var(--g661-max-width);
  margin: 0 auto;
  padding: 0 var(--g661-spacing-sm);
}

.g661-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-bottom: var(--g661-bottom-nav-height);
}

.g661-main {
  padding-top: var(--g661-header-height);
  padding-bottom: var(--g661-spacing-lg);
}

.g661-section {
  margin-bottom: var(--g661-spacing-xl);
  padding: var(--g661-spacing-md) 0;
}

/* Header */
.g661-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g661-header-height);
  background: linear-gradient(135deg, var(--g661-dark) 0%, var(--g661-secondary) 100%);
  border-bottom: 2px solid var(--g661-primary);
  z-index: var(--g661-z-header);
  transition: transform 0.3s ease;
}

.g661-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 var(--g661-spacing-sm);
}

.g661-logo {
  display: flex;
  align-items: center;
  gap: var(--g661-spacing-xs);
  text-decoration: none;
  color: var(--g661-accent);
  font-weight: 700;
  font-size: var(--g661-font-size-lg);
}

.g661-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--g661-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.g661-header-actions {
  display: flex;
  gap: var(--g661-spacing-xs);
  align-items: center;
}

.g661-btn {
  padding: var(--g661-spacing-xs) var(--g661-spacing-sm);
  border: none;
  border-radius: 6px;
  font-size: var(--g661-font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.g661-btn-primary {
  background: linear-gradient(135deg, var(--g661-primary) 0%, var(--g661-accent) 100%);
  color: var(--g661-dark);
  box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.g661-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
}

.g661-btn-secondary {
  background: linear-gradient(135deg, var(--g661-secondary) 0%, var(--g661-purple) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 0, 139, 0.3);
}

.g661-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 139, 0.4);
}

.g661-menu-toggle {
  background: none;
  border: none;
  color: var(--g661-accent);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--g661-spacing-xs);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.g661-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
.g661-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--g661-dark) 0%, var(--g661-secondary) 100%);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: var(--g661-z-mobile-menu);
  overflow-y: auto;
}

.g661-mobile-menu.active {
  transform: translateX(0);
}

.g661-menu-header {
  padding: var(--g661-spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g661-menu-close {
  background: none;
  border: none;
  color: var(--g661-accent);
  font-size: 2.4rem;
  cursor: pointer;
}

.g661-menu-nav {
  padding: var(--g661-spacing-sm);
}

.g661-menu-item {
  display: block;
  padding: var(--g661-spacing-sm);
  color: var(--g661-light);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-bottom: var(--g661-spacing-xs);
}

.g661-menu-item:hover {
  background-color: rgba(32, 178, 170, 0.2);
  color: var(--g661-accent);
}

/* Overlay */
.g661-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: var(--g661-z-overlay);
}

/* Carousel */
.g661-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: var(--g661-spacing-lg);
  cursor: pointer;
}

.g661-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
}

.g661-carousel-item:first-child {
  display: block;
}

.g661-carousel-dots {
  position: absolute;
  bottom: var(--g661-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--g661-spacing-xs);
}

.g661-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.g661-carousel-dot.active {
  background: var(--g661-accent);
}

/* Game grid */
.g661-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--g661-spacing-xs);
  margin-bottom: var(--g661-spacing-lg);
}

.g661-game-card {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  border-radius: 8px;
  padding: var(--g661-spacing-xs);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.g661-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--g661-primary);
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

.g661-game-icon {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: var(--g661-spacing-xs);
}

.g661-game-name {
  font-size: var(--g661-font-size-xs);
  color: var(--g661-light);
  line-height: 1.2;
  font-weight: 500;
}

/* Content sections */
.g661-content-section {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(139, 0, 139, 0.1) 100%);
  border-radius: 12px;
  padding: var(--g661-spacing-md);
  margin-bottom: var(--g661-spacing-lg);
  border: 1px solid rgba(32, 178, 170, 0.2);
}

.g661-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g661-spacing-md);
}

.g661-feature-list {
  list-style: none;
  padding: 0;
}

.g661-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--g661-spacing-xs);
  margin-bottom: var(--g661-spacing-sm);
  padding: var(--g661-spacing-xs);
  background: rgba(32, 178, 170, 0.1);
  border-radius: 6px;
}

.g661-feature-icon {
  color: var(--g661-accent);
  font-size: 1.6rem;
  margin-top: 2px;
  min-width: 20px;
}

/* Links */
.g661-link {
  color: var(--g661-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.g661-link:hover {
  color: var(--g661-accent);
  text-decoration: underline;
}

.g661-btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--g661-spacing-xs);
  padding: var(--g661-spacing-sm) var(--g661-spacing-md);
  background: linear-gradient(135deg, var(--g661-primary) 0%, var(--g661-accent) 100%);
  color: var(--g661-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.g661-btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
}

/* Footer */
.g661-footer {
  background: linear-gradient(135deg, var(--g661-dark) 0%, var(--g661-secondary) 100%);
  border-top: 2px solid var(--g661-primary);
  padding: var(--g661-spacing-lg) 0 var(--g661-bottom-nav-height);
  margin-top: var(--g661-spacing-xl);
}

.g661-footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--g661-spacing-md);
}

.g661-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g661-spacing-sm);
  justify-content: center;
}

.g661-footer-link {
  color: var(--g661-light);
  text-decoration: none;
  font-size: var(--g661-font-size-sm);
  padding: var(--g661-spacing-xs);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.g661-footer-link:hover {
  color: var(--g661-accent);
  background: rgba(32, 178, 170, 0.1);
}

.g661-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--g661-spacing-sm);
  flex-wrap: wrap;
  margin: var(--g661-spacing-md) 0;
}

.g661-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g661-partner-logo:hover {
  opacity: 1;
}

.g661-copyright {
  text-align: center;
  font-size: var(--g661-font-size-xs);
  color: var(--g661-light);
  opacity: 0.8;
  margin-top: var(--g661-spacing-md);
}

/* Bottom navigation */
.g661-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g661-bottom-nav-height);
  background: linear-gradient(135deg, var(--g661-dark) 0%, var(--g661-secondary) 100%);
  border-top: 2px solid var(--g661-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: var(--g661-z-bottom-nav);
  padding: var(--g661-spacing-xs) 0;
}

.g661-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  padding: var(--g661-spacing-xs);
  text-decoration: none;
  color: var(--g661-light);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.g661-nav-item:hover,
.g661-nav-item.active {
  color: var(--g661-accent);
  background: rgba(32, 178, 170, 0.2);
  transform: translateY(-2px);
}

.g661-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.g661-nav-text {
  font-size: var(--g661-font-size-xs);
  font-weight: 500;
  line-height: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .g661-wrapper {
    padding-bottom: var(--g661-bottom-nav-height);
  }

  .g661-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .g661-main {
    padding-top: var(--g661-header-height);
    padding-bottom: var(--g661-spacing-lg);
  }
}

@media (min-width: 769px) {
  .g661-bottom-nav {
    display: none;
  }

  .g661-wrapper {
    padding-bottom: 0;
  }
}

/* Utility classes */
.g661-text-center {
  text-align: center;
}

.g661-text-left {
  text-align: left;
}

.g661-text-right {
  text-align: right;
}

.g661-mb-sm {
  margin-bottom: var(--g661-spacing-sm);
}

.g661-mb-md {
  margin-bottom: var(--g661-spacing-md);
}

.g661-mb-lg {
  margin-bottom: var(--g661-spacing-lg);
}

.g661-mt-sm {
  margin-top: var(--g661-spacing-sm);
}

.g661-mt-md {
  margin-top: var(--g661-spacing-md);
}

.g661-mt-lg {
  margin-top: var(--g661-spacing-lg);
}

.g661-p-sm {
  padding: var(--g661-spacing-sm);
}

.g661-p-md {
  padding: var(--g661-spacing-md);
}

.g661-p-lg {
  padding: var(--g661-spacing-lg);
}

/* Animations */
@keyframes g661-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g661-fade-in {
  animation: g661-fadeIn 0.6s ease-out;
}

@keyframes g661-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.g661-pulse {
  animation: g661-pulse 2s infinite;
}

/* Loading states */
.g661-loading {
  position: relative;
  overflow: hidden;
}

.g661-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: g661-shimmer 1.5s infinite;
}

@keyframes g661-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Focus states for accessibility */
.g661-btn:focus,
.g661-link:focus,
.g661-nav-item:focus {
  outline: 2px solid var(--g661-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --g661-light: #ffffff;
    --g661-dark: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}