/**
 * WinDream PH Layout Stylesheet
 * Prefix: gd86- - All classes use this namespace
 * Mobile-First Design | Max Width: 430px
 * Color Scheme: Orange (#FF9800, #FF5722), Green (#90EE90, #006400), Dark (#0F0F23)
 */

/* ==================== ROOT & RESET ==================== */
:root {
  --gd86-primary: #FF9800;
  --gd86-accent: #FF5722;
  --gd86-light-green: #90EE90;
  --gd86-dark-green: #006400;
  --gd86-dark: #0F0F23;
  --gd86-dark-alt: #1a1a2e;
  --gd86-text-light: #ffffff;
  --gd86-text-muted: #b0b0b0;
  --gd86-border: rgba(255, 255, 255, 0.1);
  --gd86-shadow: rgba(0, 0, 0, 0.3);
  --gd86-overlay: rgba(15, 15, 35, 0.95);
  font-size: 62.5%; /* 1rem = 10px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gd86-text-light);
  background-color: var(--gd86-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==================== HEADER ==================== */
.gd86-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(135deg, var(--gd86-dark) 0%, var(--gd86-dark-alt) 100%);
  border-bottom: 2px solid var(--gd86-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: box-shadow 0.3s ease;
}

.gd86-header-scrolled {
  box-shadow: 0 4px 12px var(--gd86-shadow);
}

.gd86-header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gd86-header-logo-img {
  width: 2.8rem;
  height: 2.8rem;
}

.gd86-header-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gd86-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gd86-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gd86-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd86-btn-primary {
  background: linear-gradient(135deg, var(--gd86-primary) 0%, var(--gd86-accent) 100%);
  color: white;
}

.gd86-btn-primary:active {
  transform: scale(0.95);
}

.gd86-btn-outline {
  border: 2px solid var(--gd86-light-green);
  color: var(--gd86-light-green);
}

.gd86-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gd86-primary);
  font-size: 2.4rem;
}

/* ==================== MOBILE MENU ==================== */
.gd86-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gd86-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gd86-overlay-active {
  opacity: 1;
  visibility: visible;
}

.gd86-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 28rem;
  max-width: 85%;
  height: 100vh;
  background: var(--gd86-dark-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 12px var(--gd86-shadow);
}

.gd86-menu-active {
  right: 0;
}

.gd86-menu-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--gd86-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gd86-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gd86-primary);
}

.gd86-menu-close {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gd86-text-light);
  font-size: 2.4rem;
}

.gd86-menu-nav {
  padding: 1rem 0;
}

.gd86-nav-link {
  display: flex;
  align-items: center;
  padding: 1.4rem 2rem;
  color: var(--gd86-text-light);
  font-size: 1.5rem;
  transition: all 0.2s ease;
  min-height: 48px;
}

.gd86-nav-link:active {
  background: rgba(255, 152, 0, 0.1);
}

.gd86-nav-active {
  background: rgba(255, 152, 0, 0.15);
  color: var(--gd86-primary);
  border-left: 3px solid var(--gd86-primary);
}

/* ==================== MAIN CONTENT ==================== */
.gd86-main {
  margin-top: 6rem;
  padding-bottom: 8rem;
  min-height: calc(100vh - 6rem);
}

.gd86-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== CAROUSEL ==================== */
.gd86-carousel {
  position: relative;
  width: 100%;
  height: 24rem;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.gd86-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.gd86-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.gd86-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd86-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.gd86-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gd86-dot-active {
  background: var(--gd86-primary);
  width: 2.4rem;
  border-radius: 4px;
}

/* ==================== GAME SECTIONS ==================== */
.gd86-section {
  margin-bottom: 3rem;
}

.gd86-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.gd86-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gd86-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gd86-section-icon {
  font-size: 2.4rem;
  color: var(--gd86-light-green);
}

.gd86-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gd86-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  background: var(--gd86-dark-alt);
  border-radius: 8px;
  border: 1px solid var(--gd86-border);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 44px;
}

.gd86-game-item:active {
  transform: scale(0.95);
  border-color: var(--gd86-primary);
}

.gd86-game-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 6px;
  object-fit: cover;
}

.gd86-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gd86-text-light);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== CONTENT MODULES ==================== */
.gd86-content-module {
  background: var(--gd86-dark-alt);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--gd86-primary);
}

.gd86-module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gd86-primary);
  margin-bottom: 1.2rem;
}

.gd86-module-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--gd86-text-light);
  margin-bottom: 1rem;
}

.gd86-module-list {
  list-style: none;
  padding-left: 0;
}

.gd86-module-list li {
  padding: 0.8rem 0;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
}

.gd86-module-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gd86-light-green);
  font-weight: 700;
  font-size: 1.6rem;
}

.gd86-promo-link {
  display: inline-block;
  color: var(--gd86-light-green);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gd86-promo-link:active {
  color: var(--gd86-primary);
}

/* ==================== FOOTER ==================== */
.gd86-footer {
  background: var(--gd86-dark-alt);
  padding: 3rem 1.5rem 10rem;
  border-top: 2px solid var(--gd86-primary);
}

.gd86-footer-content {
  max-width: 43rem;
  margin: 0 auto;
}

.gd86-footer-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--gd86-text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.gd86-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.gd86-footer-link {
  padding: 1rem;
  background: var(--gd86-dark);
  border-radius: 6px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--gd86-text-light);
  transition: all 0.2s ease;
  border: 1px solid var(--gd86-border);
}

.gd86-footer-link:active {
  background: rgba(255, 152, 0, 0.1);
  border-color: var(--gd86-primary);
}

.gd86-partners {
  margin-bottom: 2rem;
}

.gd86-partners-title {
  font-size: 1.4rem;
  color: var(--gd86-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.gd86-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.gd86-partner-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(50%);
}

.gd86-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gd86-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--gd86-border);
}

/* ==================== BOTTOM NAVIGATION ==================== */
.gd86-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background: linear-gradient(180deg, var(--gd86-dark-alt) 0%, var(--gd86-dark) 100%);
  border-top: 2px solid var(--gd86-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 12px var(--gd86-shadow);
}

.gd86-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--gd86-text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.gd86-bottom-nav-item:active {
  transform: scale(0.9);
}

.gd86-bottom-nav-active {
  color: var(--gd86-primary);
}

.gd86-bottom-nav-icon {
  font-size: 2.4rem;
}

.gd86-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
  .gd86-bottom-nav {
    display: none;
  }

  .gd86-main {
    padding-bottom: 3rem;
  }

  .gd86-footer {
    padding-bottom: 3rem;
  }

  .gd86-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gd86-header-actions {
    gap: 1.2rem;
  }

  .gd86-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .gd86-main {
    padding-bottom: 8rem;
  }
}

@media (max-width: 360px) {
  .gd86-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gd86-header-logo-text {
    font-size: 1.6rem;
  }

  .gd86-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1.2rem;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.gd86-text-center {
  text-align: center;
}

.gd86-text-primary {
  color: var(--gd86-primary);
}

.gd86-text-green {
  color: var(--gd86-light-green);
}

.gd86-mb-1 {
  margin-bottom: 1rem;
}

.gd86-mb-2 {
  margin-bottom: 2rem;
}

.gd86-mb-3 {
  margin-bottom: 3rem;
}

.gd86-mt-2 {
  margin-top: 2rem;
}

.gd86-touch-active {
  opacity: 0.7;
}

.gd86-loaded {
  animation: gd86-fadeIn 0.3s ease;
}

@keyframes gd86-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
