/**
 * KKKPH - Design System CSS
 * All classes use prefix: g880-
 * Color Palette: #FFC0CB, #141414, #FF0000, #E91E63, #FFB6C1
 */

/* CSS Variables */
:root {
  --g880-primary: #FF0000;
  --g880-secondary: #E91E63;
  --g880-accent: #FFC0CB;
  --g880-bg-dark: #141414;
  --g880-bg-light: #1f1f1f;
  --g880-text: #FFB6C1;
  --g880-text-light: #FFFFFF;
  --g880-border: #FFC0CB;
  --g880-shadow: rgba(255, 0, 0, 0.3);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--g880-bg-dark);
  color: var(--g880-text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
.g880-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g880-bg-dark) 0%, var(--g880-bg-light) 100%);
  border-bottom: 2px solid var(--g880-primary);
  z-index: 1000;
  box-shadow: 0 4px 20px var(--g880-shadow);
}

.g880-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.g880-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--g880-accent);
}

.g880-logo-icon {
  width: 28px;
  height: 28px;
}

.g880-header-buttons {
  display: flex;
  gap: 10px;
}

.g880-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
}

.g880-btn-register {
  background: linear-gradient(135deg, var(--g880-primary) 0%, var(--g880-secondary) 100%);
  color: var(--g880-text-light);
}

.g880-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--g880-shadow);
}

.g880-btn-login {
  background: transparent;
  color: var(--g880-accent);
  border: 2px solid var(--g880-accent);
}

.g880-btn-login:hover {
  background: var(--g880-accent);
  color: var(--g880-bg-dark);
}

/* Mobile Menu Toggle */
.g880-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.g880-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--g880-accent);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.g880-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--g880-bg-light);
  border-bottom: 2px solid var(--g880-primary);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 430px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
}

.g880-mobile-menu.g880-menu-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.g880-menu-list {
  list-style: none;
  padding: 0 20px;
}

.g880-menu-list li {
  margin-bottom: 16px;
}

.g880-menu-link {
  display: block;
  padding: 12px 16px;
  color: var(--g880-text);
  font-size: 1.4rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.g880-menu-link:hover {
  background-color: var(--g880-primary);
  color: var(--g880-text-light);
}

/* Main Content */
.g880-main {
  margin-top: 60px;
  padding: 20px 16px 80px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.g880-carousel {
  position: relative;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--g880-shadow);
}

.g880-carousel-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.g880-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g880-carousel-slide.g880-slide-active {
  opacity: 1;
}

.g880-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g880-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g880-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g880-carousel-dot.g880-dot-active {
  background-color: var(--g880-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section Styles */
.g880-section {
  margin-bottom: 30px;
}

.g880-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--g880-accent);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g880-section-content {
  background: linear-gradient(135deg, var(--g880-bg-light) 0%, var(--g880-bg-dark) 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--g880-border);
}

/* Game Grid */
.g880-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.g880-game-item {
  display: block;
  text-align: center;
  transition: transform 0.3s ease;
}

.g880-game-item:hover {
  transform: scale(1.05);
}

.g880-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 2px solid var(--g880-border);
  transition: border-color 0.3s ease;
}

.g880-game-item:hover .g880-game-icon {
  border-color: var(--g880-primary);
}

.g880-game-name {
  font-size: 0.9rem;
  color: var(--g880-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Modules */
.g880-content-module {
  background: linear-gradient(135deg, var(--g880-bg-light) 0%, var(--g880-bg-dark) 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--g880-border);
}

.g880-module-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--g880-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.g880-module-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g880-text);
}

.g880-module-content p {
  margin-bottom: 12px;
}

.g880-promo-link {
  color: var(--g880-accent);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.g880-promo-link:hover {
  color: var(--g880-primary);
}

/* Bottom Navigation */
.g880-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g880-bg-dark) 0%, var(--g880-bg-light) 100%);
  border-top: 2px solid var(--g880-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.g880-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.g880-nav-item:hover {
  background-color: rgba(255, 0, 0, 0.1);
  transform: scale(1.05);
}

.g880-nav-item.g880-nav-active {
  color: var(--g880-accent);
}

.g880-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.g880-nav-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.g880-footer {
  background: linear-gradient(135deg, var(--g880-bg-light) 0%, var(--g880-bg-dark) 100%);
  border-top: 2px solid var(--g880-primary);
  padding: 30px 16px 100px;
  margin-top: 40px;
}

.g880-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g880-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.g880-footer-link {
  color: var(--g880-text);
  font-size: 1.2rem;
  padding: 6px 12px;
  background-color: var(--g880-bg-dark);
  border-radius: 6px;
  border: 1px solid var(--g880-border);
  transition: all 0.3s ease;
}

.g880-footer-link:hover {
  background-color: var(--g880-primary);
  color: var(--g880-text-light);
}

.g880-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.g880-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.g880-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.g880-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g880-text);
  opacity: 0.8;
}

/* Responsive */
@media (min-width: 769px) {
  .g880-bottom-nav {
    display: none;
  }

  .g880-main {
    padding-bottom: 20px;
  }

  .g880-footer {
    padding-bottom: 30px;
  }
}

/* Utility Classes */
.g880-text-center {
  text-align: center;
}

.g880-mb-1 {
  margin-bottom: 10px;
}

.g880-mb-2 {
  margin-bottom: 20px;
}

.g880-mb-3 {
  margin-bottom: 30px;
}
