/**
 * 789 Bingo - Layout Stylesheet
 * Prefix: g302-
 * All classes use g302- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --g302-primary: #5F9EA0;
  --g302-secondary: #ADD8E6;
  --g302-accent: #FF6347;
  --g302-bg: #273746;
  --g302-bg-dark: #1a2530;
  --g302-bg-card: #2c3e50;
  --g302-text: #ADD8E6;
  --g302-text-light: #e8f4f8;
  --g302-text-muted: #8fa8b8;
  --g302-blue: #0000CD;
  --g302-border: #3a5068;
  --g302-gold: #FFD700;
  --g302-success: #2ecc71;
  --g302-radius: 8px;
  --g302-radius-lg: 12px;
  --g302-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --g302-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g302-bg);
  color: var(--g302-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--g302-secondary); text-decoration: none; transition: var(--g302-transition); }
a:hover { color: var(--g302-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.g302-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g302-wrapper { padding: 1.2rem 0; }

/* Header */
.g302-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g302-bg-dark), var(--g302-bg));
  border-bottom: 2px solid var(--g302-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.6rem;
}
.g302-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.g302-logo img { width: 3.2rem; height: 3.2rem; border-radius: 6px; }
.g302-logo span { font-size: 1.6rem; font-weight: 700; color: var(--g302-text-light); letter-spacing: 0.5px; }
.g302-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g302-btn-login {
  padding: 0.6rem 1.2rem; border: 1px solid var(--g302-primary); border-radius: var(--g302-radius);
  background: transparent; color: var(--g302-secondary); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--g302-transition);
}
.g302-btn-login:hover { background: var(--g302-primary); color: #fff; }
.g302-btn-register {
  padding: 0.6rem 1.2rem; border: none; border-radius: var(--g302-radius);
  background: linear-gradient(135deg, var(--g302-accent), #e5533a); color: #fff;
  font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: var(--g302-transition);
}
.g302-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,99,71,0.4); }
.g302-menu-toggle {
  display: none; background: none; border: none; color: var(--g302-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
}
@media (max-width: 768px) { .g302-menu-toggle { display: block; } }

/* Mobile Menu */
.g302-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.g302-overlay-active { display: block; }
.g302-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--g302-bg-dark); z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.g302-menu-active { right: 0; }
.g302-menu-close {
  display: flex; justify-content: flex-end; margin-bottom: 1.5rem;
  background: none; border: none; color: var(--g302-text); font-size: 2.8rem; cursor: pointer;
}
.g302-menu-links a {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  color: var(--g302-text-light); font-size: 1.4rem; border-radius: var(--g302-radius);
  transition: var(--g302-transition); border-bottom: 1px solid var(--g302-border);
}
.g302-menu-links a:hover { background: var(--g302-primary); color: #fff; }

/* Main Content */
.g302-main { margin-top: 5.6rem; }
@media (max-width: 768px) { .g302-main { padding-bottom: 7.5rem; } }

/* Carousel */
.g302-carousel { position: relative; overflow: hidden; border-radius: 0 0 var(--g302-radius-lg) var(--g302-radius-lg); }
.g302-slide {
  display: none; cursor: pointer; position: relative;
}
.g302-slide-active { display: block; }
.g302-slide img { width: 100%; height: auto; min-height: 180px; object-fit: cover; }
.g302-slide-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.g302-slide-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--g302-transition);
}
.g302-dot-active { background: var(--g302-accent); transform: scale(1.3); }

/* Section Headings */
.g302-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--g302-text-light);
  margin: 2rem 0 1rem; padding-left: 1rem;
  border-left: 4px solid var(--g302-accent);
  line-height: 2rem;
}
.g302-section-title i { margin-right: 0.6rem; color: var(--g302-accent); }

/* H1 Title */
.g302-h1-title {
  font-size: 2rem; font-weight: 800; color: var(--g302-text-light);
  text-align: center; padding: 1.5rem 1rem; line-height: 2.4rem;
}
.g302-h1-title span { color: var(--g302-accent); }

/* Game Grid */
.g302-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  padding: 0.8rem 0;
}
.g302-game-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  cursor: pointer; transition: var(--g302-transition); padding: 0.5rem;
  border-radius: var(--g302-radius); background: var(--g302-bg-card);
}
.g302-game-item:hover { transform: translateY(-3px); box-shadow: var(--g302-shadow); }
.g302-game-item img {
  width: 6rem; height: 6rem; border-radius: var(--g302-radius);
  object-fit: cover; border: 1px solid var(--g302-border);
}
.g302-game-name {
  font-size: 1rem; color: var(--g302-text-muted); text-align: center;
  line-height: 1.2rem; max-width: 7rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Content Card */
.g302-card {
  background: var(--g302-bg-card); border-radius: var(--g302-radius-lg);
  padding: 1.5rem; margin: 1rem 0; border: 1px solid var(--g302-border);
}
.g302-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g302-text-light);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.g302-card p { color: var(--g302-text-muted); margin-bottom: 0.8rem; line-height: 1.6rem; }

