/* kg777-click CSS - Dark Blue & Light Theme */
/* All classes use prefix: wd044- */

:root {
  --wd044-primary: #4169E1; /* Royal Blue */
  --wd044-dark: #1C2833; /* Dark Navy */
  --wd044-light: #F8F8FF; /* Ghost White */
  --wd044-gray: #808080; /* Gray */
  --wd044-accent: #DDA0DD; /* Plum */
  --wd044-bg-dark: #0F1419;
  --wd044-text: #F8F8FF;
  --wd044-text-secondary: #B0B0B0;
  --wd044-border: #2C3E50;
  --wd044-gradient: linear-gradient(135deg, #4169E1 0%, #6495ED 100%);
  --wd044-shadow: 0 4px 20px rgba(65, 105, 225, 0.15);
  --wd044-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--wd044-dark);
  color: var(--wd044-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.wd044-header {
  background: var(--wd044-bg-dark);
  padding: 12px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--wd044-shadow-dark);
  border-bottom: 1px solid var(--wd044-border);
}

.wd044-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wd044-logo {
  font-size: 24px;
  font-weight: bold;
  background: var(--wd044-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.wd044-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wd044-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd044-btn-primary {
  background: var(--wd044-gradient);
  color: white;
  box-shadow: var(--wd044-shadow);
}

.wd044-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(65, 105, 225, 0.3);
}

.wd044-btn-secondary {
  background: transparent;
  color: var(--wd044-primary);
  border: 2px solid var(--wd044-primary);
}

.wd044-btn-secondary:hover {
  background: var(--wd044-primary);
  color: var(--wd044-dark);
}

.wd044-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--wd044-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Menu */
.wd044-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--wd044-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 20px 20px;
  border-left: 1px solid var(--wd044-border);
}

.wd044-mobile-menu.active {
  right: 0;
}

.wd044-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wd044-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wd044-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--wd044-text);
  text-decoration: none;
  border-bottom: 1px solid var(--wd044-border);
  transition: color 0.3s ease;
}

.wd044-mobile-menu a:hover {
  color: var(--wd044-primary);
}

/* Main Content */
.wd044-main {
  padding-top: 70px;
}

@media (max-width: 768px) {
  .wd044-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.wd044-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 20px 16px;
  box-shadow: var(--wd044-shadow-dark);
}

.wd044-carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wd044-carousel-item.active {
  opacity: 1;
}

.wd044-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd044-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.wd044-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wd044-carousel-dot.active {
  background: var(--wd044-primary);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.wd044-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

@media (min-width: 769px) {
  .wd044-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.wd044-game-item {
  background: var(--wd044-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--wd044-border);
}

.wd044-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--wd044-shadow);
  border-color: var(--wd044-primary);
}

.wd044-game-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.wd044-game-name {
  padding: 8px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--wd044-text);
}

/* Content Sections */
.wd044-section {
  padding: 24px 16px;
}

.wd044-section-title {
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--wd044-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wd044-text {
  color: var(--wd044-text-secondary);
  margin-bottom: 12px;
}

/* Accordion */
.wd044-accordion {
  margin: 16px 0;
}

.wd044-accordion-item {
  background: var(--wd044-bg-dark);
  border: 1px solid var(--wd044-border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.wd044-accordion-header {
  padding: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.wd044-accordion-header:hover {
  background: rgba(65, 105, 225, 0.1);
}

.wd044-accordion-icon {
  transition: transform 0.3s ease;
}

.wd044-accordion-item.active .wd044-accordion-icon {
  transform: rotate(180deg);
}

.wd044-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.wd044-accordion-item.active .wd044-accordion-content {
  max-height: 500px;
  padding: 0 16px 16px;
}

/* Footer */
.wd044-footer {
  background: var(--wd044-bg-dark);
  padding: 24px 16px;
  border-top: 1px solid var(--wd044-border);
  text-align: center;
}

.wd044-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.wd044-partner-icon {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wd044-partner-icon:hover {
  opacity: 1;
}

.wd044-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.wd044-footer-links a {
  color: var(--wd044-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.wd044-footer-links a:hover {
  color: var(--wd044-primary);
}

.wd044-copyright {
  color: var(--wd044-text-secondary);
  font-size: 12px;
}

/* Mobile Bottom Navigation */
.wd044-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wd044-bg-dark);
  border-top: 1px solid var(--wd044-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
}

@media (min-width: 769px) {
  .wd044-bottom-nav {
    display: none;
  }
}

.wd044-bottom-nav button {
  background: none;
  border: none;
  color: var(--wd044-text-secondary);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wd044-bottom-nav button:hover,
.wd044-bottom-nav button.active {
  color: var(--wd044-primary);
  transform: scale(1.1);
}

.wd044-bottom-nav i {
  font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .wd044-header-actions {
    display: none;
  }

  .wd044-menu-btn {
    display: block;
  }

  .wd044-carousel {
    height: 160px;
    margin: 16px 12px;
  }

  .wd044-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .wd044-section-title {
    font-size: 20px;
  }

  .wd044-partners {
    gap: 12px;
  }

  .wd044-partner-icon {
    width: 50px;
    height: 25px;
  }
}

/* Utilities */
.wd044-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.wd044-text-center {
  text-align: center;
}

.wd044-mt-16 {
  margin-top: 16px;
}

.wd044-mb-16 {
  margin-bottom: 16px;
}

/* Animations */
@keyframes wd044-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wd044-fade-in {
  animation: wd044-fadeIn 0.6s ease forwards;
}

/* Loading */
.wd044-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--wd044-primary);
  border-radius: 50%;
  border-top-color: transparent;
  animation: wd044-spin 1s linear infinite;
}

@keyframes wd044-spin {
  to {
    transform: rotate(360deg);
  }
}