/* KM88 Gaming Platform - Theme Stylesheet */
/* CSS Class prefix: g98d- */
/* Color palette: #ECF0F1 (light gray), #FFEFD5 (papaya whip), #5D5D5D (gray), #00FFFF (cyan), #2C3E50 (dark blue-gray) */

/* === ROOT VARIABLES === */
:root {
  --g98d-primary: #00FFFF;
  --g98d-secondary: #FFEFD5;
  --g98d-dark: #2C3E50;
  --g98d-gray: #5D5D5D;
  --g98d-light: #ECF0F1;
  --g98d-bg-primary: #2C3E50;
  --g98d-bg-secondary: #1a252f;
  --g98d-text-primary: #ECF0F1;
  --g98d-text-secondary: #FFEFD5;
  --g98d-accent: #00FFFF;
  --g98d-border-radius: 12px;
  --g98d-transition: all 0.3s ease;
  --g98d-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
  --g98d-shadow-lg: 0 8px 24px rgba(0, 255, 255, 0.25);
}

/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g98d-text-primary);
  background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g98d-accent);
  text-decoration: none;
  transition: var(--g98d-transition);
}

a:hover {
  color: var(--g98d-secondary);
  text-decoration: underline;
}

/* === HEADER === */
.g98d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 37, 47, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--g98d-accent);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: var(--g98d-transition);
}

.g98d-header.scrolled {
  background: rgba(26, 37, 47, 0.98);
  box-shadow: var(--g98d-shadow);
}

.g98d-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g98d-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g98d-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.g98d-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g98d-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.g98d-nav-desktop {
  display: none;
}

.g98d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g98d-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--g98d-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g98d-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g98d-btn-primary {
  background: linear-gradient(135deg, #00FFFF 0%, #00cccc 100%);
  color: var(--g98d-dark);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.g98d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.g98d-btn-secondary {
  background: linear-gradient(135deg, #FFEFD5 0%, #ffe4b3 100%);
  color: var(--g98d-dark);
  box-shadow: 0 0 15px rgba(255, 239, 213, 0.3);
}

.g98d-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 239, 213, 0.5);
}

.g98d-menu-toggle {
  background: transparent;
  border: 2px solid var(--g98d-accent);
  color: var(--g98d-accent);
  padding: 0.6rem;
  font-size: 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--g98d-transition);
}

.g98d-menu-toggle:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* === MOBILE MENU === */
.g98d-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g98d-menu-overlay.active {
  display: block;
  opacity: 1;
}

.g98d-mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #2C3E50 0%, #1a252f 100%);
  border-left: 2px solid var(--g98d-accent);
  padding: 2rem;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 255, 255, 0.2);
}

.g98d-mobile-menu.active {
  right: 0;
}

.g98d-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--g98d-accent);
}

.g98d-menu-close {
  background: transparent;
  border: none;
  color: var(--g98d-accent);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0;
}

.g98d-menu-nav {
  list-style: none;
}

.g98d-menu-nav li {
  margin-bottom: 0.5rem;
}

.g98d-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--g98d-text-primary);
  border-radius: 8px;
  transition: var(--g98d-transition);
  font-size: 1.5rem;
}

.g98d-nav-link:hover,
.g98d-nav-link.active {
  background: rgba(0, 255, 255, 0.1);
  color: var(--g98d-accent);
  text-decoration: none;
  transform: translateX(5px);
}

/* === MAIN CONTENT === */
.g98d-main {
  margin-top: 60px;
  padding-bottom: 80px;
}

.g98d-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.g98d-section {
  margin: 2.5rem 0;
}

.g98d-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g98d-accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  border-left: 4px solid var(--g98d-accent);
  padding-left: 1.2rem;
}

.g98d-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g98d-secondary);
  margin-bottom: 1.2rem;
}

/* === CAROUSEL === */
.g98d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--g98d-border-radius);
  overflow: hidden;
  box-shadow: var(--g98d-shadow);
  margin-bottom: 2rem;
}

