/**
 * juan bingo - Theme CSS Stylesheet
 * All classes use s2b2- prefix for namespace isolation
 */

/* CSS Variables for color palette */
:root {
  --s2b2-primary: #BF360C;
  --s2b2-secondary: #FF7F50;
  --s2b2-dark: #34495E;
  --s2b2-darker: #2c3e50;
  --s2b2-light: #ecf0f1;
  --s2b2-white: #ffffff;
  --s2b2-text: #2c3e50;
  --s2b2-text-light: #7f8c8d;
  --s2b2-bg: #f8f9fa;
  --s2b2-border: #ddd;
  --s2b2-success: #27ae60;
  --s2b2-warning: #f39c12;
  --s2b2-danger: #e74c3c;
}

/* 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.6;
  color: var(--s2b2-text);
  background-color: var(--s2b2-bg);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
}

/* Container */
.s2b2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
.s2b2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s2b2-primary) 0%, var(--s2b2-secondary) 100%);
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s2b2-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s2b2-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.s2b2-site-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s2b2-white);
  text-decoration: none;
}

.s2b2-header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s2b2-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s2b2-btn-primary {
  background-color: var(--s2b2-white);
  color: var(--s2b2-primary);
}

.s2b2-btn-secondary {
  background-color: transparent;
  color: var(--s2b2-white);
  border: 2px solid var(--s2b2-white);
}

.s2b2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile menu toggle */
.s2b2-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.s2b2-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--s2b2-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile menu */
.s2b2-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--s2b2-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1rem 0;
}

.s2b2-menu-open {
  display: block;
}

.s2b2-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s2b2-text);
  text-decoration: none;
  border-bottom: 1px solid var(--s2b2-border);
  transition: background-color 0.3s ease;
}

.s2b2-menu-item:hover {
  background-color: var(--s2b2-bg);
  color: var(--s2b2-primary);
}

/* Main content */
.s2b2-main {
  margin-top: 70px;
  padding-bottom: 80px;
}

/* Carousel */
.s2b2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.s2b2-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.s2b2-carousel-slide {
  min-width: 100%;
  display: none;
}

.s2b2-slide-active {
  display: block;
}

.s2b2-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero section */
.s2b2-hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--s2b2-dark) 0%, var(--s2b2-darker) 100%);
  color: var(--s2b2-white);
  margin-bottom: 2rem;
}

.s2b2-hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.s2b2-hero p {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* Section styles */
.s2b2-section {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.s2b2-section-title {
  font-size: 1.8rem;
  color: var(--s2b2-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

/* Game grid */
.s2b2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s2b2-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s2b2-game-item:hover {
  transform: scale(1.05);
}

.s2b2-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--s2b2-light);
}

.s2b2-game-name {
  font-size: 1rem;
  color: var(--s2b2-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Content card */
.s2b2-card {
  background-color: var(--s2b2-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.s2b2-card h2 {
  font-size: 1.6rem;
  color: var(--s2b2-primary);
  margin-bottom: 1rem;
}

.s2b2-card p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--s2b2-text);
  margin-bottom: 1rem;
}

/* Accordion */
.s2b2-accordion {
  margin-bottom: 2rem;
}

.s2b2-accordion-item {
  background-color: var(--s2b2-white);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.s2b2-accordion-trigger {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, var(--s2b2-secondary) 0%, var(--s2b2-primary) 100%);
  border: none;
  color: var(--s2b2-white);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s2b2-accordion-trigger:after {
  content: '+';
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.s2b2-accordion-open ~ .s2b2-accordion-trigger:after {
  transform: rotate(45deg);
}

.s2b2-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.s2b2-accordion-content-inner {
  padding: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--s2b2-text);
}

/* Bottom navigation */
.s2b2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--s2b2-dark) 0%, var(--s2b2-darker) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.s2b2-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--s2b2-white);
  transition: all 0.3s ease;
  cursor: pointer;
}

.s2b2-nav-item:hover,
.s2b2-nav-item.s2b2-nav-active {
  color: var(--s2b2-secondary);
  transform: scale(1.1);
}

.s2b2-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.s2b2-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .s2b2-bottom-nav {
    display: none;
  }

  .s2b2-main {
    padding-bottom: 2rem;
  }
}

/* Footer */
.s2b2-footer {
  background-color: var(--s2b2-dark);
  color: var(--s2b2-white);
  padding: 2rem 1rem 1rem;
  margin-bottom: 60px;
}

.s2b2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s2b2-footer-link {
  color: var(--s2b2-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.s2b2-footer-link:hover {
  color: var(--s2b2-white);
}

.s2b2-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s2b2-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s2b2-partner-logo:hover {
  opacity: 1;
}

.s2b2-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s2b2-text-light);
  border-top: 1px solid var(--s2b2-border);
  padding-top: 1.5rem;
}

/* Link styles */
.s2b2-link {
  color: var(--s2b2-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.s2b2-link:hover {
  color: var(--s2b2-secondary);
  text-decoration: underline;
}

.s2b2-link-bold {
  color: var(--s2b2-primary);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--s2b2-secondary) 0%, var(--s2b2-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight box */
.s2b2-highlight {
  background: linear-gradient(135deg, var(--s2b2-secondary) 0%, var(--s2b2-primary) 100%);
  color: var(--s2b2-white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.s2b2-highlight h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.s2b2-highlight p {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* Loading state */
.s2b2-loading {
  overflow: hidden;
}

.s2b2-loading::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .s2b2-menu-toggle {
    display: block;
  }

  .s2b2-main {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .s2b2-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
