/**
 * Scattering - Core Stylesheet
 * All classes prefixed with g05c- for namespace isolation
 * Color palette: #333333 | #80CBC4 | #008B8B
 */

/* CSS Variables */
:root {
  --g05c-bg-dark: #333333;
  --g05c-bg-darker: #1a1a1a;
  --g05c-bg-card: #2a2a2a;
  --g05c-accent: #80CBC4;
  --g05c-accent-deep: #008B8B;
  --g05c-text-light: #e0e0e0;
  --g05c-text-muted: #999999;
  --g05c-text-white: #ffffff;
  --g05c-border: #444444;
  --g05c-success: #4CAF50;
  --g05c-warning: #FF9800;
  --g05c-gold: #FFD700;
  --g05c-radius: 8px;
  --g05c-radius-lg: 12px;
  --g05c-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g05c-transition: all 0.3s ease;
}

/* Reset and 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, sans-serif;
  background: var(--g05c-bg-dark);
  color: var(--g05c-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--g05c-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g05c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g05c-bg-darker) 0%, var(--g05c-bg-dark) 100%);
  border-bottom: 2px solid var(--g05c-accent-deep);
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g05c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g05c-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g05c-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g05c-accent);
  letter-spacing: 0.5px;
}
.g05c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g05c-btn-register, .g05c-btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--g05c-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--g05c-transition);
}
.g05c-btn-register {
  background: linear-gradient(135deg, var(--g05c-accent) 0%, var(--g05c-accent-deep) 100%);
  color: var(--g05c-bg-darker);
}
.g05c-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(128,203,196,0.5); }
.g05c-btn-login {
  background: transparent;
  color: var(--g05c-accent);
  border: 1px solid var(--g05c-accent);
}
.g05c-btn-login:hover { background: rgba(128,203,196,0.1); }
.g05c-menu-toggle {
  background: none;
  border: none;
  color: var(--g05c-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.g05c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  z-index: 9999;
  background: var(--g05c-bg-darker);
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--g05c-accent-deep);
}
.g05c-menu-active { right: 0; }
.g05c-menu-close {
  background: none;
  border: none;
  color: var(--g05c-accent);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.g05c-menu-links {
  list-style: none;
  margin-top: 3rem;
}
.g05c-menu-links li {
  border-bottom: 1px solid var(--g05c-border);
}
.g05c-menu-links a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.5rem;
  color: var(--g05c-text-light);
  transition: var(--g05c-transition);
}
.g05c-menu-links a:hover { color: var(--g05c-accent); padding-left: 0.5rem; }

/* Overlay */
.g05c-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.g05c-overlay-active { display: block; }

/* Main Content */
.g05c-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* Carousel */
.g05c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.g05c-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g05c-slide-active { display: block; }
.g05c-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.g05c-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  background: var(--g05c-bg-darker);
}
.g05c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g05c-border);
  cursor: pointer;
  border: none;
  transition: var(--g05c-transition);
}
.g05c-dot-active { background: var(--g05c-accent); transform: scale(1.3); }

/* Section */
.g05c-section {
  padding: 2rem 1rem;
}
.g05c-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g05c-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g05c-accent-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g05c-section-title i, .g05c-section-title .material-icons {
  font-size: 2rem;
}

/* Game Grid */
.g05c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g05c-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g05c-transition);
  border-radius: var(--g05c-radius);
  padding: 0.5rem;
  background: var(--g05c-bg-card);
}
.g05c-game-item:hover { transform: translateY(-2px); box-shadow: var(--g05c-shadow); background: #353535; }
.g05c-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.g05c-game-name {
  font-size: 1.05rem;
  color: var(--g05c-text-light);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Title */
.g05c-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g05c-text-white);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--g05c-accent);
}

/* Cards */
.g05c-card {
  background: var(--g05c-bg-card);
  border-radius: var(--g05c-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g05c-border);
}
.g05c-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g05c-accent);
  margin-bottom: 0.8rem;
}
.g05c-card p {
  color: var(--g05c-text-muted);
  line-height: 1.8rem;
  font-size: 1.3rem;
}

/* CTA Button */
.g05c-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--g05c-accent) 0%, var(--g05c-accent-deep) 100%);
  color: var(--g05c-bg-darker);
  padding: 1rem 2rem;
  border-radius: var(--g05c-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--g05c-transition);
  text-align: center;
  width: 100%;
}
.g05c-cta:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(128,203,196,0.4); }

