/**
 * jl44 - Main Stylesheet
 * All classes use 'wbacb-' prefix to avoid conflicts
 */

/* CSS Variables */
:root {
  --wbacb-primary: #B8860B;
  --wbacb-secondary: #E6E6FA;
  --wbacb-accent: #8A2BE2;
  --wbacb-dark: #3A3A3A;
  --wbacb-blue: #4682B4;
  --wbacb-bg: #1a1a1a;
  --wbacb-text: #f5f5f5;
  --wbacb-text-muted: #b0b0b0;
  --wbacb-border: #333;
  --wbacb-shadow: rgba(0, 0, 0, 0.5);
}

/* 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.6rem;
  line-height: 1.5rem;
  color: var(--wbacb-text);
  background-color: var(--wbacb-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.wbacb-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wbacb-wrapper {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Header */
.wbacb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wbacb-dark) 0%, #2a2a2a 100%);
  box-shadow: 0 2px 10px var(--wbacb-shadow);
  border-bottom: 2px solid var(--wbacb-primary);
}

.wbacb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wbacb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wbacb-text);
  font-size: 1.8rem;
  font-weight: bold;
}

.wbacb-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 2px solid var(--wbacb-primary);
}

.wbacb-header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wbacb-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.wbacb-btn-primary {
  background: linear-gradient(135deg, var(--wbacb-primary) 0%, #daa520 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}

.wbacb-btn-secondary {
  background: transparent;
  color: var(--wbacb-primary);
  border: 2px solid var(--wbacb-primary);
}

.wbacb-btn:hover,
.wbacb-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.6);
}

.wbacb-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wbacb-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .wbacb-menu-toggle {
    display: block;
  }
}

/* Mobile Menu */
.wbacb-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--wbacb-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px var(--wbacb-shadow);
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
}

.wbacb-mobile-menu.wbacb-menu-open {
  right: 0;
}

.wbacb-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--wbacb-text);
  font-size: 2.5rem;
  cursor: pointer;
}

.wbacb-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wbacb-menu-link {
  padding: 1rem;
  color: var(--wbacb-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.wbacb-menu-link:hover {
  background: rgba(184, 134, 11, 0.1);
  border-left-color: var(--wbacb-primary);
  padding-left: 1.5rem;
}

/* Carousel */
.wbacb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--wbacb-shadow);
}

.wbacb-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wbacb-carousel-track::-webkit-scrollbar {
  display: none;
}

.wbacb-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}

.wbacb-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.wbacb-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.wbacb-carousel-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Section Styles */
.wbacb-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid var(--wbacb-border);
}

.wbacb-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--wbacb-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wbacb-section-title i {
  font-size: 2rem;
}

/* Game Grid */
.wbacb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wbacb-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--wbacb-text);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.wbacb-game-item:hover {
  transform: scale(1.08);
}

.wbacb-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--wbacb-border);
  transition: border-color 0.3s ease;
}

.wbacb-game-item:hover .wbacb-game-icon {
  border-color: var(--wbacb-primary);
}

.wbacb-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Card Component */
.wbacb-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--wbacb-border);
  transition: all 0.3s ease;
}

.wbacb-card:hover {
  border-color: var(--wbacb-primary);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

.wbacb-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--wbacb-secondary);
}

.wbacb-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wbacb-text-muted);
}

.wbacb-card-content p {
  margin-bottom: 1rem;
}

.wbacb-card-content p:last-child {
  margin-bottom: 0;
}

/* FAQ Component */
.wbacb-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--wbacb-border);
  border-radius: 0.8rem;
  overflow: hidden;
}

.wbacb-faq-question {
  padding: 1rem;
  background: rgba(184, 134, 11, 0.1);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wbacb-faq-answer {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.6;
}

/* Link Styles */
.wbacb-link {
  color: var(--wbacb-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.wbacb-link:hover {
  color: var(--wbacb-secondary);
  text-decoration: underline;
}

/* Promotional Link */
.wbacb-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--wbacb-accent) 0%, #9370db 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4);
}

.wbacb-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.6);
}

/* Bottom Navigation */
.wbacb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--wbacb-dark) 0%, #1a1a1a 100%);
  border-top: 2px solid var(--wbacb-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px var(--wbacb-shadow);
}

.wbacb-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--wbacb-text-muted);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.wbacb-bottom-nav-item i,
.wbacb-bottom-nav-item span.icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  transition: transform 0.3s ease;
}

.wbacb-bottom-nav-item span.text {
  font-size: 1rem;
  font-weight: 500;
}

.wbacb-bottom-nav-item:hover {
  color: var(--wbacb-primary);
}

.wbacb-bottom-nav-item:hover i,
.wbacb-bottom-nav-item:hover span.icon {
  transform: scale(1.15);
}

.wbacb-bottom-nav-item.wbacb-nav-active {
  color: var(--wbacb-primary);
}

.wbacb-bottom-nav-item.wbacb-nav-active i,
.wbacb-bottom-nav-item.wbacb-nav-active span.icon {
  transform: scale(1.2);
}

@media (min-width: 769px) {
  .wbacb-bottom-nav {
    display: none;
  }
}

/* Footer */
.wbacb-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--wbacb-dark) 100%);
  padding: 2rem 0 8rem;
  border-top: 2px solid var(--wbacb-primary);
}

.wbacb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.wbacb-footer-link {
  color: var(--wbacb-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.wbacb-footer-link:hover {
  color: var(--wbacb-primary);
  background: rgba(184, 134, 11, 0.1);
}

.wbacb-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.wbacb-partner img {
  height: 3rem;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wbacb-partner img:hover {
  opacity: 1;
}

.wbacb-copyright {
  text-align: center;
  color: var(--wbacb-text-muted);
  font-size: 1.2rem;
  padding: 1rem;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--wbacb-primary);
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--wbacb-secondary);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--wbacb-text);
}

p {
  margin-bottom: 1rem;
  color: var(--wbacb-text-muted);
}

/* Utilities */
.wbacb-text-center {
  text-align: center;
}

.wbacb-mt-1 { margin-top: 1rem; }
.wbacb-mt-2 { margin-top: 2rem; }
.wbacb-mb-1 { margin-bottom: 1rem; }
.wbacb-mb-2 { margin-bottom: 2rem; }

.wbacb-touch-active {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 380px) {
  .wbacb-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wbacb-game-name {
    font-size: 0.9rem;
  }
}
