/**
 * JLBoss - Main Design Stylesheet
 * All classes use sb55- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --sb55-primary: #FF5722;
  --sb55-secondary: #FFCCCB;
  --sb55-accent: #FFDFBA;
  --sb55-dark: #1E1E1E;
  --sb55-light: #DCDCDC;
  --sb55-white: #FFFFFF;
  --sb55-black: #000000;
  --sb55-gradient-start: #FF5722;
  --sb55-gradient-end: #FF8A65;
  --sb55-shadow: rgba(0, 0, 0, 0.3);
  --sb55-shadow-light: rgba(0, 0, 0, 0.1);
  --sb55-transition: all 0.3s ease;
  --sb55-border-radius: 8px;
  --sb55-border-radius-sm: 4px;
  --sb55-border-radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  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(--sb55-light);
  background-color: var(--sb55-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.sb55-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sb55-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.sb55-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sb55-dark) 0%, #2a2a2a 100%);
  box-shadow: 0 2px 10px var(--sb55-shadow);
  transition: var(--sb55-transition);
}

.sb55-header.sb55-header-hidden {
  transform: translateY(-100%);
}

.sb55-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.sb55-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--sb55-white);
  font-weight: 700;
  font-size: 1.4rem;
}

.sb55-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--sb55-border-radius-sm);
}

.sb55-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.sb55-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--sb55-border-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sb55-transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.sb55-btn-primary {
  background: var(--sb55-primary);
  color: var(--sb55-white);
}

.sb55-btn-primary:hover {
  background: #F4511E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.sb55-btn-secondary {
  background: transparent;
  color: var(--sb55-white);
  border: 2px solid var(--sb55-white);
}

.sb55-btn-secondary:hover {
  background: var(--sb55-white);
  color: var(--sb55-dark);
}

.sb55-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--sb55-primary);
  border: none;
  border-radius: var(--sb55-border-radius-sm);
  cursor: pointer;
  color: var(--sb55-white);
  font-size: 1.8rem;
  transition: var(--sb55-transition);
}

.sb55-menu-btn:hover {
  background: #F4511E;
}

/* Mobile Menu */
.sb55-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--sb55-dark);
  box-shadow: -2px 0 10px var(--sb55-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.sb55-mobile-menu.sb55-menu-open {
  right: 0;
}

.sb55-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--sb55-primary);
}

.sb55-menu-close {
  background: none;
  border: none;
  color: var(--sb55-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.sb55-menu-nav {
  padding: 1rem 0;
}

.sb55-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--sb55-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--sb55-transition);
}

.sb55-menu-nav a:hover {
  background: rgba(255, 87, 34, 0.1);
  color: var(--sb55-primary);
  padding-left: 1.5rem;
}

/* Main Content */
.sb55-main {
  padding-top: 70px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .sb55-main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.sb55-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--sb55-border-radius);
  margin-bottom: 2rem;
}

.sb55-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.sb55-carousel-slide:first-child {
  display: block;
}

.sb55-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb55-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.sb55-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--sb55-transition);
}

.sb55-carousel-dot.sb55-active {
  background: var(--sb55-primary);
  transform: scale(1.2);
}

/* Sections */
.sb55-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--sb55-border-radius);
}

.sb55-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sb55-primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Game Grid */
.sb55-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb55-game-item {
  display: block;
  text-decoration: none;
  color: var(--sb55-light);
  transition: var(--sb55-transition);
}

.sb55-game-item:hover {
  transform: scale(1.05);
}

.sb55-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--sb55-border-radius);
  margin-bottom: 0.5rem;
  background: var(--sb55-light);
}

.sb55-game-name {
  font-size: 1rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Section */
.sb55-category {
  margin-bottom: 2rem;
}

.sb55-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sb55-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sb55-category-title::before {
  content: '';
  width: 4px;
  height: 1.6rem;
  background: var(--sb55-primary);
  border-radius: 2px;
}

/* Cards */
.sb55-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--sb55-border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--sb55-transition);
}

.sb55-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.sb55-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sb55-primary);
  margin-bottom: 0.8rem;
}

.sb55-card-content {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--sb55-light);
}

/* Promo Button */
.sb55-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--sb55-gradient-start) 0%, var(--sb55-gradient-end) 100%);
  color: var(--sb55-white);
  text-decoration: none;
  border-radius: var(--sb55-border-radius);
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  transition: var(--sb55-transition);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
  cursor: pointer;
  border: none;
  width: 100%;
}

.sb55-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

/* Links */
.sb55-link {
  color: var(--sb55-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--sb55-transition);
}

.sb55-link:hover {
  color: var(--sb55-accent);
  text-decoration: underline;
}

/* Footer */
.sb55-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.sb55-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.sb55-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.sb55-footer-link {
  color: var(--sb55-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--sb55-transition);
}

.sb55-footer-link:hover {
  color: var(--sb55-primary);
}

.sb55-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sb55-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--sb55-transition);
}

.sb55-partner-logo:hover {
  opacity: 1;
}

.sb55-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

/* Bottom Navigation */
.sb55-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--sb55-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px var(--sb55-shadow);
  z-index: 1000;
}

@media (min-width: 769px) {
  .sb55-bottom-nav {
    display: none;
  }
}

.sb55-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--sb55-light);
  transition: var(--sb55-transition);
  cursor: pointer;
  background: none;
  border: none;
}

.sb55-nav-item:hover {
  color: var(--sb55-primary);
  transform: scale(1.1);
}

.sb55-nav-item.sb55-active {
  color: var(--sb55-primary);
}

.sb55-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
}

.sb55-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--sb55-white);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.sb55-text-center {
  text-align: center;
}

.sb55-mt-1 {
  margin-top: 1rem;
}

.sb55-mb-1 {
  margin-bottom: 1rem;
}

.sb55-mt-2 {
  margin-top: 2rem;
}

.sb55-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sb55-header-buttons .sb55-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }

  .sb55-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 374px) {
  html {
    font-size: 55%;
  }

  .sb55-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
