/**
 * jltt ph - Theme Stylesheet
 * All classes use se86- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --se86-primary: #FF69B4;
  --se86-secondary: #FF1493;
  --se86-dark: #0E1621;
  --se86-light: #CCCCCC;
  --se86-white: #FFFFFF;
  --se86-gray: #666666;
  --se86-success: #28a745;
  --se86-danger: #dc3545;
  --se86-warning: #ffc107;
  --se86-info: #17a2b8;
  --se86-font-size-base: 1.6rem;
  --se86-line-height: 1.5;
  --se86-border-radius: 0.8rem;
  --se86-transition: all 0.3s ease;
  --se86-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
  --se86-shadow-lg: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.4);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--se86-font-size-base);
  line-height: var(--se86-line-height);
  color: var(--se86-light);
  background-color: var(--se86-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.se86-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.se86-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--se86-dark);
  min-height: 100vh;
  position: relative;
}

/* Header */
.se86-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--se86-dark) 0%, #1a2634 100%);
  box-shadow: var(--se86-shadow);
  transition: var(--se86-transition);
  max-width: 430px;
  margin: 0 auto;
}

.se86-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.se86-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--se86-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.se86-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.se86-header-buttons {
  display: flex;
  gap: 1rem;
}

.se86-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--se86-border-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--se86-transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.se86-btn-primary {
  background: linear-gradient(135deg, var(--se86-primary) 0%, var(--se86-secondary) 100%);
  color: var(--se86-white);
  box-shadow: 0 0.4rem 1.2rem rgba(255, 105, 180, 0.4);
}

.se86-btn-primary:hover,
.se86-btn-primary:active {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.6rem rgba(255, 105, 180, 0.5);
}

.se86-btn-secondary {
  background: transparent;
  color: var(--se86-primary);
  border: 0.2rem solid var(--se86-primary);
}

.se86-btn-secondary:hover,
.se86-btn-secondary:active {
  background: var(--se86-primary);
  color: var(--se86-white);
}

.se86-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--se86-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Mobile Menu */
.se86-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 22, 33, 0.98);
  backdrop-filter: blur(1rem);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 430px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.se86-mobile-menu.se86-menu-open {
  transform: translateX(0);
}

.se86-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.se86-menu-close {
  background: none;
  border: none;
  color: var(--se86-light);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.se86-menu-content {
  padding: 2rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 8rem);
}

.se86-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--se86-light);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: var(--se86-border-radius);
  margin-bottom: 0.8rem;
  transition: var(--se86-transition);
  border-left: 0.3rem solid transparent;
}

.se86-menu-link:hover,
.se86-menu-link:active {
  background: rgba(255, 105, 180, 0.1);
  border-left-color: var(--se86-primary);
  padding-left: 2rem;
}

.se86-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--se86-transition);
}

.se86-mobile-menu.se86-menu-open + .se86-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.se86-main {
  padding-top: 7rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.se86-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--se86-border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--se86-shadow-lg);
}

.se86-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.se86-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.se86-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se86-carousel-slide.se86-slide-active {
  opacity: 1;
}

.se86-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.se86-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--se86-transition);
}

.se86-carousel-indicator.se86-indicator-active {
  background: var(--se86-primary);
  transform: scale(1.3);
}

/* Section */
.se86-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.se86-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--se86-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.se86-section-subtitle {
  font-size: 1.6rem;
  color: var(--se86-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.se86-section-content {
  color: var(--se86-light);
  font-size: 1.4rem;
  line-height: 1.8;
}

/* Game Grid */
.se86-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.se86-game-card {
  background: linear-gradient(135deg, #1a2634 0%, rgba(255, 105, 180, 0.05) 100%);
  border-radius: var(--se86-border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--se86-transition);
  border: 0.1rem solid rgba(255, 105, 180, 0.2);
  text-decoration: none;
  display: block;
}

.se86-game-card:hover,
.se86-game-card:active {
  transform: translateY(-0.3rem);
  box-shadow: var(--se86-shadow-lg);
  border-color: var(--se86-primary);
}

.se86-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(20, 20, 33, 0.2) 100%);
}

.se86-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.1rem;
  color: var(--se86-light);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Section */
.se86-category {
  margin-bottom: 3rem;
}

.se86-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.se86-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--se86-primary);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.se86-category-count {
  font-size: 1.2rem;
  color: var(--se86-gray);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
}

/* Feature Card */
.se86-feature-card {
  background: linear-gradient(135deg, #1a2634 0%, rgba(255, 105, 180, 0.05) 100%);
  border-radius: var(--se86-border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid rgba(255, 105, 180, 0.2);
  transition: var(--se86-transition);
}

.se86-feature-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--se86-shadow-lg);
  border-color: var(--se86-primary);
}