.g98d-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g98d-carousel-slide.active {
  opacity: 1;
}

.g98d-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g98d-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.g98d-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g98d-transition);
  border: 2px solid var(--g98d-accent);
}

.g98d-carousel-dot.active {
  background: var(--g98d-accent);
  box-shadow: 0 0 10px var(--g98d-accent);
}

/* === GAME GRID === */
.g98d-game-category {
  margin-bottom: 3rem;
}

.g98d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.g98d-game-item {
  background: rgba(93, 93, 93, 0.2);
  border-radius: var(--g98d-border-radius);
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--g98d-transition);
  border: 2px solid transparent;
}

.g98d-game-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--g98d-accent);
  transform: translateY(-3px);
  box-shadow: var(--g98d-shadow);
}

.g98d-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin: 0 auto 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.g98d-game-name {
  font-size: 1.2rem;
  color: var(--g98d-text-primary);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === CARDS === */
.g98d-card {
  background: rgba(93, 93, 93, 0.2);
  border-radius: var(--g98d-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(0, 255, 255, 0.2);
  box-shadow: var(--g98d-shadow);
}

.g98d-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g98d-accent);
  margin-bottom: 1.5rem;
}

.g98d-card-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--g98d-text-primary);
  margin-bottom: 1.2rem;
}

.g98d-card-text strong {
  color: var(--g98d-secondary);
  font-weight: 600;
}

/* === ACCORDION === */
.g98d-accordion-item {
  background: rgba(93, 93, 93, 0.2);
  border-radius: var(--g98d-border-radius);
  margin-bottom: 1rem;
  border: 2px solid rgba(0, 255, 255, 0.2);
  overflow: hidden;
}

.g98d-accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--g98d-secondary);
  transition: var(--g98d-transition);
}

.g98d-accordion-header:hover {
  background: rgba(0, 255, 255, 0.05);
}

.g98d-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g98d-accordion-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--g98d-text-primary);
  line-height: 1.6;
}

/* === BOTTOM NAVIGATION === */
.g98d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a252f 0%, #2C3E50 100%);
  border-top: 2px solid var(--g98d-accent);
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 255, 255, 0.15);
}

.g98d-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g98d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  color: var(--g98d-text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--g98d-transition);
  padding: 0.5rem;
  border-radius: 8px;
}

.g98d-bottom-nav-btn:hover,
.g98d-bottom-nav-btn.active {
  background: rgba(0, 255, 255, 0.1);
  color: var(--g98d-accent);
  transform: scale(1.05);
}

.g98d-bottom-nav-icon {
  font-size: 2.4rem;
}

.g98d-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* === FOOTER === */
.g98d-footer {
  background: #1a252f;
  border-top: 2px solid var(--g98d-accent);
  padding: 3rem 2rem 10rem;
  margin-top: 4rem;
}

.g98d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.g98d-footer-link {
  color: var(--g98d-text-secondary);
  font-size: 1.4rem;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  transition: var(--g98d-transition);
}

.g98d-footer-link:hover {
  background: rgba(0, 255, 255, 0.15);
  color: var(--g98d-accent);
  text-decoration: none;
}

.g98d-partners {
  margin-bottom: 2.5rem;
}

.g98d-partners-title {
  font-size: 1.6rem;
  color: var(--g98d-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.g98d-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
}

.g98d-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--g98d-transition);
  filter: brightness(1.2);
}

.g98d-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.g98d-copyright {
  text-align: center;
  color: var(--g98d-light);
  font-size: 1.3rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* === UTILITY CLASSES === */
.g98d-text-center {
  text-align: center;
}

.g98d-text-highlight {
  color: var(--g98d-accent);
  font-weight: 600;
}

.g98d-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--g98d-accent);
  color: var(--g98d-dark);
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* === DESKTOP STYLES === */
@media (min-width: 769px) {
  .g98d-bottom-nav {
    display: none;
  }

  .g98d-main {
    padding-bottom: 0;
  }

  .g98d-nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .g98d-menu-toggle {
    display: none;
  }

  .g98d-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
