/* JL96 Gaming Platform - Main Stylesheet */
/* Color Palette: #DDA0DD | #A0522D | #273746 | #F08080 | #FF6347 */
/* Prefix: sbd5- */

/* CSS Variables */
:root {
  --sbd5-primary: #DDA0DD;
  --sbd5-secondary: #A0522D;
  --sbd5-dark: #273746;
  --sbd5-accent1: #F08080;
  --sbd5-accent2: #FF6347;
  --sbd5-bg: #1a1a2e;
  --sbd5-bg-light: #16213e;
  --sbd5-text: #f5f5f5;
  --sbd5-text-dark: #2d2d2d;
  --sbd5-border: #4a4a5a;
  --sbd5-gradient: linear-gradient(135deg, var(--sbd5-primary) 0%, var(--sbd5-accent1) 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--sbd5-bg);
  color: var(--sbd5-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.sbd5-container {
  width: 100%;
  padding: 0 1.6rem;
  margin: 0 auto;
}

.sbd5-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.sbd5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--sbd5-dark);
  padding: 1.2rem 1.6rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 430px;
  margin: 0 auto;
}

.sbd5-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sbd5-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sbd5-logo img {
  width: 3.2rem;
  height: 3.2rem;
}

.sbd5-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sbd5-primary);
}

.sbd5-nav-buttons {
  display: flex;
  gap: 0.8rem;
}

.sbd5-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.sbd5-btn-primary {
  background: var(--sbd5-gradient);
  color: var(--sbd5-text-dark);
}

.sbd5-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 160, 221, 0.4);
}

.sbd5-btn-secondary {
  background: var(--sbd5-accent2);
  color: var(--sbd5-text);
}

.sbd5-btn-secondary:hover {
  background: var(--sbd5-accent1);
}

.sbd5-menu-btn {
  background: transparent;
  border: none;
  color: var(--sbd5-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.sbd5-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--sbd5-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.sbd5-mobile-menu.active {
  right: 0;
}

.sbd5-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem;
  border-bottom: 1px solid var(--sbd5-border);
}

.sbd5-menu-close {
  background: none;
  border: none;
  color: var(--sbd5-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.sbd5-menu-nav {
  padding: 1.6rem;
}

.sbd5-menu-nav ul {
  list-style: none;
}

.sbd5-menu-nav li {
  margin-bottom: 1.2rem;
}

.sbd5-menu-nav a {
  color: var(--sbd5-text);
  text-decoration: none;
  font-size: 1.5rem;
  display: block;
  padding: 1rem;
  border-radius: 0.6rem;
  transition: background 0.3s ease;
}

.sbd5-menu-nav a:hover {
  background: var(--sbd5-dark);
}

.sbd5-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.sbd5-menu-overlay.active {
  display: block;
}

/* Main Content */
main {
  padding-top: 7.2rem;
  padding-bottom: 8rem;
}

/* Slider */
.sbd5-slider {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.sbd5-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.sbd5-slide {
  min-width: 100%;
  position: relative;
}

.sbd5-slide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* H1 Title */
.sbd5-h1-title {
  font-size: 2.8rem;
  color: var(--sbd5-primary);
  margin: 2rem 0;
  text-align: center;
  line-height: 1.3;
}

/* Section */
.sbd5-section {
  margin: 3rem 0;
  padding: 0 1.6rem;
}

.sbd5-section-title {
  font-size: 2.2rem;
  color: var(--sbd5-accent1);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--sbd5-primary);
  padding-left: 1rem;
}

.sbd5-section-content {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--sbd5-text);
}

.sbd5-section-content p {
  margin-bottom: 1.2rem;
}

/* Game Grid */
.sbd5-game-section {
  margin: 3rem 0;
}

.sbd5-game-title {
  font-size: 2rem;
  color: var(--sbd5-primary);
  margin-bottom: 1.5rem;
  padding: 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sbd5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 1.6rem;
}

.sbd5-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sbd5-game-item:hover {
  transform: scale(1.05);
}

.sbd5-game-item img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--sbd5-border);
}

.sbd5-game-item p {
  font-size: 1.1rem;
  color: var(--sbd5-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.sbd5-footer {
  background: var(--sbd5-bg-light);
  padding: 3rem 1.6rem 2rem;
  margin-top: 3rem;
}

.sbd5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sbd5-footer-link {
  color: var(--sbd5-text);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  transition: background 0.3s ease;
}

.sbd5-footer-link:hover {
  background: var(--sbd5-dark);
}

.sbd5-partners {
  margin-bottom: 2rem;
}

.sbd5-partners-title {
  font-size: 1.4rem;
  color: var(--sbd5-text);
  margin-bottom: 1rem;
}

.sbd5-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.sbd5-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sbd5-partner-logo:hover {
  opacity: 1;
}

.sbd5-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--sbd5-text);
  opacity: 0.8;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sbd5-border);
}

/* Bottom Navigation - Mobile Only */
.sbd5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sbd5-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.sbd5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sbd5-nav-item:hover {
  transform: scale(1.1);
}

.sbd5-nav-item i,
.sbd5-nav-item .material-icons {
  font-size: 2.4rem;
  color: var(--sbd5-text);
}

.sbd5-nav-item.active i,
.sbd5-nav-item.active .material-icons {
  color: var(--sbd5-primary);
}

.sbd5-nav-item span {
  font-size: 1rem;
  color: var(--sbd5-text);
}

.sbd5-nav-item.active span {
  color: var(--sbd5-primary);
  font-weight: 600;
}

/* Desktop - Hide Bottom Nav */
@media (min-width: 769px) {
  .sbd5-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utilities */
.sbd5-text-center {
  text-align: center;
}

.sbd5-mt-2 {
  margin-top: 2rem;
}

.sbd5-mb-2 {
  margin-bottom: 2rem;
}

.sbd5-highlight {
  color: var(--sbd5-primary);
  font-weight: 600;
}

.sbd5-accent-text {
  color: var(--sbd5-accent2);
  font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 380px) {
  html {
    font-size: 55%;
  }

  .sbd5-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Promo Link Styles */
.sbd5-promo-link {
  color: var(--sbd5-accent2);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sbd5-promo-link:hover {
  color: var(--sbd5-accent1);
  text-decoration: underline;
}

/* Features List */
.sbd5-features-list {
  list-style: none;
  padding: 0;
}

.sbd5-features-list li {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: var(--sbd5-bg-light);
  border-radius: 0.6rem;
  border-left: 3px solid var(--sbd5-primary);
  font-size: 1.4rem;
}

/* Cards */
.sbd5-card {
  background: var(--sbd5-bg-light);
  border-radius: 0.8rem;
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sbd5-border);
}

.sbd5-card-title {
  font-size: 1.8rem;
  color: var(--sbd5-primary);
  margin-bottom: 1rem;
}

/* Badge */
.sbd5-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--sbd5-accent2);
  color: var(--sbd5-text);
  border-radius: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}
