/**
 * JL16 Website Stylesheet
 * All classes use 's9ca-' prefix for namespace isolation
 */

/* CSS Variables - Color Palette */
:root {
  --s9ca-primary: #FFB347;
  --s9ca-secondary: #FFF176;
  --s9ca-dark: #273746;
  --s9ca-darker: #1a252f;
  --s9ca-light: #ECF0F1;
  --s9ca-gray: #DCDCDC;
  --s9ca-white: #ffffff;
  --s9ca-text: #ECF0F1;
  --s9ca-text-dark: #273746;
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--s9ca-text);
  background-color: var(--s9ca-dark);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 70px;
}

/* Container */
.s9ca-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.s9ca-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--s9ca-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.s9ca-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 56px;
}

.s9ca-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s9ca-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.s9ca-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.s9ca-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.s9ca-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s9ca-btn-primary {
  background: linear-gradient(135deg, var(--s9ca-primary), #ff9a1a);
  color: var(--s9ca-dark);
}

.s9ca-btn-secondary {
  background: transparent;
  color: var(--s9ca-white);
  border: 2px solid var(--s9ca-primary);
}

.s9ca-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.s9ca-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.s9ca-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--s9ca-white);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.s9ca-mobile-menu {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 56px);
  background-color: var(--s9ca-darker);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.s9ca-mobile-menu.s9ca-menu-open {
  left: 0;
}

.s9ca-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s9ca-white);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.s9ca-menu-item:hover {
  background-color: rgba(255, 179, 71, 0.1);
  color: var(--s9ca-primary);
}

/* Carousel */
.s9ca-carousel {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.s9ca-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.s9ca-carousel-slide {
  min-width: 100%;
  position: relative;
}

.s9ca-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.s9ca-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.s9ca-carousel-nav button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  color: var(--s9ca-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s9ca-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.s9ca-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s9ca-carousel-dot.s9ca-active {
  background-color: var(--s9ca-primary);
  transform: scale(1.2);
}

/* Main Content */
.s9ca-main {
  padding: 0 0 2rem;
}

.s9ca-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: var(--s9ca-darker);
  border-radius: 8px;
}

.s9ca-section-title {
  color: var(--s9ca-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.s9ca-section-content {
  color: var(--s9ca-light);
  line-height: 1.8;
}

/* Games Grid */
.s9ca-games-section {
  margin-bottom: 2.5rem;
}

.s9ca-games-title {
  color: var(--s9ca-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--s9ca-primary);
}

.s9ca-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 0.5rem;
}

.s9ca-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.s9ca-game-item:hover {
  transform: scale(1.1);
}

.s9ca-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background-color: var(--s9ca-gray);
}

.s9ca-game-name {
  color: var(--s9ca-light);
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
}

/* Content Modules */
.s9ca-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.s9ca-card-title {
  color: var(--s9ca-secondary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.s9ca-card-content {
  color: var(--s9ca-gray);
  line-height: 1.8;
}

.s9ca-promo-link {
  color: var(--s9ca-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.s9ca-promo-link:hover {
  text-decoration: underline;
}

/* Bottom Navigation (Mobile) */
.s9ca-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--s9ca-darker);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 64px;
}

.s9ca-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0.5rem 0;
}

.s9ca-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--s9ca-gray);
  transition: all 0.3s ease;
  cursor: pointer;
}

.s9ca-nav-item:hover,
.s9ca-nav-item.s9ca-active {
  color: var(--s9ca-primary);
  transform: scale(1.1);
}

.s9ca-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s9ca-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.s9ca-footer {
  background-color: var(--s9ca-darker);
  padding: 2rem 1rem 5rem;
  margin-top: 2rem;
}

.s9ca-footer-content {
  margin-bottom: 2rem;
}

.s9ca-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.s9ca-footer-link {
  color: var(--s9ca-gray);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s9ca-footer-link:hover {
  color: var(--s9ca-primary);
}

.s9ca-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s9ca-partner-icon {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s9ca-partner-icon:hover {
  opacity: 1;
}

.s9ca-copyright {
  text-align: center;
  color: var(--s9ca-gray);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide bottom navigation on desktop */
@media (min-width: 769px) {
  .s9ca-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Touch feedback */
.s9ca-touch-active {
  opacity: 0.7;
}

/* Utility classes */
.s9ca-text-center {
  text-align: center;
}

.s9ca-mb-1 {
  margin-bottom: 1rem;
}

.s9ca-mb-2 {
  margin-bottom: 2rem;
}

.s9ca-highlight {
  color: var(--s9ca-primary);
  font-weight: 600;
}