.se86-feature-icon {
  font-size: 3rem;
  color: var(--se86-primary);
  margin-bottom: 1rem;
}

.se86-feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--se86-light);
  margin-bottom: 1rem;
}

.se86-feature-text {
  font-size: 1.4rem;
  color: var(--se86-gray);
  line-height: 1.8;
}

/* FAQ Item */
.se86-faq-item {
  background: linear-gradient(135deg, #1a2634 0%, rgba(255, 105, 180, 0.05) 100%);
  border-radius: var(--se86-border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 0.1rem solid rgba(255, 105, 180, 0.2);
}

.se86-faq-question {
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--se86-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.se86-faq-question::after {
  content: '+';
  font-size: 2rem;
  color: var(--se86-primary);
  transition: var(--se86-transition);
}

.se86-faq-item.active .se86-faq-question::after {
  transform: rotate(45deg);
}

.se86-faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 1.4rem;
  color: var(--se86-gray);
  line-height: 1.8;
  display: none;
}

.se86-faq-item.active .se86-faq-answer {
  display: block;
}

/* Promotional Link */
.se86-promo-link {
  color: var(--se86-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 0.1rem solid var(--se86-primary);
  transition: var(--se86-transition);
}

.se86-promo-link:hover {
  color: var(--se86-secondary);
  border-bottom-color: var(--se86-secondary);
}

/* Bottom Navigation */
.se86-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--se86-dark) 0%, #1a2634 100%);
  box-shadow: 0 -0.2rem 0.8rem rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  border-top: 0.1rem solid rgba(255, 105, 180, 0.3);
}

.se86-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0 1rem;
}

.se86-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: var(--se86-gray);
  transition: var(--se86-transition);
  border-radius: var(--se86-border-radius);
  padding: 0.5rem;
}

.se86-nav-item:hover,
.se86-nav-item.se86-nav-active {
  color: var(--se86-primary);
  background: rgba(255, 105, 180, 0.1);
  transform: scale(1.05);
}

.se86-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.se86-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Footer */
.se86-footer {
  background: linear-gradient(135deg, #0a1018 0%, #141c26 100%);
  padding: 3rem 1.5rem 8rem;
  margin-top: 3rem;
  border-top: 0.1rem solid rgba(255, 105, 180, 0.2);
}

.se86-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.se86-footer-link {
  color: var(--se86-light);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: var(--se86-border-radius);
  transition: var(--se86-transition);
  border: 0.1rem solid rgba(255, 105, 180, 0.3);
}

.se86-footer-link:hover {
  background: var(--se86-primary);
  border-color: var(--se86-primary);
  color: var(--se86-white);
}

.se86-partners {
  margin: 2rem 0;
}

.se86-partners-title {
  font-size: 1.4rem;
  color: var(--se86-gray);
  text-align: center;
  margin-bottom: 1rem;
}

.se86-partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.se86-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--se86-transition);
}

.se86-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.se86-copyright {
  text-align: center;
  color: var(--se86-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Utility Classes */
.se86-text-center {
  text-align: center;
}

.se86-text-primary {
  color: var(--se86-primary);
}

.se86-text-secondary {
  color: var(--se86-secondary);
}

.se86-mt-1 { margin-top: 1rem; }
.se86-mt-2 { margin-top: 2rem; }
.se86-mt-3 { margin-top: 3rem; }
.se86-mb-1 { margin-bottom: 1rem; }
.se86-mb-2 { margin-bottom: 2rem; }
.se86-mb-3 { margin-bottom: 3rem; }

.se86-p-1 { padding: 1rem; }
.se86-p-2 { padding: 2rem; }
.se86-p-3 { padding: 3rem; }

/* Responsive Design */
@media (min-width: 769px) {
  .se86-bottom-nav {
    display: none;
  }

  .se86-main {
    padding-bottom: 2rem;
  }

  .se86-footer {
    padding-bottom: 2rem;
  }

  .se86-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .se86-header-buttons {
    display: none;
  }

  .se86-menu-toggle {
    display: block;
  }
}

/* Animations */
@keyframes se86-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.se86-fade-in {
  animation: se86-fadeIn 0.6s ease forwards;
}

@keyframes se86-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.se86-pulse {
  animation: se86-pulse 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.8rem;
}

::-webkit-scrollbar-track {
  background: var(--se86-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--se86-primary);
  border-radius: 0.4rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--se86-secondary);
}

/* Selection */
::selection {
  background: var(--se86-primary);
  color: var(--se86-white);
}

::-moz-selection {
  background: var(--se86-primary);
  color: var(--se86-white);
}
