/* PH Sky Platform - Main Stylesheet */
/* All CSS classes prefixed with g886- to avoid conflicts */
/* Color palette: #D2B48C #DDA0DD #2C3E50 #F5DEB3 #FFDEAD */

:root {
  --g886-primary: #DDA0DD;
  --g886-secondary: #D2B48C;
  --g886-dark: #2C3E50;
  --g886-light: #F5DEB3;
  --g886-accent: #FFDEAD;
  --g886-text-light: #FFDEAD;
  --g886-text-dark: #2C3E50;
  --g886-bg-dark: #2C3E50;
  --g886-bg-light: #F5DEB3;
  --g886-border: #D2B48C;
  --g886-shadow: rgba(44, 62, 80, 0.15);
  --g886-overlay: rgba(44, 62, 80, 0.85);
  font-size: 62.5%; /* 1rem = 10px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g886-text-light);
  background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container and Layout */
.g886-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.g886-wrapper {
  padding-bottom: 6.4rem; /* Space for fixed bottom nav */
}

/* Header and Navigation */
.g886-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2C3E50 0%, #34495e 100%);
  box-shadow: 0 2px 8px var(--g886-shadow);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.g886-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.g886-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g886-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.g886-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g886-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g886-header-btns {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.g886-btn-register,
.g886-btn-login {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 3.6rem;
  white-space: nowrap;
}

.g886-btn-register {
  background: linear-gradient(135deg, var(--g886-primary) 0%, #c98fd9 100%);
  color: #fff;
}

.g886-btn-login {
  background: linear-gradient(135deg, var(--g886-secondary) 0%, #c9a876 100%);
  color: #fff;
}

.g886-menu-toggle {
  background: none;
  border: none;
  color: var(--g886-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation Menu */
.g886-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--g886-dark);
  transition: right 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
  padding: 2rem 0;
}

.g886-mobile-nav.site886-active {
  right: 0;
}

.g886-nav-list {
  list-style: none;
  padding: 0;
}

.g886-nav-item {
  border-bottom: 1px solid rgba(221, 160, 221, 0.2);
}

.g886-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--g886-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.g886-nav-link:hover,
.g886-nav-link.g886-active {
  background: rgba(221, 160, 221, 0.15);
  color: var(--g886-primary);
  padding-left: 2.5rem;
}

/* Overlay */
.g886-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g886-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.g886-overlay.site886-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content Area */
.g886-main {
  margin-top: 6rem;
  padding: 0 0 2rem;
}

/* Carousel/Slider */
.g886-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  margin: 2rem 0;
}

.g886-carousel-inner {
  position: relative;
  width: 100%;
  height: 200px;
}

.g886-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g886-carousel-item.g886-active {
  opacity: 1;
}

.g886-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.g886-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.g886-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;
  border: none;
  padding: 0;
}

.g886-carousel-dot.g886-active {
  background: var(--g886-primary);
  width: 2.4rem;
  border-radius: 0.4rem;
}

/* Section Styles */
.g886-section {
  margin: 3rem 0;
  padding: 0 1.5rem;
}

.g886-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g886-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--g886-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g886-section-title i {
  font-size: 2.4rem;
}

/* Game Grid */
.g886-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.g886-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.g886-game-item:active {
  transform: scale(0.95);
}

.g886-game-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.g886-game-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--g886-shadow);
  background: rgba(255, 255, 255, 0.05);
}

.g886-game-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g886-game-name {
  font-size: 1.1rem;
  color: var(--g886-text-light);
  margin-top: 0.6rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6rem;
}

/* CTA Buttons */
.g886-cta-btn,
.g886-promo-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 4.4rem;
  background: linear-gradient(135deg, var(--g886-primary) 0%, #c98fd9 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(221, 160, 221, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g886-cta-btn:hover,
.g886-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(221, 160, 221, 0.6);
}

.g886-cta-btn:active,
.g886-promo-btn:active {
  transform: translateY(0);
}

/* Card Component */
.g886-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px var(--g886-shadow);
  border: 1px solid rgba(221, 160, 221, 0.2);
}

.g886-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g886-primary);
  margin-bottom: 1rem;
}

.g886-card-content {
  color: var(--g886-text-light);
  line-height: 1.6;
}

.g886-card-content p {
  margin-bottom: 1rem;
}

.g886-card-content ul,
.g886-card-content ol {
  margin: 1rem 0 1rem 2rem;
}

.g886-card-content li {
  margin-bottom: 0.8rem;
}

.g886-card-content strong {
  color: var(--g886-primary);
  font-weight: 600;
}

/* FAQ/Accordion */
.g886-accordion {
  margin: 2rem 0;
}

.g886-accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(221, 160, 221, 0.2);
}

.g886-accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--g886-primary);
  font-size: 1.5rem;
  min-height: 4.4rem;
}

.g886-accordion-header::after {
  content: '+';
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.g886-accordion-item.g886-active .g886-accordion-header::after {
  transform: rotate(45deg);
}

.g886-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.g886-accordion-item.g886-active .g886-accordion-content {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem;
}

/* Footer */
.g886-footer {
  background: var(--g886-dark);
  padding: 3rem 1.5rem 8rem;
  margin-top: 4rem;
  border-top: 2px solid var(--g886-border);
}

.g886-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g886-footer-link {
  color: var(--g886-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.8rem;
  display: block;
  transition: color 0.3s ease;
}

.g886-footer-link:hover {
  color: var(--g886-primary);
}

.g886-partners {
  margin: 2rem 0;
}

.g886-partners-title {
  font-size: 1.4rem;
  color: var(--g886-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.g886-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g886-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(0.3);
}

.g886-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.g886-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g886-secondary);
  padding-top: 2rem;
  border-top: 1px solid rgba(221, 160, 221, 0.2);
}

/* Bottom Fixed Navigation */
.g886-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2C3E50 0%, #253544 100%);
  box-shadow: 0 -2px 8px var(--g886-shadow);
  z-index: 999;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
}

.g886-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0.5rem 0;
}

.g886-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--g886-text-light);
  transition: all 0.3s ease;
  min-height: 4.4rem;
  padding: 0.5rem;
}

.g886-bottom-nav-item i {
  font-size: 2.4rem;
}

.g886-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

.g886-bottom-nav-item:hover,
.g886-bottom-nav-item.g886-active {
  color: var(--g886-primary);
  transform: translateY(-2px);
}

/* Utility Classes */
.g886-text-center {
  text-align: center;
}

.g886-text-primary {
  color: var(--g886-primary);
}

.g886-text-bold {
  font-weight: 700;
}

.g886-mt-1 {
  margin-top: 1rem;
}

.g886-mt-2 {
  margin-top: 2rem;
}

.g886-mb-1 {
  margin-bottom: 1rem;
}

.g886-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .g886-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .g886-game-name {
    font-size: 1rem;
  }

  .g886-site-name {
    font-size: 1.6rem;
  }
}

@media (min-width: 431px) {
  body {
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 50%, #2C3E50 100%);
  }
}

/* Loading state */
.g886-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Back to top button */
.g886-back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--g886-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(221, 160, 221, 0.4);
}

.g886-back-to-top.g886-visible {
  opacity: 1;
  visibility: visible;
}

.g886-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(221, 160, 221, 0.6);
}

/* Link styles */
a.g886-text-link {
  color: var(--g886-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

a.g886-text-link:hover {
  color: var(--g886-secondary);
}
