/* GamesPHP Master Stylesheet */
/* All classes use s8b6- prefix for namespace isolation */

:root {
  --s8b6-primary: #BC8F8F;
  --s8b6-primary-dark: #8B6F6F;
  --s8b6-primary-light: #D4A5A5;
  --s8b6-bg-dark: #0E1621;
  --s8b6-bg-darker: #070C11;
  --s8b6-text-light: #D3D3D3;
  --s8b6-text-cream: #FAF0E6;
  --s8b6-text-muted: #999999;
  --s8b6-accent-gold: #DAA520;
  --s8b6-accent-cyan: #00CED1;
  --s8b6-border: #1a2332;
  --s8b6-success: #4CAF50;
  --s8b6-warning: #FFC107;
  --s8b6-error: #F44336;
  --s8b6-shadow: rgba(0, 0, 0, 0.3);
  --s8b6-transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--s8b6-bg-dark);
  color: var(--s8b6-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container and Layout */
.s8b6-container {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.s8b6-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.s8b6-grid {
  display: grid;
  gap: 1.5rem;
}

/* Header Styles */
.s8b6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s8b6-bg-darker) 0%, #1a2540 100%);
  border-bottom: 2px solid var(--s8b6-primary);
  box-shadow: 0 4px 12px var(--s8b6-shadow);
  max-width: 100%;
}

.s8b6-header-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.s8b6-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s8b6-text-cream);
  font-weight: 700;
  font-size: 1.6rem;
  flex: 1;
  min-width: 150px;
}

.s8b6-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--s8b6-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--s8b6-bg-dark);
}

.s8b6-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.s8b6-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--s8b6-text-cream);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--s8b6-transition);
}

.s8b6-hamburger:hover,
.s8b6-hamburger.s8b6-active {
  color: var(--s8b6-primary);
  transform: scale(1.1);
}

.s8b6-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s8b6-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.s8b6-btn-primary {
  background: linear-gradient(135deg, var(--s8b6-primary) 0%, var(--s8b6-primary-dark) 100%);
  color: var(--s8b6-text-cream);
  box-shadow: 0 4px 8px rgba(188, 143, 143, 0.3);
}

.s8b6-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(188, 143, 143, 0.4);
}

.s8b6-btn-secondary {
  background: transparent;
  color: var(--s8b6-primary);
  border: 2px solid var(--s8b6-primary);
}

.s8b6-btn-secondary:hover {
  background: var(--s8b6-primary);
  color: var(--s8b6-text-cream);
  transform: scale(1.05);
}

/* Navigation Menu */
.s8b6-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--s8b6-bg-darker);
  border-bottom: 2px solid var(--s8b6-primary);
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.s8b6-nav.s8b6-active {
  display: flex;
}

.s8b6-nav-link {
  padding: 0.8rem 1.2rem;
  color: var(--s8b6-text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--s8b6-transition);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
}

.s8b6-nav-link:hover,
.s8b6-nav-link.s8b6-active {
  background: var(--s8b6-primary);
  color: var(--s8b6-bg-dark);
  padding-left: 1.6rem;
}

.s8b6-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.s8b6-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--s8b6-bg-darker);
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  padding: 1rem;
  gap: 0.8rem;
}

.s8b6-mobile-menu.s8b6-active {
  display: flex;
}

.s8b6-mobile-menu-link {
  padding: 1rem 1.2rem;
  color: var(--s8b6-text-light);
  text-decoration: none;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: var(--s8b6-transition);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s8b6-mobile-menu-link:hover {
  background: rgba(188, 143, 143, 0.1);
  border-left-color: var(--s8b6-primary);
  color: var(--s8b6-primary);
}

/* Main Content */
main {
  flex: 1;
  padding-top: 70px;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
}

/* Carousel/Slider */
.s8b6-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}

.s8b6-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--s8b6-transition);
  position: relative;
}

.s8b6-carousel-slide.s8b6-active {
  display: block;
}

.s8b6-carousel-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.s8b6-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.s8b6-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--s8b6-transition);
  border: none;
  padding: 0;
}

.s8b6-carousel-dot.s8b6-active {
  background: var(--s8b6-primary);
  width: 24px;
  border-radius: 4px;
}

/* Titles and Headings */
.s8b6-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--s8b6-text-cream);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.s8b6-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s8b6-primary);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--s8b6-primary);
}

.s8b6-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s8b6-text-light);
  margin-bottom: 1.5rem;
}

/* Game Grid */
.s8b6-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s8b6-game-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--s8b6-transition);
  text-align: center;
}

.s8b6-game-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--s8b6-bg-darker);
  object-fit: cover;
  border: 2px solid var(--s8b6-border);
  transition: var(--s8b6-transition);
}

.s8b6-game-card:hover .s8b6-game-image {
  border-color: var(--s8b6-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--s8b6-shadow);
}

