/**
 * BingoPlus PH - Main Stylesheet
 * All classes use w9362- prefix for namespace isolation
 */

/* CSS Custom Properties */
:root {
  --w9362-primary: #26A69A;
  --w9362-secondary: #008B8B;
  --w9362-accent: #00B8D4;
  --w9362-dark: #1E1E1E;
  --w9362-light: #FAFAFA;
  --w9362-text: #FAFAFA;
  --w9362-text-muted: #B0BEC5;
  --w9362-border: #37474F;
  --w9362-success: #26A69A;
  --w9362-warning: #FFA726;
  --w9362-danger: #EF5350;
  --w9362-shadow: rgba(0, 0, 0, 0.3);
  --w9362-overlay: rgba(30, 30, 30, 0.95);
}

/* 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.5;
  color: var(--w9362-text);
  background-color: var(--w9362-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.w9362-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.w9362-wrapper {
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header Styles */
.w9362-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--w9362-dark);
  border-bottom: 1px solid var(--w9362-border);
  box-shadow: 0 2px 10px var(--w9362-shadow);
}

.w9362-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
}

.w9362-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w9362-text);
}

.w9362-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.w9362-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9362-primary);
}

.w9362-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.w9362-btn-header {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.w9362-btn-register {
  background-color: var(--w9362-primary);
  color: var(--w9362-light);
}

.w9362-btn-register:hover {
  background-color: var(--w9362-secondary);
  transform: scale(1.05);
}

.w9362-btn-login {
  background-color: transparent;
  color: var(--w9362-primary);
  border: 2px solid var(--w9362-primary);
}

.w9362-btn-login:hover {
  background-color: var(--w9362-primary);
  color: var(--w9362-light);
}

/* Mobile Menu Toggle */
.w9362-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

@media (min-width: 769px) {
  .w9362-menu-toggle {
    display: none;
  }
}

.w9362-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--w9362-text);
  border-radius: 0.1rem;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.w9362-mobile-menu {
  position: fixed;
  top: 7rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--w9362-overlay);
  backdrop-filter: blur(1rem);
  padding: 2rem 0;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.w9362-mobile-menu.pro2b8-menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.w9362-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.w9362-mobile-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--w9362-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--w9362-border);
  transition: all 0.3s ease;
}

.w9362-mobile-menu-link:hover {
  color: var(--w9362-primary);
  padding-left: 1rem;
}

.w9362-mobile-menu-link:last-child {
  border-bottom: none;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .w9362-desktop-nav {
    display: flex;
    gap: 2rem;
  }

  .w9362-desktop-nav a {
    color: var(--w9362-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
  }

  .w9362-desktop-nav a:hover {
    color: var(--w9362-primary);
  }
}

@media (max-width: 768px) {
  .w9362-desktop-nav {
    display: none;
  }
}

/* Bottom Navigation */
.w9362-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--w9362-dark);
  border-top: 2px solid var(--w9362-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  box-shadow: 0 -2px 10px var(--w9362-shadow);
}

@media (min-width: 769px) {
  .w9362-bottom-nav {
    display: none;
  }
}

.w9362-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--w9362-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.w9362-bottom-nav-item:hover {
  color: var(--w9362-primary);
  transform: scale(1.1);
}

.w9362-bottom-nav-item.w9362-nav-active {
  color: var(--w9362-primary);
}

.w9362-bottom-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.w9362-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Main Content */
main {
  min-height: calc(100vh - 14rem);
}

@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Typography */
.w9362-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w9362-primary);
  margin-bottom: 1.6rem;
  line-height: 1.3;
}

.w9362-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--w9362-text);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
}

.w9362-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 2rem;
  background-color: var(--w9362-primary);
  border-radius: 0.2rem;
}

