/**
 * xxgame.sbs - Core Stylesheet
 * Mobile-first gaming website for Philippine market
 * All classes use sfc7- prefix for namespace isolation
 * Color palette: #8B7355 (bronze) | #FFEFD5 (cream) | #1A1A2E (deep navy) | #F5DEB3 (wheat)
 */

:root {
  --sfc7-primary: #8B7355; --sfc7-primary-light: #A68B5B; --sfc7-primary-dark: #6B5640;
  --sfc7-accent: #FFEFD5; --sfc7-bg: #1A1A2E; --sfc7-bg-light: #252542;
  --sfc7-bg-card: #222240; --sfc7-text: #F5DEB3; --sfc7-text-light: #FFEFD5;
  --sfc7-text-muted: #B8A88A; --sfc7-border: #3A3A5C; --sfc7-success: #4CAF50;
  --sfc7-warning: #FFC107; --sfc7-danger: #E74C3C;
  --sfc7-gradient: linear-gradient(135deg, #8B7355 0%, #6B5640 100%);
  --sfc7-shadow: 0 4px 12px rgba(0,0,0,0.3); --sfc7-radius: 8px; --sfc7-radius-lg: 12px;
  font-size: 62.5%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--sfc7-bg); color: var(--sfc7-text); font-size: 1.5rem;
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

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

/* Header */
.sfc7-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--sfc7-bg); border-bottom: 2px solid var(--sfc7-primary);
  height: 56px; display: flex; align-items: center; padding: 0 1rem;
}
.sfc7-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 430px; margin: 0 auto;
}
.sfc7-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.sfc7-logo img { width: 28px; height: 28px; border-radius: 4px; }
.sfc7-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--sfc7-accent); letter-spacing: 0.5px; }
.sfc7-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.sfc7-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--sfc7-radius); font-size: 1.3rem;
  font-weight: 600; cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s ease; min-height: 36px;
}
.sfc7-btn-register { background: var(--sfc7-gradient); color: #fff; border: 1px solid var(--sfc7-primary-light); }
.sfc7-btn-register:hover { background: var(--sfc7-primary-light); transform: scale(1.03); }
.sfc7-btn-login { background: transparent; color: var(--sfc7-accent); border: 1px solid var(--sfc7-primary); }
.sfc7-btn-login:hover { background: var(--sfc7-primary); color: #fff; }
.sfc7-btn-promo {
  display: block; width: 100%; padding: 1.2rem; background: var(--sfc7-gradient);
  color: #fff; border: none; border-radius: var(--sfc7-radius); font-size: 1.6rem;
  font-weight: 700; text-align: center; cursor: pointer; transition: all 0.2s; margin: 1.5rem 0;
}
.sfc7-btn-promo:hover { background: var(--sfc7-primary-light); transform: scale(1.02); }
.sfc7-menu-toggle {
  background: none; border: none; color: var(--sfc7-accent);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.sfc7-mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: var(--sfc7-bg-light); border-bottom: 2px solid var(--sfc7-primary);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease;
}
.sfc7-mobile-menu-inner { padding: 1rem; }
.sfc7-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0.8rem;
  color: var(--sfc7-text); text-decoration: none; font-size: 1.4rem;
  border-bottom: 1px solid var(--sfc7-border); transition: color 0.2s;
}
.sfc7-mobile-menu a:last-child { border-bottom: none; }
.sfc7-mobile-menu a:hover { color: var(--sfc7-accent); background: rgba(139,115,85,0.1); }
.sfc7-mobile-menu a i, .sfc7-mobile-menu a span.material-symbols-outlined {
  font-size: 2rem; color: var(--sfc7-primary);
}

/* Main Content */
.sfc7-main { margin-top: 56px; min-height: calc(100vh - 56px); }
@media (max-width: 768px) { .sfc7-main { padding-bottom: 80px; } }

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

/* Section Styles */
.sfc7-section { padding: 2rem 0; }
.sfc7-section-title {
  font-size: 2rem; font-weight: 700; color: var(--sfc7-accent);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sfc7-primary); display: flex; align-items: center; gap: 0.6rem;
}
.sfc7-section-title i { color: var(--sfc7-primary); }