.s8b6-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--s8b6-text-light);
  text-decoration: none;
  transition: var(--s8b6-transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.s8b6-game-name:hover {
  color: var(--s8b6-primary);
}

/* Content Sections */
.s8b6-content-section {
  background: rgba(26, 35, 50, 0.5);
  border: 1px solid var(--s8b6-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.s8b6-content-section h3 {
  color: var(--s8b6-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.s8b6-content-section p {
  color: var(--s8b6-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.s8b6-content-section ul,
.s8b6-content-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.s8b6-content-section li {
  margin-bottom: 0.5rem;
  color: var(--s8b6-text-light);
}

/* Promo Links */
.s8b6-promo-link,
.s8b6-promo-btn {
  color: var(--s8b6-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-size: 1.4rem;
  transition: var(--s8b6-transition);
  display: inline;
}

.s8b6-promo-link:hover,
.s8b6-promo-btn:hover {
  color: var(--s8b6-accent-gold);
  text-decoration: underline;
}

.s8b6-promo-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--s8b6-primary);
  color: var(--s8b6-bg-dark);
  border-radius: 4px;
  font-size: 1.3rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.s8b6-promo-btn:hover {
  background: var(--s8b6-primary-light);
  color: var(--s8b6-bg-dark);
  text-decoration: none;
}

/* Stats and Data Display */
.s8b6-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s8b6-stat-card {
  background: var(--s8b6-bg-darker);
  border: 1px solid var(--s8b6-border);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
}

.s8b6-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--s8b6-primary);
  margin-bottom: 0.5rem;
}

.s8b6-stat-label {
  font-size: 1.2rem;
  color: var(--s8b6-text-muted);
}

/* Bottom Navigation */
.s8b6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s8b6-bg-darker) 0%, #1a2540 100%);
  border-top: 2px solid var(--s8b6-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 64px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -4px 12px var(--s8b6-shadow);
}

.s8b6-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem;
  border: none;
  background: none;
  color: var(--s8b6-text-muted);
  cursor: pointer;
  transition: var(--s8b6-transition);
  min-height: 60px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.s8b6-bottom-nav-btn:hover,
.s8b6-bottom-nav-btn.s8b6-active {
  color: var(--s8b6-primary);
  background: rgba(188, 143, 143, 0.1);
  transform: scale(1.05);
}

.s8b6-bottom-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s8b6-bottom-nav-label {
  font-size: 1rem;
  text-align: center;
}

/* Footer */
.s8b6-footer {
  background: var(--s8b6-bg-darker);
  border-top: 2px solid var(--s8b6-primary);
  padding: 2rem 1.5rem 90px;
  margin-top: 3rem;
}

.s8b6-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.s8b6-footer-section {
  margin-bottom: 2rem;
}

.s8b6-footer-title {
  color: var(--s8b6-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.s8b6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.s8b6-footer-link {
  color: var(--s8b6-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--s8b6-transition);
}

.s8b6-footer-link:hover {
  color: var(--s8b6-primary);
}

.s8b6-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.s8b6-partner-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--s8b6-transition);
  filter: brightness(0.8);
}

.s8b6-partner-logo:hover {
  opacity: 1;
  filter: brightness(1);
}

.s8b6-footer-divider {
  border-top: 1px solid var(--s8b6-border);
  padding-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--s8b6-text-muted);
  font-size: 1.2rem;
  text-align: center;
}

/* Links within content */
.s8b6-content-link {
  color: var(--s8b6-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--s8b6-transition);
}

.s8b6-content-link:hover {
  color: var(--s8b6-accent-gold);
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 431px) {
  .s8b6-container {
    padding: 0 2rem;
  }

  .s8b6-header-content {
    padding: 1.2rem 2rem;
  }

  .s8b6-games-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }

  .s8b6-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 0;
  }
}

@media (max-width: 430px) {
  .s8b6-hamburger {
    display: block;
  }

  .s8b6-header-actions {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .s8b6-title {
    font-size: 2rem;
  }

  .s8b6-subtitle {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
  }

  .s8b6-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .s8b6-stats-grid {
    grid-template-columns: 1fr;
  }

  .s8b6-content-section {
    padding: 1.2rem;
  }
}

/* Utilities */
.s8b6-hidden-desktop {
  display: block;
}

.s8b6-hidden-mobile {
  display: none;
}

@media (min-width: 769px) {
  .s8b6-hidden-desktop {
    display: none;
  }

  .s8b6-hidden-mobile {
    display: block;
  }
}

.s8b6-text-center {
  text-align: center;
}

.s8b6-text-primary {
  color: var(--s8b6-primary);
}

.s8b6-text-light {
  color: var(--s8b6-text-light);
}

.s8b6-mb {
  margin-bottom: 1.5rem;
}

.s8b6-mt {
  margin-top: 1.5rem;
}

.s8b6-fade-in {
  animation: s8b6fadeIn 0.5s ease-in;
}

@keyframes s8b6fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading and States */
.s8b6-loading {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s8b6-primary);
  animation: s8b6pulse 1.5s ease-in-out infinite;
}

@keyframes s8b6pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Print styles */
@media print {
  .s8b6-header,
  .s8b6-bottom-nav,
  .s8b6-hamburger {
    display: none;
  }

  main {
    padding-top: 0;
    padding-bottom: 0;
  }

  .s8b6-footer {
    padding-bottom: 2rem;
  }
}
