/**
 * JLACE - CSS Stylesheet
 * Mobile-first responsive design with unique color palette
 */

/* Root Variables */
:root {
  --sb5a-primary: #FF69B4;
  --sb5a-primary-dark: #DB7093;
  --sb5a-secondary: #808080;
  --sb5a-dark: #1A1A2E;
  --sb5a-darker: #2F2F2F;
  --sb5a-light: #F0F0F0;
  --sb5a-white: #FFFFFF;
  --sb5a-text: #E8E8E8;
  --sb5a-text-muted: #B8B8B8;
  --sb5a-gradient: linear-gradient(135deg, #FF69B4 0%, #DB7093 100%);
  --sb5a-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
  --sb5a-header-height: 60px;
  --sb5a-bottom-nav-height: 60px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--sb5a-text);
  background-color: var(--sb5a-dark);
  min-width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Container */
.sb5a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--sb5a-dark);
  min-height: 100vh;
  position: relative;
}

.sb5a-wrapper {
  padding-top: var(--sb5a-header-height);
  padding-bottom: var(--sb5a-bottom-nav-height);
}

/* Header */
.sb5a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sb5a-header-height);
  background: linear-gradient(180deg, var(--sb5a-darker) 0%, var(--sb5a-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.sb5a-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--sb5a-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.sb5a-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.sb5a-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sb5a-btn-header {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.sb5a-btn-register {
  background: var(--sb5a-gradient);
  color: var(--sb5a-white);
}

.sb5a-btn-login {
  background: transparent;
  color: var(--sb5a-primary);
  border: 2px solid var(--sb5a-primary);
}

.sb5a-btn-register:hover,
.sb5a-btn-login:hover {
  transform: scale(1.05);
  box-shadow: var(--sb5a-shadow);
}

/* Mobile Menu Toggle */
.sb5a-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.sb5a-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--sb5a-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.sb5a-mobile-menu {
  position: fixed;
  top: var(--sb5a-header-height);
  left: 0;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sb5a-darker);
  padding: 1rem 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.sb5a-mobile-menu.sb5a-menu-open {
  opacity: 1;
  visibility: visible;
}

.sb5a-menu-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--sb5a-text);
  text-decoration: none;
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sb5a-menu-link:hover {
  background: rgba(255, 105, 180, 0.1);
  border-left-color: var(--sb5a-primary);
  color: var(--sb5a-primary);
}

/* Hero Carousel */
.sb5a-hero {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sb5a-shadow);
}

.sb5a-hero-slide {
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.sb5a-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sb5a-hero-slide:hover img {
  transform: scale(1.05);
}

/* Section */
.sb5a-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--sb5a-darker);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sb5a-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sb5a-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}

.sb5a-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--sb5a-gradient);
}

/* Game Grid */
.sb5a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.sb5a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sb5a-game-item:hover {
  transform: scale(1.08);
}

.sb5a-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.sb5a-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb5a-game-name {
  font-size: 1.1rem;
  color: var(--sb5a-text);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons */
.sb5a-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--sb5a-gradient);
  color: var(--sb5a-white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--sb5a-shadow);
  text-align: center;
}

.sb5a-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.sb5a-btn-full {
  width: 100%;
  display: block;
}

/* Cards */
.sb5a-card {
  background: var(--sb5a-dark);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: all 0.3s ease;
}

.sb5a-card:hover {
  border-color: var(--sb5a-primary);
  box-shadow: var(--sb5a-shadow);
}

/* Text */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sb5a-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sb5a-white);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sb5a-primary);
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--sb5a-text-muted);
  line-height: 1.6;
}

/* Links */
.sb5a-link {
  color: var(--sb5a-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sb5a-link:hover {
  color: var(--sb5a-white);
  text-decoration: underline;
}

/* Footer */
.sb5a-footer {
  background: var(--sb5a-darker);
  padding: 2rem 1rem 8rem;
  margin-top: 3rem;
  text-align: center;
}

.sb5a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb5a-footer-link {
  color: var(--sb5a-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--sb5a-secondary);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.sb5a-footer-link:hover {
  background: var(--sb5a-primary);
  color: var(--sb5a-white);
  border-color: var(--sb5a-primary);
}

.sb5a-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb5a-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sb5a-partner-logo:hover {
  opacity: 1;
}

.sb5a-copyright {
  color: var(--sb5a-secondary);
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Bottom Navigation */
.sb5a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sb5a-bottom-nav-height);
  background: linear-gradient(180deg, var(--sb5a-darker) 0%, #1a1a1a 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-top: 2px solid var(--sb5a-primary);
}

.sb5a-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--sb5a-text-muted);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.sb5a-nav-item:hover {
  color: var(--sb5a-primary);
  transform: scale(1.1);
}

.sb5a-nav-item.sb5a-nav-active {
  color: var(--sb5a-primary);
}

.sb5a-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.sb5a-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
  .sb5a-bottom-nav {
    display: none;
  }

  .sb5a-wrapper {
    padding-bottom: 2rem;
  }

  .sb5a-container {
    max-width: 100%;
  }

  .sb5a-header {
    max-width: 100%;
  }
}

/* Utilities */
.sb5a-text-center {
  text-align: center;
}

.sb5a-mb-1 {
  margin-bottom: 1rem;
}

.sb5a-mb-2 {
  margin-bottom: 2rem;
}

.sb5a-mt-1 {
  margin-top: 1rem;
}

.sb5a-mt-2 {
  margin-top: 2rem;
}
