/**
 * JiliKK - Theme Stylesheet
 * @version 1.0.0
 * @description Mobile-first responsive design with custom color palette
 */

/* ===== CSS Variables ===== */
:root {
  --sb0e-primary: #8B7355;
  --sb0e-secondary: #DEB887;
  --sb0e-dark: #141414;
  --sb0e-accent: #FF91A4;
  --sb0e-bg: #1a1a1a;
  --sb0e-bg-light: #2a2a2a;
  --sb0e-text: #ffffff;
  --sb0e-text-muted: #cccccc;
  --sb0e-border: #333333;
  --sb0e-gradient: linear-gradient(135deg, #8B7355 0%, #DEB887 100%);
  --sb0e-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ===== Reset & Base ===== */
* {
  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.4rem;
  line-height: 1.5;
  color: var(--sb0e-text);
  background-color: var(--sb0e-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Container ===== */
.sb0e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Header ===== */
.sb0e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--sb0e-dark);
  border-bottom: 1px solid var(--sb0e-border);
  z-index: 1000;
  box-shadow: var(--sb0e-shadow);
}

.sb0e-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.sb0e-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--sb0e-text);
}

.sb0e-logo-icon {
  width: 28px;
  height: 28px;
}

.sb0e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sb0e-secondary);
}

.sb0e-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sb0e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.sb0e-btn-primary {
  background: var(--sb0e-gradient);
  color: var(--sb0e-dark);
}

.sb0e-btn-secondary {
  background: transparent;
  color: var(--sb0e-secondary);
  border: 2px solid var(--sb0e-secondary);
}

.sb0e-btn:hover,
.sb0e-btn:active {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(222, 184, 135, 0.5);
}

.sb0e-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--sb0e-text);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.sb0e-menu-toggle:hover {
  background: var(--sb0e-bg-light);
}

/* ===== Mobile Navigation Menu ===== */
.sb0e-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--sb0e-dark);
  border-bottom: 1px solid var(--sb0e-border);
  padding: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 999;
}

.sb0e-mobile-menu.sb0e-menu-open {
  max-height: 500px;
  padding: 1rem;
}

.sb0e-menu-list {
  list-style: none;
}

.sb0e-menu-item {
  border-bottom: 1px solid var(--sb0e-border);
}

.sb0e-menu-item:last-child {
  border-bottom: none;
}

.sb0e-menu-link {
  display: block;
  padding: 1rem;
  color: var(--sb0e-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.sb0e-menu-link:hover {
  background: var(--sb0e-bg-light);
  color: var(--sb0e-secondary);
}

/* ===== Main Content ===== */
.sb0e-main {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .sb0e-main {
    padding-bottom: 2rem;
  }
}

/* ===== Slider ===== */
.sb0e-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.sb0e-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.sb0e-slide.sb0e-active {
  opacity: 1;
}

.sb0e-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb0e-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.sb0e-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.sb0e-dot.sb0e-active {
  background: var(--sb0e-secondary);
  width: 24px;
  border-radius: 4px;
}

/* ===== Section ===== */
.sb0e-section {
  margin-bottom: 2.5rem;
}

.sb0e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sb0e-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Game Grid ===== */
.sb0e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sb0e-game-item {
  display: block;
  text-decoration: none;
  transition: transform 0.3s;
}

.sb0e-game-item:hover {
  transform: scale(1.05);
}

.sb0e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--sb0e-bg-light);
}

.sb0e-game-name {
  font-size: 1.1rem;
  color: var(--sb0e-text);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Card ===== */
.sb0e-card {
  background: var(--sb0e-bg-light);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sb0e-border);
}

.sb0e-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sb0e-secondary);
  margin-bottom: 1rem;
}

.sb0e-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--sb0e-text-muted);
}

.sb0e-card-content a {
  color: var(--sb0e-accent);
  text-decoration: none;
  font-weight: 600;
}

.sb0e-card-content a:hover {
  text-decoration: underline;
}

/* ===== Promo Links ===== */
.sb0e-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--sb0e-gradient);
  color: var(--sb0e-dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.5rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
}

.sb0e-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.5);
}

/* ===== Footer ===== */
.sb0e-footer {
  background: var(--sb0e-dark);
  border-top: 1px solid var(--sb0e-border);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.sb0e-footer-description {
  text-align: center;
  color: var(--sb0e-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  line-height: 1.6;
}

.sb0e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb0e-footer-link {
  color: var(--sb0e-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.sb0e-footer-link:hover {
  color: var(--sb0e-accent);
}

.sb0e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb0e-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.sb0e-partner-logo:hover {
  opacity: 1;
}

.sb0e-copyright {
  text-align: center;
  color: var(--sb0e-text-muted);
  font-size: 1.2rem;
}

/* ===== Bottom Navigation (Mobile) ===== */
.sb0e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sb0e-dark);
  border-top: 2px solid var(--sb0e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 0.5rem;
}

.sb0e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sb0e-text-muted);
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.sb0e-nav-item:hover,
.sb0e-nav-item:active {
  color: var(--sb0e-secondary);
  background: rgba(222, 184, 135, 0.1);
  transform: scale(1.05);
}

.sb0e-nav-item.sb0e-active {
  color: var(--sb0e-accent);
}

.sb0e-nav-icon {
  font-size: 22px;
  margin-bottom: 0.3rem;
}

.sb0e-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 769px) {
  .sb0e-bottom-nav {
    display: none;
  }
}

/* ===== Utility Classes ===== */
.sb0e-text-center {
  text-align: center;
}

.sb0e-mt-1 {
  margin-top: 1rem;
}

.sb0e-mb-1 {
  margin-bottom: 1rem;
}

.sb0e-mt-2 {
  margin-top: 2rem;
}

.sb0e-mb-2 {
  margin-bottom: 2rem;
}

/* ===== Typography ===== */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sb0e-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sb0e-secondary);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sb0e-text);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--sb0e-text-muted);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
  .sb0e-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sb0e-btn {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}
