/**
 * 588jl ph - Main Stylesheet
 * All classes use sd6e- prefix to avoid conflicts
 * Mobile-first responsive design
 */

/* CSS Variables - Color Palette */
:root {
  --sd6e-bg-dark: #2C2C2C;
  --sd6e-purple-light: #CC99FF;
  --sd6e-purple-deep: #8B008B;
  --sd6e-sandy: #F4A460;
  --sd6e-plum: #DDA0DD;
  --sd6e-white: #FFFFFF;
  --sd6e-black: #000000;
  --sd6e-gray-light: #F5F5F5;
  --sd6e-gray-medium: #CCCCCC;
  --sd6e-text-primary: #FFFFFF;
  --sd6e-text-secondary: #DDA0DD;
  --sd6e-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --sd6e-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  background-color: var(--sd6e-bg-dark);
  color: var(--sd6e-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.sd6e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.sd6e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sd6e-purple-deep) 0%, var(--sd6e-bg-dark) 100%);
  box-shadow: var(--sd6e-shadow);
  padding: 0.8rem 0;
}

.sd6e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sd6e-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--sd6e-text-primary);
  font-size: 1.6rem;
  font-weight: 700;
}

.sd6e-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sd6e-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.sd6e-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.sd6e-btn-primary {
  background: linear-gradient(135deg, var(--sd6e-purple-light) 0%, var(--sd6e-plum) 100%);
  color: var(--sd6e-purple-deep);
}

.sd6e-btn-secondary {
  background: transparent;
  color: var(--sd6e-purple-light);
  border: 2px solid var(--sd6e-purple-light);
}

.sd6e-btn:hover,
.sd6e-btn:active {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(204, 153, 255, 0.5);
}

/* Menu Toggle */
.sd6e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.sd6e-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--sd6e-purple-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.sd6e-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--sd6e-purple-deep) 0%, var(--sd6e-bg-dark) 100%);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.sd6e-menu-open {
  left: 0;
}

.sd6e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sd6e-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.sd6e-menu-list {
  list-style: none;
  padding: 0 1rem;
}

.sd6e-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--sd6e-text-primary);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(204, 153, 255, 0.1);
  transition: all 0.3s ease;
}

.sd6e-menu-link:hover {
  background-color: rgba(204, 153, 255, 0.1);
  padding-left: 2rem;
  color: var(--sd6e-purple-light);
}

.sd6e-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--sd6e-purple-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main Content */
.sd6e-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.sd6e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--sd6e-shadow-lg);
}

.sd6e-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sd6e-slide-active {
  opacity: 1;
}

.sd6e-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd6e-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.sd6e-slide-title {
  color: var(--sd6e-text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sd6e-slide-cta {
  color: var(--sd6e-purple-light);
  font-weight: 600;
  cursor: pointer;
}

/* Section Styles */
.sd6e-section {
  margin-bottom: 3rem;
}

.sd6e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd6e-purple-light);
  margin-bottom: 1.5rem;
  text-align: center;
}

.sd6e-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sd6e-plum);
  margin-bottom: 1rem;
}

/* Game Grid */
.sd6e-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.sd6e-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sd6e-purple-deep) 0%, var(--sd6e-bg-dark) 100%);
  box-shadow: var(--sd6e-shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sd6e-game-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--sd6e-shadow-lg);
}

.sd6e-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sd6e-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sd6e-text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styles */
.sd6e-card {
  background: linear-gradient(135deg, rgba(139, 0, 139, 0.3) 0%, rgba(44, 44, 44, 0.5) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sd6e-shadow);
  border: 1px solid rgba(204, 153, 255, 0.2);
}

.sd6e-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sd6e-purple-light);
  margin-bottom: 1rem;
}

.sd6e-card-content {
  color: var(--sd6e-text-secondary);
  line-height: 1.6;
}

/* Promotional Link */
.sd6e-promo-link {
  color: var(--sd6e-sandy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--sd6e-sandy);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sd6e-promo-link:hover {
  color: var(--sd6e-purple-light);
  border-color: var(--sd6e-purple-light);
}

/* Feature List */
.sd6e-feature-list {
  list-style: none;
  padding: 0;
}

.sd6e-feature-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(204, 153, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sd6e-feature-item:last-child {
  border-bottom: none;
}

.sd6e-feature-icon {
  font-size: 1.5rem;
  color: var(--sd6e-purple-light);
}

/* RTP Stats */
.sd6e-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sd6e-rtp-item {
  background: linear-gradient(135deg, rgba(244, 164, 96, 0.2) 0%, rgba(44, 44, 44, 0.5) 100%);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(244, 164, 96, 0.3);
}

.sd6e-rtp-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd6e-sandy);
}

.sd6e-rtp-label {
  font-size: 1.1rem;
  color: var(--sd6e-plum);
  margin-top: 0.3rem;
}

/* Bottom Navigation */
.sd6e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--sd6e-purple-deep) 0%, var(--sd6e-bg-dark) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(204, 153, 255, 0.2);
}

.sd6e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--sd6e-text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.sd6e-nav-item:hover {
  transform: scale(1.1);
  color: var(--sd6e-purple-light);
}

.sd6e-nav-icon {
  font-size: 22px;
}

.sd6e-nav-text {
  font-size: 10px;
  font-weight: 500;
}

.sd6e-nav-active {
  color: var(--sd6e-sandy);
}

.sd6e-nav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--sd6e-sandy);
  border-radius: 0 0 3px 3px;
}

/* Footer */
.sd6e-footer {
  background: linear-gradient(180deg, var(--sd6e-bg-dark) 0%, rgba(139, 0, 139, 0.3) 100%);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(204, 153, 255, 0.2);
}

.sd6e-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sd6e-purple-light);
  margin-bottom: 1rem;
  text-align: center;
}

.sd6e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.sd6e-footer-link {
  color: var(--sd6e-plum);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.sd6e-footer-link:hover {
  color: var(--sd6e-sandy);
}

.sd6e-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.sd6e-partner-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.sd6e-partner-img:hover {
  opacity: 1;
}

.sd6e-copyright {
  text-align: center;
  color: var(--sd6e-gray-medium);
  font-size: 1.1rem;
  padding: 1rem;
  border-top: 1px solid rgba(204, 153, 255, 0.1);
}

/* H1 Title */
.sd6e-h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd6e-text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .sd6e-bottom-nav {
    display: none;
  }

  .sd6e-main {
    padding-bottom: 2rem;
  }

  .sd6e-container {
    max-width: 1200px;
  }

  .sd6e-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Utility Classes */
.sd6e-text-center {
  text-align: center;
}

.sd6e-mb-1 {
  margin-bottom: 1rem;
}

.sd6e-mb-2 {
  margin-bottom: 2rem;
}

.sd6e-mb-3 {
  margin-bottom: 3rem;
}

.sd6e-mt-1 {
  margin-top: 1rem;
}

.sd6e-mt-2 {
  margin-top: 2rem;
}