/* Carousel */
.w9362-carousel {
  position: relative;
  margin-bottom: 2.4rem;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.w9362-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w9362-carousel-slide.pro2b8-slide-active {
  opacity: 1;
}

.w9362-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.w9362-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.w9362-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(250, 250, 250, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.w9362-carousel-indicator.pro2b8-indicator-active {
  background-color: var(--w9362-primary);
  transform: scale(1.2);
}

/* Game Grid */
.w9362-game-section {
  margin-bottom: 3.2rem;
}

.w9362-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.w9362-game-item {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--w9362-border);
  aspect-ratio: 1;
}

.w9362-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--w9362-shadow);
}

.w9362-game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w9362-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--w9362-text);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 0.4rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons */
.w9362-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.w9362-btn-promo {
  background: linear-gradient(135deg, var(--w9362-primary), var(--w9362-secondary));
  color: var(--w9362-light);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

.w9362-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(38, 166, 154, 0.6);
}

.w9362-btn-secondary {
  background-color: var(--w9362-secondary);
  color: var(--w9362-light);
}

.w9362-btn-outline {
  background-color: transparent;
  border: 2px solid var(--w9362-primary);
  color: var(--w9362-primary);
}

.w9362-btn-outline:hover {
  background-color: var(--w9362-primary);
  color: var(--w9362-light);
}

.w9362-btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Cards */
.w9362-card {
  background-color: rgba(55, 71, 79, 0.5);
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--w9362-border);
  transition: all 0.3s ease;
}

.w9362-card:hover {
  border-color: var(--w9362-primary);
  box-shadow: 0 4px 12px var(--w9362-shadow);
}

.w9362-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w9362-primary);
  margin-bottom: 1rem;
}

.w9362-card-content {
  color: var(--w9362-text);
  line-height: 1.6;
}

/* Links */
.w9362-link {
  color: var(--w9362-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.w9362-link:hover {
  color: var(--w9362-accent);
  text-decoration: underline;
}

.w9362-link-bold {
  color: var(--w9362-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.w9362-link-bold:hover {
  color: var(--w9362-accent);
  text-decoration: underline;
}

/* Sections */
.w9362-section {
  margin-bottom: 4rem;
  padding: 2rem;
  background-color: rgba(55, 71, 79, 0.3);
  border-radius: 1.2rem;
  border: 1px solid var(--w9362-border);
}

.w9362-section-content {
  color: var(--w9362-text);
  line-height: 1.8;
}

.w9362-section-content p {
  margin-bottom: 1.2rem;
}

/* List Styles */
.w9362-list {
  list-style: none;
  padding-left: 0;
}

.w9362-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w9362-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.w9362-list-item:last-child {
  border-bottom: none;
}

.w9362-list-icon {
  color: var(--w9362-primary);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.w9362-list-content {
  flex: 1;
}

.w9362-list-title {
  font-weight: 600;
  color: var(--w9362-text);
  margin-bottom: 0.4rem;
}

.w9362-list-text {
  color: var(--w9362-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

/* Footer */
.w9362-footer {
  background-color: rgba(30, 30, 30, 0.98);
  border-top: 2px solid var(--w9362-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.w9362-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.w9362-footer-description {
  color: var(--w9362-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.w9362-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w9362-footer-link {
  color: var(--w9362-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.w9362-footer-link:hover {
  color: var(--w9362-accent);
}

.w9362-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w9362-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.w9362-partner-logo:hover {
  opacity: 1;
}

.w9362-copyright {
  text-align: center;
  color: var(--w9362-text-muted);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--w9362-border);
}

/* Utility Classes */
.w9362-text-center {
  text-align: center;
}

.w9362-mb-1 {
  margin-bottom: 1rem;
}

.w9362-mb-2 {
  margin-bottom: 2rem;
}

.w9362-mb-3 {
  margin-bottom: 3rem;
}

.w9362-mt-1 {
  margin-top: 1rem;
}

.w9362-mt-2 {
  margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
  .w9362-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .w9362-title {
    font-size: 2rem;
  }
}