/* Promo text link */
.g05c-promo-link {
  color: var(--g05c-accent);
  font-weight: 700;
  cursor: pointer;
  transition: var(--g05c-transition);
  border-bottom: 1px dashed var(--g05c-accent);
}
.g05c-promo-link:hover { color: var(--g05c-text-white); }

/* Footer */
.g05c-footer {
  background: var(--g05c-bg-darker);
  padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--g05c-accent-deep);
}
.g05c-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.g05c-footer-brand p {
  color: var(--g05c-text-muted);
  font-size: 1.2rem;
  line-height: 1.7rem;
}
.g05c-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.g05c-footer-links a {
  background: var(--g05c-bg-card);
  color: var(--g05c-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--g05c-radius);
  font-size: 1.1rem;
  border: 1px solid var(--g05c-border);
  transition: var(--g05c-transition);
}
.g05c-footer-links a:hover { background: var(--g05c-accent-deep); color: var(--g05c-text-white); }
.g05c-footer-copy {
  text-align: center;
  color: var(--g05c-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g05c-border);
}

/* Bottom Navigation */
.g05c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g05c-bg-darker) 0%, #111111 100%);
  border-top: 2px solid var(--g05c-accent-deep);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}
.g05c-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g05c-text-muted);
  cursor: pointer;
  transition: var(--g05c-transition);
  gap: 0.2rem;
  padding: 0.3rem;
}
.g05c-bottom-btn:hover, .g05c-bottom-btn:focus {
  color: var(--g05c-accent);
  transform: scale(1.1);
}
.g05c-bottom-btn.g05c-active {
  color: var(--g05c-accent);
}
.g05c-bottom-btn i, .g05c-bottom-btn .material-icons {
  font-size: 2.2rem;
}
.g05c-bottom-btn span {
  font-size: 1rem;
  font-weight: 500;
}

/* Winner ticker */
.g05c-winner-ticker {
  background: var(--g05c-bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--g05c-radius);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--g05c-accent-deep);
}
.g05c-winner-badge {
  background: var(--g05c-accent-deep);
  color: var(--g05c-text-white);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* FAQ */
.g05c-faq-item {
  background: var(--g05c-bg-card);
  border-radius: var(--g05c-radius);
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--g05c-accent-deep);
}
.g05c-faq-item strong {
  display: block;
  color: var(--g05c-accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

/* Feature list */
.g05c-feature-list {
  list-style: none;
}
.g05c-feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--g05c-text-muted);
  font-size: 1.3rem;
  line-height: 1.6rem;
}
.g05c-feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--g05c-accent);
  font-size: 1.2rem;
}

/* Testimonial */
.g05c-testimonial {
  background: var(--g05c-bg-card);
  border-radius: var(--g05c-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g05c-border);
}
.g05c-testimonial-name {
  color: var(--g05c-accent);
  font-weight: 600;
  font-size: 1.3rem;
}
.g05c-testimonial-text {
  color: var(--g05c-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-top: 0.4rem;
}
.g05c-testimonial-stars {
  color: var(--g05c-gold);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Payment row */
.g05c-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.g05c-payment-item {
  background: var(--g05c-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--g05c-radius);
  border: 1px solid var(--g05c-border);
  font-size: 1.2rem;
  color: var(--g05c-text-light);
}

/* App CTA */
.g05c-app-cta {
  background: linear-gradient(135deg, var(--g05c-accent-deep) 0%, var(--g05c-bg-darker) 100%);
  border-radius: var(--g05c-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--g05c-accent-deep);
}
.g05c-app-cta h3 {
  color: var(--g05c-accent);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

/* Internal link styles */
.g05c-internal-link {
  color: var(--g05c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--g05c-transition);
}
.g05c-internal-link:hover {
  color: var(--g05c-text-white);
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g05c-bottom-nav { display: none; }
}
/* Mobile: bottom padding for nav clearance */
@media (max-width: 768px) {
  .g05c-main { padding-bottom: 80px; }
  .g05c-footer { padding-bottom: 80px; }
}

/* Utility */
.g05c-text-center { text-align: center; }
.g05c-mt-1 { margin-top: 1rem; }
.g05c-mt-2 { margin-top: 2rem; }
.g05c-mb-1 { margin-bottom: 1rem; }
.g05c-mb-2 { margin-bottom: 2rem; }
.g05c-highlight { color: var(--g05c-accent); font-weight: 600; }