/* CTA / Promo Buttons */
.g302-cta {
  display: inline-block; padding: 1rem 2rem; border: none; border-radius: var(--g302-radius);
  background: linear-gradient(135deg, var(--g302-accent), #e5533a); color: #fff;
  font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: var(--g302-transition);
  text-align: center; text-decoration: none;
}
.g302-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255,99,71,0.4); color: #fff; }
.g302-cta-outline {
  display: inline-block; padding: 0.8rem 1.5rem; border: 2px solid var(--g302-primary);
  border-radius: var(--g302-radius); background: transparent; color: var(--g302-secondary);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; transition: var(--g302-transition);
  text-align: center; text-decoration: none;
}
.g302-cta-outline:hover { background: var(--g302-primary); color: #fff; }
.g302-text-link {
  color: var(--g302-accent); font-weight: 600; text-decoration: underline;
  cursor: pointer; transition: var(--g302-transition);
}
.g302-text-link:hover { color: var(--g302-gold); }

/* Footer */
.g302-footer {
  background: var(--g302-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--g302-primary); margin-top: 2rem;
}
.g302-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.g302-footer-brand p { color: var(--g302-text-muted); font-size: 1.2rem; line-height: 1.5rem; margin-bottom: 0.5rem; }
.g302-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.g302-footer-btn {
  padding: 0.6rem 1.2rem; border-radius: var(--g302-radius); border: 1px solid var(--g302-primary);
  background: var(--g302-bg-card); color: var(--g302-secondary); font-size: 1.1rem;
  cursor: pointer; transition: var(--g302-transition);
}
.g302-footer-btn:hover { background: var(--g302-primary); color: #fff; }
.g302-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: center; margin: 1rem 0; }
.g302-footer-links a { color: var(--g302-text-muted); font-size: 1.1rem; }
.g302-footer-links a:hover { color: var(--g302-accent); }
.g302-partners { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1rem 0; }
.g302-partners img { height: 2.5rem; opacity: 0.7; filter: grayscale(50%); }
.g302-copyright { text-align: center; color: var(--g302-text-muted); font-size: 1rem; padding: 1rem 0; border-top: 1px solid var(--g302-border); }

/* Bottom Mobile Navigation */
.g302-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--g302-bg-dark), #0f1922);
  border-top: 2px solid var(--g302-primary); height: 6rem;
  display: none; align-items: center; justify-content: space-around;
  max-width: 430px; margin: 0 auto;
  padding: 0 0.5rem;
}
@media (max-width: 768px) { .g302-bottom-nav { display: flex; } }
.g302-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; background: none; border: none;
  color: var(--g302-text-muted); cursor: pointer; transition: var(--g302-transition);
  padding: 0.3rem; border-radius: var(--g302-radius);
}
.g302-nav-btn:hover { color: var(--g302-accent); transform: scale(1.08); }
.g302-nav-btn i, .g302-nav-btn .material-icons-outlined {
  font-size: 2.4rem; margin-bottom: 0.2rem;
}
.g302-nav-btn ion-icon { font-size: 2.4rem; margin-bottom: 0.2rem; }
.g302-nav-btn span { font-size: 1rem; line-height: 1.2rem; }
.g302-nav-active { color: var(--g302-accent) !important; }

/* Help Page Styles */
.g302-help-title { font-size: 2rem; font-weight: 800; color: var(--g302-text-light); text-align: center; padding: 1.5rem 0.5rem; line-height: 2.4rem; }
.g302-help-content { padding: 0 1.2rem 2rem; }
.g302-help-content h2 { font-size: 1.6rem; color: var(--g302-secondary); margin: 1.5rem 0 0.8rem; border-bottom: 1px solid var(--g302-border); padding-bottom: 0.5rem; }
.g302-help-content h3 { font-size: 1.4rem; color: var(--g302-accent); margin: 1.2rem 0 0.6rem; }
.g302-help-content p { color: var(--g302-text-muted); line-height: 1.6rem; margin-bottom: 0.8rem; }
.g302-help-content ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.g302-help-content li { color: var(--g302-text-muted); line-height: 1.6rem; margin-bottom: 0.4rem; list-style: disc; }

/* FAQ Accordion */
.g302-faq-item { border: 1px solid var(--g302-border); border-radius: var(--g302-radius); margin-bottom: 0.8rem; overflow: hidden; background: var(--g302-bg-card); }
.g302-faq-q {
  padding: 1rem 1.2rem; font-weight: 600; color: var(--g302-text-light);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.3rem;
}
.g302-faq-q i { color: var(--g302-accent); transition: transform 0.3s; }
.g302-faq-a { padding: 0 1.2rem 1rem; color: var(--g302-text-muted); line-height: 1.5rem; font-size: 1.2rem; }

/* Responsive Utilities */
.g302-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.g302-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
.g302-flex-center { display: flex; align-items: center; justify-content: center; }
.g302-text-center { text-align: center; }
.g302-mt-1 { margin-top: 1rem; }
.g302-mt-2 { margin-top: 2rem; }
.g302-mb-1 { margin-bottom: 1rem; }
.g302-mb-2 { margin-bottom: 2rem; }

/* Desktop overrides */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .g302-bottom-nav { display: none; }
  .g302-menu-toggle { display: none; }
  .g302-header { max-width: 430px; }
}
