/**
 * 88 Lucky PH - Core Stylesheet
 * Prefix: sc1e-
 * All classes use sc1e- prefix to avoid conflicts
 * Color Palette: #1B263B | #FAF0E6 | #F4A460 | #D3D3D3 | #FF1493 | #8B4513
 */

/* CSS Variables */
:root {
  --sc1e-primary: #1B263B;
  --sc1e-secondary: #FAF0E6;
  --sc1e-accent: #F4A460;
  --sc1e-light: #D3D3D3;
  --sc1e-highlight: #FF1493;
  --sc1e-dark: #8B4513;
  --sc1e-bg: #0A0E1A;
  --sc1e-text: #FAF0E6;
  --sc1e-border: rgba(250, 240, 230, 0.1);
  --sc1e-shadow: rgba(0, 0, 0, 0.3);
  --sc1e-transition: all 0.3s ease;
}

/* Reset & Base */
* {
  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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--sc1e-text);
  background: linear-gradient(135deg, var(--sc1e-bg) 0%, var(--sc1e-primary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container & Wrapper */
.sc1e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.sc1e-wrapper {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Header Styles */
.sc1e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--sc1e-primary) 0%, rgba(27, 38, 59, 0.95) 100%);
  backdrop-filter: blur(10px);
  transition: var(--sc1e-transition);
  border-bottom: 1px solid var(--sc1e-border);
}

.sc1e-header-shadow {
  box-shadow: 0 2px 20px var(--sc1e-shadow);
}

.sc1e-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.sc1e-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sc1e-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.sc1e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sc1e-accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.sc1e-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Styles */
.sc1e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: var(--sc1e-transition);
  min-height: 44px;
  white-space: nowrap;
}

.sc1e-btn-primary {
  background: linear-gradient(135deg, var(--sc1e-highlight) 0%, #C71585 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.sc1e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.4);
}

.sc1e-btn-secondary {
  background: linear-gradient(135deg, var(--sc1e-accent) 0%, #DAA520 100%);
  color: var(--sc1e-primary);
  box-shadow: 0 4px 12px rgba(244, 164, 96, 0.3);
}

.sc1e-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 164, 96, 0.4);
}

/* Hamburger Menu */
.xc1e2-hamburger,
.sc1e-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.sc1e-hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--sc1e-accent);
  border-radius: 2px;
  transition: var(--sc1e-transition);
}

.sc1e-hamburger-active .sc1e-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sc1e-hamburger-active .sc1e-hamburger-line:nth-child(2) {
  opacity: 0;
}

.sc1e-hamburger-active .sc1e-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
#xc1e2-mobile-menu,
.sc1e-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--sc1e-primary) 0%, var(--sc1e-bg) 100%);
  z-index: 9999;
  padding: 8rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -5px 0 20px var(--sc1e-shadow);
}

.sc1e-menu-active {
  right: 0 !important;
}

#xc1e2-menu-overlay,
.sc1e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--sc1e-transition);
}

.sc1e-overlay-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.sc1e-menu-list {
  list-style: none;
}

.sc1e-menu-item {
  margin-bottom: 0.5rem;
}

.sc1e-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--sc1e-text);
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 1rem;
  transition: var(--sc1e-transition);
}

.sc1e-menu-link:hover {
  background: rgba(244, 164, 96, 0.1);
  color: var(--sc1e-accent);
  transform: translateX(5px);
}

/* Carousel Styles */
.sc1e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 2rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--sc1e-shadow);
}

.sc1e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sc1e-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.sc1e-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.sc1e-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--sc1e-transition);
}

.sc1e-dot-active {
  background: var(--sc1e-highlight);
  width: 2.5rem;
  border-radius: 5px;
}

/* Game Grid */
.sc1e-games-section {
  margin: 3rem 0;
}

.sc1e-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sc1e-accent);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.sc1e-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sc1e-highlight), transparent);
}

