/**
 * JillBB Main Stylesheet
 * All classes use se1a- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --se1a-primary: #FAFAD2;
  --se1a-secondary: #FFDFBA;
  --se1a-dark: #696969;
  --se1a-darker: #2C3E50;
  --se1a-light: #FAFAD2;
  --se1a-white: #FFFFFF;
  --se1a-black: #000000;
  --se1a-success: #28a745;
  --se1a-danger: #dc3545;
  --se1a-warning: #ffc107;
  --se1a-info: #17a2b8;
  --se1a-border: #ddd;
  --se1a-shadow: rgba(0, 0, 0, 0.1);
  --se1a-font-base: 62.5%;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--se1a-font-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--se1a-light);
  background-color: var(--se1a-darker);
  overflow-x: hidden;
}

/* Container */
.se1a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.se1a-wrapper {
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .se1a-wrapper {
    padding-bottom: 0;
  }
}

/* Header */
.se1a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--se1a-darker) 0%, var(--se1a-dark) 100%);
  box-shadow: 0 2px 10px var(--se1a-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.se1a-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.se1a-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--se1a-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.se1a-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.se1a-header-actions {
  display: flex;
  gap: 0.5rem;
}

.se1a-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.se1a-btn-primary {
  background: var(--se1a-primary);
  color: var(--se1a-darker);
}

.se1a-btn-primary:hover {
  background: var(--se1a-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--se1a-shadow);
}

.se1a-btn-secondary {
  background: transparent;
  color: var(--se1a-primary);
  border: 2px solid var(--se1a-primary);
}

.se1a-btn-secondary:hover {
  background: var(--se1a-primary);
  color: var(--se1a-darker);
}

.se1a-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.se1a-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--se1a-primary);
  transition: all 0.3s ease;
}

@media (min-width: 769px) {
  .se1a-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.se1a-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--se1a-darker);
  box-shadow: 2px 0 10px var(--se1a-shadow);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 0;
}

.se1a-mobile-menu.se1a-menu-open {
  left: 0;
}

.se1a-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.se1a-mobile-menu.se1a-menu-open + .se1a-mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.se1a-mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--se1a-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.se1a-mobile-menu-nav {
  padding: 0 1rem;
}

.se1a-mobile-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--se1a-light);
  text-decoration: none;
  border-bottom: 1px solid var(--se1a-dark);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.se1a-mobile-menu-nav a:hover {
  background: var(--se1a-dark);
  padding-left: 1.5rem;
  color: var(--se1a-primary);
}

/* Bottom Navigation (Mobile) */
.se1a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--se1a-darker) 0%, #1a252f 100%);
  box-shadow: 0 -2px 10px var(--se1a-shadow);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
}

@media (min-width: 769px) {
  .se1a-bottom-nav {
    display: none;
  }
}

.se1a-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--se1a-light);
  font-size: 1rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.se1a-bottom-nav a:hover {
  color: var(--se1a-primary);
  transform: scale(1.1);
}

.se1a-bottom-nav a.se1a-nav-active {
  color: var(--se1a-primary);
}

.se1a-bottom-nav i,
.se1a-bottom-nav span.material-icons,
.se1a-bottom-nav span.iconify {
  font-size: 24px;
}

.se1a-bottom-nav span {
  font-size: 1rem;
  font-weight: 500;
}

/* Carousel */
.se1a-carousel {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--se1a-shadow);
}

.se1a-carousel-slide {
  display: none;
  width: 100%;
}

.se1a-carousel-slide:first-child {
  display: block;
}

.se1a-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.se1a-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.se1a-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.se1a-carousel-prev {
  left: 10px;
}

.se1a-carousel-next {
  right: 10px;
}

.se1a-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.se1a-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.se1a-carousel-indicator.se1a-active {
  background: var(--se1a-primary);
  width: 20px;
  border-radius: 5px;
}

/* Main Content */
.se1a-main {
  margin-top: 70px;
  padding: 1rem 0;
}

.se1a-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--se1a-shadow);
}

.se1a-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--se1a-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.se1a-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--se1a-secondary);
  margin-bottom: 0.8rem;
}

.se1a-text {
  margin-bottom: 1rem;
  color: var(--se1a-light);
}

.se1a-link {
  color: var(--se1a-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.se1a-link:hover {
  color: var(--se1a-secondary);
  text-decoration: underline;
}

/* Game Grid */
.se1a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.se1a-game-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--se1a-light);
  transition: all 0.3s ease;
}

.se1a-game-item:hover {
  transform: translateY(-4px);
}

.se1a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--se1a-shadow);
}

.se1a-game-name {
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.se1a-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px var(--se1a-shadow);
}

.se1a-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--se1a-primary);
  margin-bottom: 1rem;
}

/* FAQ */
.se1a-faq-item {
  margin: 1rem 0;
  border-bottom: 1px solid var(--se1a-dark);
  padding-bottom: 1rem;
}

.se1a-faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--se1a-secondary);
  margin-bottom: 0.5rem;
}

.se1a-faq-answer {
  font-size: 1.3rem;
  color: var(--se1a-light);
  line-height: 1.6;
}

/* Footer */
.se1a-footer {
  background: var(--se1a-dark);
  padding: 2rem 0;
  margin-top: 2rem;
}

.se1a-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.se1a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  justify-content: center;
}

.se1a-footer-links a {
  color: var(--se1a-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--se1a-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.se1a-footer-links a:hover {
  background: var(--se1a-primary);
  color: var(--se1a-darker);
}

.se1a-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.se1a-partners img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.se1a-partners img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.se1a-copyright {
  text-align: center;
  color: var(--se1a-light);
  font-size: 1.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--se1a-dark);
}

/* Utility Classes */
.se1a-mt-1 { margin-top: 0.5rem; }
.se1a-mt-2 { margin-top: 1rem; }
.se1a-mt-3 { margin-top: 1.5rem; }
.se1a-mb-1 { margin-bottom: 0.5rem; }
.se1a-mb-2 { margin-bottom: 1rem; }
.se1a-mb-3 { margin-bottom: 1.5rem; }
.se1a-text-center { text-align: center; }
.se1a-text-primary { color: var(--se1a-primary); }
.se1a-text-secondary { color: var(--se1a-secondary); }
.se1a-bg-primary { background: var(--se1a-primary); }
.se1a-bg-secondary { background: var(--se1a-secondary); }

/* Responsive */
@media (max-width: 768px) {
  .se1a-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .se1a-section-title {
    font-size: 1.6rem;
  }

  .se1a-section-subtitle {
    font-size: 1.4rem;
  }
}

@media (min-width: 769px) {
  .se1a-container {
    max-width: 1200px;
  }

  .se1a-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .se1a-main {
    margin-top: 80px;
  }

  /* Desktop Navigation */
  .se1a-desktop-nav {
    display: flex;
    gap: 1rem;
  }

  .se1a-desktop-nav a {
    color: var(--se1a-light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .se1a-desktop-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--se1a-primary);
  }
}

/* Animation */
@keyframes se1a-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.se1a-fade-in {
  animation: se1a-fadeIn 0.5s ease;
}

/* Loading State */
img.se1a-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img:not(.se1a-loaded) {
  opacity: 0;
}
