/**
 * SSbet77 - Main Stylesheet
 * @version 1.0.0
 * @description Mobile-first responsive design for SSbet77 gaming platform
 */

/* CSS Variables - Brand Colors */
:root {
  --sb02-primary: #FFB347;
  --sb02-primary-dark: #E69A2F;
  --sb02-secondary: #FFEF94;
  --sb02-bg-dark: #3A3A3A;
  --sb02-bg-darker: #2A2A2A;
  --sb02-bg-light: #4A4A4A;
  --sb02-text: #FFEF94;
  --sb02-text-muted: #B8B8B8;
  --sb02-border: #FFB347;
  --sb02-success: #4CAF50;
  --sb02-warning: #FF9800;
  --sb02-danger: #F44336;
  --sb02-shadow: rgba(255, 179, 71, 0.3);
  --app-height: 100vh;
}

/* Reset & Base Styles */
*, *::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(--sb02-text);
  background: linear-gradient(135deg, var(--sb02-bg-dark) 0%, var(--sb02-bg-darker) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.sb02-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sb02-wrapper {
  padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--sb02-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--sb02-text-muted);
}

a {
  color: var(--sb02-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--sb02-primary-dark);
}

/* Header */
.sb02-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--sb02-bg-darker);
  border-bottom: 2px solid var(--sb02-primary);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px var(--sb02-shadow);
}

.sb02-header.sb02-header-hidden {
  transform: translateY(-100%);
}

.sb02-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.sb02-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sb02-primary);
}

.sb02-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sb02-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.sb02-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.sb02-btn-primary {
  background: linear-gradient(135deg, var(--sb02-primary) 0%, var(--sb02-primary-dark) 100%);
  color: var(--sb02-bg-dark);
  box-shadow: 0 4px 15px var(--sb02-shadow);
}

.sb02-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--sb02-shadow);
}

.sb02-btn-secondary {
  background: transparent;
  color: var(--sb02-primary);
  border: 2px solid var(--sb02-primary);
}

.sb02-btn-secondary:hover {
  background: var(--sb02-primary);
  color: var(--sb02-bg-dark);
}

.sb02-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sb02-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.sb02-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--sb02-bg-darker);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px var(--sb02-shadow);
}

.sb02-mobile-menu.sb02-menu-open {
  left: 0;
}

.sb02-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sb02-menu-overlay.sb02-menu-open {
  opacity: 1;
  visibility: visible;
}

.sb02-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 2px solid var(--sb02-primary);
}

.sb02-menu-close {
  background: none;
  border: none;
  color: var(--sb02-primary);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.sb02-menu-nav {
  padding: 1rem 0;
}

.sb02-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--sb02-text);
  font-size: 1.4rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sb02-menu-nav a:hover {
  background: var(--sb02-bg-light);
  border-left-color: var(--sb02-primary);
  color: var(--sb02-primary);
}

/* Main Content */
main {
  margin-top: 80px;
  padding-bottom: 80px;
}

/* Carousel */
.sb02-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--sb02-shadow);
}

.sb02-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sb02-carousel-slide.sb02-active {
  opacity: 1;
}

.sb02-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb02-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.sb02-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sb02-carousel-indicator.sb02-active {
  background: var(--sb02-primary);
  transform: scale(1.2);
}

/* Cards */
.sb02-card {
  background: var(--sb02-bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 179, 71, 0.2);
}

.sb02-card-title {
  color: var(--sb02-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Game Grid */
.sb02-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.sb02-game-item {
  background: var(--sb02-bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.sb02-game-item:hover {
  border-color: var(--sb02-primary);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--sb02-shadow);
}

.sb02-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.sb02-game-name {
  padding: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--sb02-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section */
.sb02-section {
  margin-bottom: 3rem;
}

.sb02-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sb02-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.sb02-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sb02-primary), transparent);
}

/* Bottom Navigation */
.sb02-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sb02-bg-darker);
  border-top: 2px solid var(--sb02-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--sb02-shadow);
}

.sb02-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--sb02-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.sb02-bottom-nav a:hover {
  color: var(--sb02-primary);
  background: rgba(255, 179, 71, 0.1);
}

.sb02-bottom-nav a.sb02-nav-active {
  color: var(--sb02-primary);
}

.sb02-bottom-nav a.sb02-nav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--sb02-primary);
  border-radius: 0 0 3px 3px;
}

.sb02-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.sb02-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Footer */
.sb02-footer {
  background: var(--sb02-bg-darker);
  border-top: 2px solid var(--sb02-primary);
  padding: 2rem 0;
  margin-top: 3rem;
}

.sb02-footer-content {
  text-align: center;
}

.sb02-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sb02-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--sb02-bg-light);
  border-radius: 6px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.sb02-footer-links a:hover {
  background: var(--sb02-primary);
  color: var(--sb02-bg-dark);
}

.sb02-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.sb02-partners img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sb02-partners img:hover {
  opacity: 1;
}

.sb02-copyright {
  color: var(--sb02-text-muted);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Animations */
.sb02-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.sb02-animate-on-scroll.sb02-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 769px) {
  .sb02-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .sb02-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .sb02-menu-toggle {
    display: block;
  }

  .sb02-header-buttons {
    display: none;
  }
}

/* Utility Classes */
.sb02-text-center { text-align: center; }
.sb02-mb-1 { margin-bottom: 1rem; }
.sb02-mb-2 { margin-bottom: 2rem; }
.sb02-mb-3 { margin-bottom: 3rem; }

.sb02-highlight {
  color: var(--sb02-primary);
  font-weight: 700;
}

.sb02-link {
  color: var(--sb02-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.sb02-link:hover {
  color: var(--sb02-primary-dark);
}
