/**
 * Super Ace 2016 - Theme Stylesheet
 * All classes use wb71d- prefix for namespace isolation
 * Color Palette: #FFF8DC, #34495E, #DAA520, #FFA500
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --wb71d-primary: #DAA520;
  --wb71d-secondary: #FFA500;
  --wb71d-dark: #34495E;
  --wb71d-light: #FFF8DC;
  --wb71d-white: #FFFFFF;
  --wb71d-black: #000000;
  --wb71d-gray: #6c757d;
  --wb71d-success: #28a745;
  --wb71d-border: #e0e0e0;
  --wb71d-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--wb71d-dark);
  background-color: var(--wb71d-light);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.wb71d-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wb71d-wrapper {
  padding-bottom: 80px;
}

/* Header */
.wb71d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--wb71d-dark) 0%, var(--wb71d-primary) 100%);
  box-shadow: 0 2px 10px var(--wb71d-shadow);
  z-index: 1000;
}

.wb71d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 60px;
}

.wb71d-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wb71d-white);
  font-weight: 700;
  font-size: 1.6rem;
}

.wb71d-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.wb71d-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.wb71d-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.wb71d-btn-register {
  background: var(--wb71d-secondary);
  color: var(--wb71d-white);
}

.wb71d-btn-register:hover {
  background: var(--wb71d-primary);
  transform: translateY(-2px);
}

.wb71d-btn-login {
  background: transparent;
  color: var(--wb71d-white);
  border: 2px solid var(--wb71d-white);
}

.wb71d-btn-login:hover {
  background: var(--wb71d-white);
  color: var(--wb71d-dark);
}

.wb71d-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wb71d-white);
}

/* Mobile Menu */
.wb71d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wb71d-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wb71d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--wb71d-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.wb71d-menu-open {
  right: 0;
}

.wb71d-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--wb71d-border);
}

.wb71d-menu-close {
  background: none;
  border: none;
  color: var(--wb71d-white);
  font-size: 2rem;
  cursor: pointer;
}

.wb71d-menu-nav {
  padding: 1rem 0;
}

.wb71d-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--wb71d-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.wb71d-menu-nav a:hover {
  background: var(--wb71d-primary);
  color: var(--wb71d-white);
}

/* Hero Carousel */
.wb71d-hero {
  margin-top: 60px;
}

.wb71d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.wb71d-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wb71d-slide-active {
  opacity: 1;
}

.wb71d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb71d-carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.wb71d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wb71d-dot-active {
  background: var(--wb71d-primary);
  width: 20px;
  border-radius: 4px;
}

/* Content Sections */
.wb71d-section {
  padding: 2rem 0;
}

.wb71d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wb71d-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.wb71d-section-title h1,
.wb71d-section-title h2 {
  color: var(--wb71d-primary);
}

/* Game Grid */
.wb71d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.wb71d-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wb71d-game-card:hover {
  transform: scale(1.05);
}

.wb71d-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--wb71d-dark);
}

.wb71d-game-name {
  margin-top: 0.3rem;
  font-size: 1rem;
  color: var(--wb71d-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.wb71d-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wb71d-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wb71d-primary);
}

/* Cards */
.wb71d-card {
  background: var(--wb71d-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--wb71d-shadow);
}

.wb71d-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wb71d-dark);
  margin-bottom: 1rem;
}

.wb71d-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wb71d-dark);
}

/* Promo Links */
.wb71d-promo-link {
  display: inline-block;
  color: var(--wb71d-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--wb71d-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.wb71d-promo-link:hover {
  color: var(--wb71d-secondary);
  border-color: var(--wb71d-secondary);
}

.wb71d-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wb71d-primary) 0%, var(--wb71d-secondary) 100%);
  color: var(--wb71d-white);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.wb71d-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.6);
}

/* Footer */
.wb71d-footer {
  background: var(--wb71d-dark);
  color: var(--wb71d-light);
  padding: 2rem 0;
  margin-top: 3rem;
}

.wb71d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wb71d-footer-links a {
  color: var(--wb71d-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.wb71d-footer-links a:hover {
  color: var(--wb71d-primary);
}

.wb71d-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.wb71d-partners img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.wb71d-partners img:hover {
  opacity: 1;
}

.wb71d-copyright {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Bottom Navigation */
.wb71d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--wb71d-dark) 0%, #2c3e50 100%);
  box-shadow: 0 -2px 10px var(--wb71d-shadow);
  z-index: 1000;
  padding: 0.5rem 0;
}

.wb71d-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.wb71d-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  color: var(--wb71d-light);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wb71d-nav-item:hover {
  color: var(--wb71d-primary);
}

.wb71d-nav-item.wb71d-nav-active {
  color: var(--wb71d-primary);
}

.wb71d-nav-icon {
  font-size: 24px;
}

.wb71d-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .wb71d-bottom-nav {
    display: none;
  }

  .wb71d-wrapper {
    padding-bottom: 0;
  }
}

/* Loading Animation */
body:not(.wb71d-loaded) {
  opacity: 0;
}

body.wb71d-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Utility Classes */
.wb71d-text-center {
  text-align: center;
}

.wb71d-mt-1 {
  margin-top: 1rem;
}

.wb71d-mb-1 {
  margin-bottom: 1rem;
}

.wb71d-mt-2 {
  margin-top: 2rem;
}

.wb71d-mb-2 {
  margin-bottom: 2rem;
}
