/* 365jl vip - Core CSS Layout */
/* All classes prefixed with s510- to avoid conflicts */

/* CSS Custom Properties */
:root {
  --s510-primary: #CD853F;
  --s510-secondary: #34495E; 
  --s510-accent: #FFCC33;
  --s510-highlight: #FF8C00;
  --s510-bg-dark: #2c3e50;
  --s510-bg-light: #ecf0f1;
  --s510-text-light: #ffffff;
  --s510-text-dark: #2c3e50;
  --s510-border: #bdc3c7;
  --s510-shadow: rgba(0,0,0,0.1);
  --s510-transition: all 0.3s ease;
}

/* Base Reset */
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s510-text-dark);
  background: var(--s510-bg-light);
}

/* Mobile-first responsive containers */
.s510-container {
  width: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.s510-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.s510-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--s510-secondary);
  color: var(--s510-text-light);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--s510-shadow);
}

.s510-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.s510-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s510-text-light);
}

.s510-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.s510-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s510-accent);
}

.s510-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s510-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--s510-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.s510-btn-primary {
  background: var(--s510-primary);
  color: var(--s510-text-light);
}

.s510-btn-primary:hover {
  background: #b8763a;
  transform: translateY(-1px);
}

.s510-btn-accent {
  background: var(--s510-accent);
  color: var(--s510-text-dark);
}

.s510-btn-accent:hover {
  background: #e6b82e;
  transform: translateY(-1px);
}

.s510-menu-toggle {
  background: none;
  border: none;
  color: var(--s510-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.4rem;
  transition: var(--s510-transition);
}

.s510-menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* Mobile Navigation */
.s510-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: var(--s510-bg-dark);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.s510-mobile-nav.s510-menu-open {
  left: 0;
}

.s510-nav-header {
  padding: 2rem;
  border-bottom: 1px solid var(--s510-border);
  background: var(--s510-secondary);
}

.s510-nav-menu {
  list-style: none;
  padding: 1rem 0;
}

.s510-nav-item {
  display: block;
}

.s510-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--s510-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--s510-transition);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.s510-nav-link:hover {
  background: var(--s510-primary);
  color: var(--s510-text-light);
}

/* Main Content */
.s510-main {
  flex: 1;
  margin-top: 7rem;
  margin-bottom: 7rem;
  padding: 2rem 0;
}

/* Carousel Styles */
.s510-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
}

.s510-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.s510-slide.s510-active {
  opacity: 1;
}

.s510-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s510-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s510-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--s510-transition);
}

.s510-indicator.s510-active {
  background: var(--s510-accent);
}

/* Game Grid */
.s510-game-section {
  margin: 3rem 0;
}

.s510-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--s510-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.s510-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.s510-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px var(--s510-shadow);
  cursor: pointer;
  transition: var(--s510-transition);
  text-decoration: none;
  color: inherit;
}

.s510-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.s510-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.s510-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--s510-text-dark);
  line-height: 1.3;
}

/* Content Sections */
.s510-content-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--s510-shadow);
}

.s510-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s510-secondary);
  margin-bottom: 1.5rem;
}

.s510-content-text {
  line-height: 1.6;
  color: var(--s510-text-dark);
  margin-bottom: 1rem;
}

.s510-feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.s510-feature-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f2f6;
}

.s510-feature-item:last-child {
  border-bottom: none;
}

.s510-feature-icon {
  color: var(--s510-primary);
  font-size: 1.6rem;
  margin-right: 1rem;
}

/* Bottom Navigation */
.s510-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--s510-secondary);
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--s510-shadow);
}

.s510-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 43rem;
  margin: 0 auto;
}

.s510-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.6rem;
  transition: var(--s510-transition);
  min-width: 5rem;
}

.s510-bottom-nav-item.s510-active {
  background: rgba(255,204,51,0.2);
}

.s510-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--s510-text-light);
}

.s510-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: var(--s510-text-light);
}

.s510-bottom-nav-item.s510-active .s510-bottom-nav-icon {
  color: var(--s510-accent);
}

.s510-bottom-nav-text {
  font-size: 1rem;
  color: var(--s510-text-light);
}

.s510-bottom-nav-item.s510-active .s510-bottom-nav-text {
  color: var(--s510-accent);
}

/* Footer */
.s510-footer {
  background: var(--s510-bg-dark);
  color: var(--s510-text-light);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.s510-footer-content {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.s510-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s510-footer-link {
  color: var(--s510-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.8rem;
  border-radius: 0.4rem;
  transition: var(--s510-transition);
  text-align: center;
  background: rgba(255,255,255,0.1);
}

.s510-footer-link:hover {
  background: var(--s510-primary);
  color: var(--s510-text-light);
}

.s510-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s510-partner-logo {
  width: 100%;
  height: 3rem;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: var(--s510-transition);
}

.s510-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.s510-footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

/* Utility Classes */
.s510-text-center { text-align: center; }
.s510-text-bold { font-weight: 700; }
.s510-mb-1 { margin-bottom: 1rem; }
.s510-mb-2 { margin-bottom: 2rem; }
.s510-mt-1 { margin-top: 1rem; }
.s510-mt-2 { margin-top: 2rem; }
.s510-hidden { display: none; }
.s510-visible { display: block; }

/* Responsive Breakpoints */
@media (min-width: 48rem) {
  .s510-container {
    max-width: 76.8rem;
  }
  
  .s510-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }
  
  .s510-mobile-nav {
    display: none;
  }
  
  .s510-bottom-nav {
    display: none;
  }
}

@media (min-width: 64rem) {
  .s510-container {
    max-width: 120rem;
  }
  
  .s510-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }
}

/* Loading States */
.s510-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.s510-lazy.s510-loaded {
  opacity: 1;
}

/* Animations */
@keyframes s510-fadeIn {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: translateY(0); }
}

.s510-fade-in {
  animation: s510-fadeIn 0.6s ease forwards;
}

@keyframes s510-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.s510-pulse {
  animation: s510-pulse 2s infinite;
}