/**
 * BingoPlus PH - Main Stylesheet
 * Class prefix: v078-
 * All classes use this prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --v078-primary: #000080;
  --v078-secondary: #2E4057;
  --v078-bg: #1a1a2e;
  --v078-bg-dark: #0f0f1a;
  --v078-bg-card: #252542;
  --v078-text: #ffffff;
  --v078-text-muted: #b8b8d4;
  --v078-accent: #ffd700;
  --v078-success: #00c851;
  --v078-border: #3a3a5c;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v078-text);
  background-color: var(--v078-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.v078-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v078-wrapper {
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .v078-wrapper {
    padding-bottom: 2rem;
  }
}

/* Header */
.v078-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v078-secondary) 0%, var(--v078-primary) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 1rem 0;
}

.v078-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.v078-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v078-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.v078-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.v078-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.v078-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.v078-btn-primary {
  background: var(--v078-accent);
  color: var(--v078-primary);
}

.v078-btn-secondary {
  background: transparent;
  color: var(--v078-text);
  border: 2px solid var(--v078-text);
}

.v078-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.v078-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--v078-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .v078-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.v078-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v078-secondary) 0%, var(--v078-bg-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.v078-mobile-menu.v078-menu-open {
  right: 0;
}

.v078-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v078-menu-overlay.v078-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v078-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.v078-menu-close {
  background: none;
  border: none;
  color: var(--v078-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v078-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.v078-menu-link {
  color: var(--v078-text);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.v078-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.v078-main {
  margin-top: 70px;
  padding: 1.5rem 0;
}

/* Carousel */
.v078-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.v078-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v078-carousel-slide.v078-active {
  opacity: 1;
}

.v078-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.v078-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v078-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v078-carousel-dot.v078-active {
  background: var(--v078-accent);
  width: 24px;
  border-radius: 4px;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--v078-text);
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v078-text);
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--v078-text);
}

p {
  margin-bottom: 1rem;
  color: var(--v078-text-muted);
}

a {
  color: var(--v078-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffed4a;
}

/* Sections */
.v078-section {
  background: var(--v078-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.v078-section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--v078-accent);
}

/* Game Grid */
.v078-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v078-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.v078-game-item:hover {
  transform: scale(1.05);
}

.v078-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--v078-bg-dark);
}

.v078-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v078-game-name {
  font-size: 1rem;
  color: var(--v078-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Category Title */
.v078-category-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--v078-text);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v078-border);
}

/* Card */
.v078-card {
  background: var(--v078-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.v078-card-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v078-text);
}

/* List */
.v078-list {
  list-style: none;
  padding: 0;
}

.v078-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v078-border);
  color: var(--v078-text-muted);
}

.v078-list-item:last-child {
  border-bottom: none;
}

/* Link Button */
.v078-link-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--v078-accent);
  color: var(--v078-primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
}

.v078-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Footer */
.v078-footer {
  background: var(--v078-bg-dark);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.v078-footer-content {
  text-align: center;
}

.v078-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v078-footer-link {
  color: var(--v078-text-muted);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.v078-footer-link:hover {
  color: var(--v078-accent);
}

.v078-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.v078-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v078-partner-logo:hover {
  opacity: 1;
}

.v078-copyright {
  color: var(--v078-text-muted);
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* Bottom Navigation */
.v078-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--v078-secondary) 0%, var(--v078-primary) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
}

@media (min-width: 769px) {
  .v078-bottom-nav {
    display: none;
  }
}

.v078-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v078-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--v078-text);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
  border-radius: 8px;
}

.v078-nav-item:hover,
.v078-nav-item.v078-active {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
}

.v078-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v078-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .v078-container {
    padding: 0 1rem;
  }
}

/* Utility */
.v078-text-center {
  text-align: center;
}

.v078-mt-1 {
  margin-top: 1rem;
}

.v078-mt-2 {
  margin-top: 2rem;
}

.v078-mb-1 {
  margin-bottom: 1rem;
}

.v078-mb-2 {
  margin-bottom: 2rem;
}
