/* maya games Core CSS - Mobile-First Design */
/* All classes use prefix 'sbc5-' for namespace isolation */

/* CSS Custom Properties - Color Palette */
:root {
  --sbc5-primary: #FFC0CB;
  --sbc5-secondary: #66CDAA;
  --sbc5-accent: #BAFFC9;
  --sbc5-dark: #1A1A1A;
  --sbc5-darker: #0D0D0D;
  --sbc5-light: #F8F9FA;
  --sbc5-brown: #A0522D;
  --sbc5-text: #F8F9FA;
  --sbc5-text-muted: #B8B8B8;
  --sbc5-gradient: linear-gradient(135deg, #FFC0CB 0%, #66CDAA 100%);
  --sbc5-shadow: 0 4px 12px rgba(255, 192, 203, 0.3);
}

/* Base Reset and Typography */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--sbc5-dark);
  color: var(--sbc5-text);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header Styles */
.sbc5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 192, 203, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sbc5-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 430px;
  margin: 0 auto;
}

.sbc5-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sbc5-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.sbc5-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sbc5-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sbc5-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sbc5-btn-register {
  background: var(--sbc5-gradient);
  color: var(--sbc5-dark);
  box-shadow: 0 2px 8px rgba(255, 192, 203, 0.4);
}

.sbc5-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.6);
}

.sbc5-btn-login {
  background: transparent;
  color: var(--sbc5-primary);
  border: 1px solid var(--sbc5-primary);
}

.sbc5-btn-login:hover {
  background: rgba(255, 192, 203, 0.1);
}

.sbc5-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--sbc5-primary);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.sbc5-menu-toggle:hover {
  background: rgba(255, 192, 203, 0.1);
}

.sbc5-menu-toggle {
  display: flex;
}

@media (min-width: 769px) {
  .sbc5-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.sbc5-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.95) 100%);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 192, 203, 0.2);
}

.sbc5-mobile-menu.sbc5-menu-open {
  left: 0;
}

.sbc5-menu-list {
  list-style: none;
  padding: 80px 0 20px;
}

.sbc5-menu-item {
  border-bottom: 1px solid rgba(255, 192, 203, 0.1);
}

.sbc5-menu-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--sbc5-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.sbc5-menu-link:hover {
  background: rgba(255, 192, 203, 0.1);
}

.sbc5-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sbc5-mobile-menu.sbc5-menu-open + .sbc5-menu-overlay {
  display: block;
  opacity: 1;
}

/* Main Content */
.sbc5-main {
  padding-top: 64px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .sbc5-main {
    padding-bottom: 20px;
  }
}

/* Section Styles */
.sbc5-section {
  padding: 16px;
}

.sbc5-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--sbc5-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sbc5-text-center {
  text-align: center;
}

/* Carousel */
.sbc5-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sbc5-shadow);
}

.sbc5-carousel-slide {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sbc5-carousel-slide:hover {
  transform: scale(1.02);
}

/* Games Section */
.sbc5-games-section {
  padding: 20px 16px;
}

.sbc5-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sbc5-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sbc5-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sbc5-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sbc5-game-item:hover {
  transform: scale(1.05);
}

.sbc5-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sbc5-darker);
  border: 1px solid rgba(255, 192, 203, 0.2);
}

.sbc5-game-name {
  font-size: 1rem;
  color: var(--sbc5-text);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Info Cards */
.sbc5-info-card {
  background: linear-gradient(135deg, var(--sbc5-darker) 0%, var(--sbc5-dark) 100%);
  border: 1px solid rgba(255, 192, 203, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.sbc5-info-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sbc5-primary);
  margin-bottom: 12px;
}

.sbc5-info-card p {
  font-size: 1.4rem;
  color: var(--sbc5-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.sbc5-promo-link {
  color: var(--sbc5-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.sbc5-promo-link:hover {
  color: var(--sbc5-secondary);
}

/* CTA Button */
.sbc5-cta-button {
  background: var(--sbc5-gradient);
  color: var(--sbc5-dark);
  padding: 14px 32px;
  border: none;
  border-radius: 24px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.4);
}

.sbc5-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 192, 203, 0.6);
}

.sbc5-mt-20 {
  margin-top: 20px;
}

/* Footer */
.sbc5-footer {
  background: var(--sbc5-darker);
  border-top: 1px solid rgba(255, 192, 203, 0.2);
  padding: 24px 16px 100px;
}

@media (min-width: 769px) {
  .sbc5-footer {
    padding-bottom: 24px;
  }
}

.sbc5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.sbc5-footer-link {
  color: var(--sbc5-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sbc5-footer-link:hover {
  color: var(--sbc5-primary);
  background: rgba(255, 192, 203, 0.1);
}

.sbc5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.sbc5-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sbc5-partner-icon:hover {
  opacity: 1;
}

.sbc5-copyright {
  text-align: center;
  color: var(--sbc5-text-muted);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.sbc5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 192, 203, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .sbc5-bottom-nav {
    display: none;
  }
}

.sbc5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sbc5-nav-item:hover {
  transform: scale(1.1);
}

.sbc5-nav-item:active {
  transform: scale(0.95);
}

.sbc5-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.sbc5-nav-text {
  font-size: 1rem;
  color: var(--sbc5-text-muted);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sbc5-fade-in {
  animation: fadeIn 0.5s ease;
}