/* Game Grid */
.sfc7-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.sfc7-game-card {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: var(--sfc7-radius); overflow: hidden;
}
.sfc7-game-card:hover { transform: translateY(-2px); }
.sfc7-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--sfc7-radius); border: 2px solid var(--sfc7-border); transition: border-color 0.2s;
}
.sfc7-game-card:hover img { border-color: var(--sfc7-primary); }
.sfc7-game-name {
  font-size: 1.1rem; color: var(--sfc7-text); margin-top: 0.3rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Category Header */
.sfc7-cat-header { display: flex; align-items: center; gap: 0.5rem; margin: 1.6rem 0 1rem; font-size: 1.6rem; font-weight: 600; color: var(--sfc7-accent); }
.sfc7-cat-header i { color: var(--sfc7-primary); font-size: 1.8rem; }

/* Text & Cards */
.sfc7-text { color: var(--sfc7-text); line-height: 1.6; margin-bottom: 1rem; }
.sfc7-text a { color: var(--sfc7-primary-light); text-decoration: underline; }
.sfc7-card {
  background: var(--sfc7-bg-card); border: 1px solid var(--sfc7-border);
  border-radius: var(--sfc7-radius-lg); padding: 1.5rem; margin-bottom: 1.2rem; transition: border-color 0.2s;
}
.sfc7-card:hover { border-color: var(--sfc7-primary); }
.sfc7-card-title { font-size: 1.6rem; font-weight: 700; color: var(--sfc7-accent); margin-bottom: 0.8rem; }

/* Footer */
.sfc7-footer { background: var(--sfc7-bg-light); border-top: 2px solid var(--sfc7-primary); padding: 2rem 0 1rem; margin-top: 2rem; }
.sfc7-footer-text { color: var(--sfc7-text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; }
.sfc7-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.sfc7-footer-link {
  padding: 0.5rem 1rem; background: var(--sfc7-bg-card); border: 1px solid var(--sfc7-border);
  border-radius: var(--sfc7-radius); color: var(--sfc7-text); font-size: 1.2rem;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.sfc7-footer-link:hover { border-color: var(--sfc7-primary); color: var(--sfc7-accent); }
.sfc7-footer-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 1rem 0; }
.sfc7-footer-partners img { height: 24px; opacity: 0.7; filter: grayscale(0.3); }
.sfc7-copyright { text-align: center; color: var(--sfc7-text-muted); font-size: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--sfc7-border); }

/* Bottom Navigation */
.sfc7-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--sfc7-bg); border-top: 2px solid var(--sfc7-primary);
  height: 60px; justify-content: space-around; align-items: center; padding: 0 0.4rem;
}
@media (max-width: 768px) { .sfc7-bottom-nav { display: flex; } }
.sfc7-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 56px; background: none; border: none;
  color: var(--sfc7-text-muted); cursor: pointer; transition: all 0.2s ease;
  padding: 0.3rem; border-radius: var(--sfc7-radius);
}
.sfc7-bottom-btn:hover, .sfc7-bottom-btn:focus { color: var(--sfc7-accent); transform: scale(1.08); }
.sfc7-bottom-btn-active { color: var(--sfc7-primary-light); }
.sfc7-bottom-btn i, .sfc7-bottom-btn span.material-symbols-outlined, .sfc7-bottom-btn ion-icon, .sfc7-bottom-btn bi { font-size: 22px; margin-bottom: 2px; }
.sfc7-bottom-label { font-size: 1rem; line-height: 1.2; }

/* Testimonial */
.sfc7-testimonial {
  background: var(--sfc7-bg-card); border-left: 3px solid var(--sfc7-primary);
  border-radius: 0 var(--sfc7-radius) var(--sfc7-radius) 0; padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.sfc7-testimonial-name { font-weight: 700; color: var(--sfc7-accent); font-size: 1.3rem; }
.sfc7-testimonial-text { color: var(--sfc7-text); font-size: 1.3rem; margin-top: 0.4rem; line-height: 1.5; }

/* Winner Showcase */
.sfc7-winner { display: flex; align-items: center; gap: 1rem; padding: 0.8rem; background: var(--sfc7-bg-card); border-radius: var(--sfc7-radius); margin-bottom: 0.6rem; }
.sfc7-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sfc7-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}
.sfc7-winner-info { flex: 1; }
.sfc7-winner-name { color: var(--sfc7-accent); font-weight: 600; font-size: 1.2rem; }
.sfc7-winner-game { color: var(--sfc7-text-muted); font-size: 1.1rem; }
.sfc7-winner-amount { color: var(--sfc7-warning); font-weight: 700; font-size: 1.4rem; }

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

/* Content Section */
.sfc7-content-section { padding: 1.5rem 0; }
.sfc7-content-section h2 { font-size: 1.8rem; color: var(--sfc7-accent); margin-bottom: 1rem; font-weight: 700; }
.sfc7-content-section h3 { font-size: 1.5rem; color: var(--sfc7-accent); margin-bottom: 0.8rem; font-weight: 600; }
.sfc7-content-section p { margin-bottom: 0.8rem; line-height: 1.6; }
.sfc7-content-section ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.sfc7-content-section li { margin-bottom: 0.5rem; line-height: 1.5; }

/* FAQ */
.sfc7-faq-item { background: var(--sfc7-bg-card); border: 1px solid var(--sfc7-border); border-radius: var(--sfc7-radius); margin-bottom: 0.8rem; overflow: hidden; }
.sfc7-faq-q { padding: 1rem 1.2rem; font-weight: 600; color: var(--sfc7-accent); cursor: pointer; display: flex; align-items: center; gap: 0.6rem; }
.sfc7-faq-a { padding: 0 1.2rem 1rem; color: var(--sfc7-text); font-size: 1.3rem; line-height: 1.5; }

/* Inline Link */
.sfc7-inline-link { color: var(--sfc7-primary-light); text-decoration: underline; cursor: pointer; }
.sfc7-inline-link:hover { color: var(--sfc7-accent); }

/* Utilities */
.sfc7-text-center { text-align: center; }
.sfc7-mt-1 { margin-top: 0.8rem; }
.sfc7-mb-1 { margin-bottom: 0.8rem; }
.sfc7-hidden { display: none; }

/* Responsive Desktop */
@media (min-width: 769px) {
  .sfc7-bottom-nav { display: none; }
  .sfc7-container { padding: 0 2rem; }
}
