/* CSS file for kkkph website */
/* All classes use ga32- prefix to avoid conflicts */

/* CSS Variables */
:root {
  --ga32-primary: #FFB6C1;
  --ga32-secondary: #212F3D;
  --ga32-bg: #0f1419;
  --ga32-text: #ffffff;
  --ga32-text-secondary: #b0b0b0;
  --ga32-border: #2a3441;
  --ga32-accent: #ff6b9d;
  --ga32-success: #4caf50;
  --ga32-warning: #ff9800;
  --ga32-error: #f44336;
  --ga32-shadow: rgba(0, 0, 0, 0.3);
  --ga32-gradient: linear-gradient(135deg, #FFB6C1 0%, #ff6b9d 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ga32-text);
  background-color: var(--ga32-bg);
  overflow-x: hidden;
}

/* Container and Layout */
.ga32-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ga32-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

/* Header */
.ga32-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga32-secondary);
  border-bottom: 1px solid var(--ga32-border);
  transition: all 0.3s ease;
}

.ga32-header.scrolled {
  background: rgba(33, 47, 61, 0.95);
  backdrop-filter: blur(10px);
}

.ga32-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.ga32-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ga32-text);
}

.ga32-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--ga32-gradient);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
}

.ga32-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ga32-primary);
}

.ga32-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ga32-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  white-space: nowrap;
}

.ga32-btn-primary {
  background: var(--ga32-gradient);
  color: var(--ga32-secondary);
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.ga32-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 182, 193, 0.4);
}

.ga32-btn-secondary {
  background: transparent;
  color: var(--ga32-primary);
  border: 2px solid var(--ga32-primary);
}

.ga32-btn-secondary:hover {
  background: var(--ga32-primary);
  color: var(--ga32-secondary);
}

.ga32-menu-button {
  background: none;
  border: none;
  color: var(--ga32-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.ga32-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--ga32-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.ga32-mobile-menu.active {
  right: 0;
}

.ga32-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ga32-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ga32-menu-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--ga32-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ga32-menu-close {
  background: none;
  border: none;
  color: var(--ga32-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.ga32-menu-nav {
  padding: 1rem 0;
}

.ga32-menu-item {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--ga32-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.ga32-menu-item:hover,
.ga32-menu-item.active {
  background: rgba(255, 182, 193, 0.1);
  border-left-color: var(--ga32-primary);
  color: var(--ga32-primary);
}

/* Main Content */
.ga32-main {
  padding-top: 6rem;
  min-height: 100vh;
}

/* Hero Section */
.ga32-hero {
  position: relative;
  overflow: hidden;
}

.ga32-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.ga32-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.ga32-carousel-slide.active {
  opacity: 1;
}

.ga32-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ga32-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.ga32-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ga32-carousel-dot.active {
  background: var(--ga32-primary);
  transform: scale(1.2);
}

/* Typography */
.ga32-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--ga32-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ga32-h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ga32-primary);
}

.ga32-h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.ga32-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ga32-text-secondary);
  margin-bottom: 1rem;
}

/* Cards and Components */
.ga32-card {
  background: var(--ga32-secondary);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--ga32-border);
  transition: all 0.3s ease;
}

.ga32-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ga32-shadow);
  border-color: var(--ga32-primary);
}

/* Game Grid */
.ga32-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ga32-game-item {
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ga32-game-item:hover {
  transform: scale(1.05);
}

.ga32-game-icon {
  width: 100%;
  height: 80px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: var(--ga32-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga32-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ga32-game-name {
  font-size: 1.2rem;
  color: var(--ga32-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.ga32-section {
  padding: 2rem 0;
}

.ga32-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* Footer */
.ga32-footer {
  background: var(--ga32-secondary);
  border-top: 1px solid var(--ga32-border);
  padding: 2rem 0 8rem;
  margin-top: 3rem;
}

.ga32-footer-content {
  margin-bottom: 2rem;
}

.ga32-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ga32-primary);
}

.ga32-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ga32-footer-link {
  color: var(--ga32-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.ga32-footer-link:hover {
  color: var(--ga32-primary);
}

.ga32-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.ga32-partner {
  width: 40px;
  height: 40px;
  background: var(--ga32-border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ga32-partner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.ga32-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--ga32-text-secondary);
  margin-top: 2rem;
}

/* Bottom Navigation */
.ga32-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga32-secondary);
  border-top: 1px solid var(--ga32-border);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
}

.ga32-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ga32-text-secondary);
  transition: all 0.3s ease;
  min-height: 5rem;
  gap: 0.3rem;
}

.ga32-bottom-nav-item:hover,
.ga32-bottom-nav-item.active {
  color: var(--ga32-primary);
  transform: scale(1.1);
}

.ga32-bottom-nav-icon {
  font-size: 2.4rem;
}

.ga32-bottom-nav-text {
  font-size: 1rem;
  white-space: nowrap;
}

/* Responsive */
@media (min-width: 769px) {
  .ga32-bottom-nav {
    display: none;
  }

  .ga32-wrapper {
    padding-bottom: 0;
  }
}

/* Utility Classes */
.ga32-text-center {
  text-align: center;
}

.ga32-text-primary {
  color: var(--ga32-primary);
}

.ga32-text-secondary {
  color: var(--ga32-text-secondary);
}

.ga32-mb-1 {
  margin-bottom: 1rem;
}

.ga32-mb-2 {
  margin-bottom: 2rem;
}

.ga32-mt-1 {
  margin-top: 1rem;
}

.ga32-mt-2 {
  margin-top: 2rem;
}

/* Animations */
@keyframes ga32-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ga32-fade-in {
  animation: ga32-fadeIn 0.5s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.ga32-btn:focus,
.ga32-menu-item:focus,
.ga32-game-item:focus,
.ga32-bottom-nav-item:focus {
  outline: 2px solid var(--ga32-primary);
  outline-offset: 2px;
}

/* Loading states */
.ga32-loading {
  position: relative;
  overflow: hidden;
}

.ga32-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: ga32-loading 1.5s infinite;
}

@keyframes ga32-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}