.sc1e-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.sc1e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1rem 0.5rem;
  background: rgba(27, 38, 59, 0.5);
  border-radius: 1rem;
  transition: var(--sc1e-transition);
  border: 1px solid var(--sc1e-border);
}

.sc1e-game-item:hover {
  transform: translateY(-5px);
  background: rgba(27, 38, 59, 0.8);
  box-shadow: 0 8px 20px var(--sc1e-shadow);
  border-color: var(--sc1e-accent);
}

.sc1e-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.sc1e-game-name {
  font-size: 1.1rem;
  color: var(--sc1e-text);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Content Card */
.sc1e-card {
  background: rgba(27, 38, 59, 0.6);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--sc1e-border);
  box-shadow: 0 4px 15px var(--sc1e-shadow);
}

.sc1e-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sc1e-accent);
  margin-bottom: 1.5rem;
}

.sc1e-card-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--sc1e-text);
}

/* Footer Styles */
.sc1e-footer {
  background: linear-gradient(180deg, var(--sc1e-primary) 0%, var(--sc1e-bg) 100%);
  padding: 3rem 0 10rem;
  border-top: 1px solid var(--sc1e-border);
  margin-top: 4rem;
}

.sc1e-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 2rem 0;
}

.sc1e-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--sc1e-transition);
}

.sc1e-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.sc1e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sc1e-footer-link {
  color: var(--sc1e-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--sc1e-transition);
}

.sc1e-footer-link:hover {
  color: var(--sc1e-accent);
}

.sc1e-copyright {
  text-align: center;
  color: var(--sc1e-light);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sc1e-border);
}

/* Mobile Bottom Navigation */
.sc1e-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.95) 0%, var(--sc1e-primary) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6.4rem;
  border-top: 1px solid var(--sc1e-border);
  box-shadow: 0 -2px 20px var(--sc1e-shadow);
}

.sc1e-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sc1e-light);
  transition: var(--sc1e-transition);
  cursor: pointer;
  position: relative;
}

.sc1e-mobile-nav-item:hover,
.sc1e-nav-active {
  color: var(--sc1e-highlight);
  transform: translateY(-3px);
}

.sc1e-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.sc1e-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .sc1e-mobile-nav {
    display: none;
  }

  .sc1e-wrapper {
    padding-bottom: 3rem;
  }
}

/* Add padding for mobile nav */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Promo Link */
.sc1e-promo-link {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--sc1e-highlight) 0%, #C71585 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 1rem 0.5rem;
  transition: var(--sc1e-transition);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
  cursor: pointer;
  text-align: center;
}

.sc1e-promo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

/* List Styles */
.sc1e-list {
  list-style: none;
  padding-left: 0;
}

.sc1e-list-item {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  line-height: 1.7;
}

.sc1e-list-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--sc1e-accent);
  font-weight: bold;
}

/* Responsive Typography */
h1, .sc1e-h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sc1e-accent);
  margin-bottom: 2rem;
}

h2, .sc1e-h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sc1e-accent);
  margin: 2.5rem 0 1.5rem;
}

h3, .sc1e-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sc1e-accent);
  margin: 2rem 0 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Utility Classes */
.sc1e-text-center {
  text-align: center;
}

.sc1e-text-highlight {
  color: var(--sc1e-highlight);
  font-weight: 600;
}

.sc1e-mt-1 { margin-top: 1rem; }
.sc1e-mt-2 { margin-top: 2rem; }
.sc1e-mt-3 { margin-top: 3rem; }
.sc1e-mb-1 { margin-bottom: 1rem; }
.sc1e-mb-2 { margin-bottom: 2rem; }
.sc1e-mb-3 { margin-bottom: 3rem; }

/* Loading Spinner */
#xc1e2-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sc1e-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.sc1e-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--sc1e-border);
  border-top-color: var(--sc1e-highlight);
  border-radius: 50%;
  animation: sc1e-spin 1s linear infinite;
}

@keyframes sc1e-spin {
  to { transform: rotate(360deg); }
}
