/**
 * PH987 Gaming Platform - Theme Stylesheet
 * File: css/theme-065c.css
 * Prefix: g5c0- (all classes and CSS variables)
 * Color Palette: #FFD700 | #2C3E50 | #FFE135 | #E5E5E5
 */

/* CSS Variables */
:root {
  --g5c0-primary: #FFD700;
  --g5c0-secondary: #2C3E50;
  --g5c0-accent: #FFE135;
  --g5c0-light: #E5E5E5;
  --g5c0-dark: #1a1a2e;
  --g5c0-bg: #0f0f23;
  --g5c0-card: #1c1c3a;
  --g5c0-text: #f0f0f0;
  --g5c0-text-muted: #a0a0b8;
  --g5c0-border: #2a2a4a;
  --g5c0-success: #28a745;
  --g5c0-danger: #dc3545;
  --g5c0-gradient: linear-gradient(135deg, #FFD700 0%, #FFE135 100%);
  --g5c0-radius: 10px;
  --g5c0-radius-sm: 6px;
  --g5c0-shadow: 0 4px 15px rgba(0,0,0,0.3);
  --g5c0-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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g5c0-bg);
  color: var(--g5c0-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g5c0-primary); text-decoration: none; transition: var(--g5c0-transition); }
a:hover { color: var(--g5c0-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ===== HEADER ===== */
.g5c0-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g5c0-secondary);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--g5c0-primary);
  transition: var(--g5c0-transition);
  max-width: 430px; margin: 0 auto;
}
.g5c0-header-scrolled {
  background: rgba(44,62,80,0.96);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.g5c0-header-left {
  display: flex; align-items: center; gap: 0.6rem; flex: 1;
}
.g5c0-logo {
  width: 28px; height: 28px; border-radius: 4px;
  object-fit: contain;
}
.g5c0-site-name {
  font-size: 1.6rem; font-weight: 700; color: var(--g5c0-primary);
  letter-spacing: 0.5px;
}
.g5c0-header-right {
  display: flex; align-items: center; gap: 0.5rem;
}
.g5c0-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.2rem; border: none; border-radius: var(--g5c0-radius-sm);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--g5c0-transition); white-space: nowrap;
  min-height: 32px;
}
.g5c0-btn-register {
  background: var(--g5c0-primary); color: var(--g5c0-secondary);
}
.g5c0-btn-register:hover { background: var(--g5c0-accent); transform: scale(1.05); }
.g5c0-btn-login {
  background: transparent; color: var(--g5c0-primary);
  border: 1.5px solid var(--g5c0-primary);
}
.g5c0-btn-login:hover { background: var(--g5c0-primary); color: var(--g5c0-secondary); }
.g5c0-btn-promo {
  background: var(--g5c0-gradient); color: var(--g5c0-secondary);
  font-weight: 700; padding: 0.8rem 2rem; border-radius: var(--g5c0-radius);
  font-size: 1.4rem; display: block; text-align: center;
  box-shadow: 0 3px 12px rgba(255,215,0,0.4);
}
.g5c0-btn-promo:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(255,215,0,0.5); }

/* Menu Toggle */
.g5c0-menu-toggle {
  background: none; border: none; color: var(--g5c0-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.g5c0-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
  background: var(--g5c0-secondary); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.g5c0-menu-active { right: 0; }
.g5c0-menu-close {
  background: none; border: none; color: var(--g5c0-primary);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
.g5c0-menu-title {
  font-size: 1.6rem; color: var(--g5c0-primary); font-weight: 700;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--g5c0-border);
}
.g5c0-menu-link {
  display: block; padding: 0.8rem 0; color: var(--g5c0-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--g5c0-border);
  transition: var(--g5c0-transition);
}
.g5c0-menu-link:hover { color: var(--g5c0-primary); padding-left: 0.8rem; }
.g5c0-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease;
}
.g5c0-overlay-active { opacity: 1; pointer-events: all; }

/* ===== MAIN CONTENT ===== */
.g5c0-main {
  padding-top: 56px; min-height: 100vh;
}
@media (max-width: 768px) {
  .g5c0-main { padding-bottom: 76px; }
}

/* ===== CAROUSEL ===== */
.g5c0-carousel {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--g5c0-radius) var(--g5c0-radius);
  margin-bottom: 1.2rem;
}
.g5c0-slide {
  display: none; cursor: pointer;
  transition: opacity var(--g5c0-transition);
}
.g5c0-slide-active { display: block; }
.g5c0-slide img {
  width: 100%; height: 180px; object-fit: cover;
}
.g5c0-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.g5c0-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: var(--g5c0-transition);
}
.g5c0-dot-active { background: var(--g5c0-primary); width: 20px; border-radius: 4px; }

/* ===== SECTION ===== */
.g5c0-section {
  padding: 1.5rem 0;
}
.g5c0-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--g5c0-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g5c0-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.g5c0-section-title i { font-size: 2rem; }
.g5c0-section-desc {
  color: var(--g5c0-text-muted); font-size: 1.3rem;
  margin-bottom: 1.2rem; line-height: 1.6;
}

/* ===== GAME GRID ===== */
.g5c0-game-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--g5c0-accent);
  margin: 1.2rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--g5c0-primary);
  padding-left: 0.8rem;
}
.g5c0-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 0.5rem;
}
.g5c0-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--g5c0-transition);
  padding: 0.4rem; border-radius: var(--g5c0-radius-sm);
}
.g5c0-game-item:hover {
  background: var(--g5c0-card); transform: translateY(-2px);
}
.g5c0-game-item img {
  width: 64px; height: 64px; border-radius: 8px;
  object-fit: cover; margin-bottom: 0.3rem;
  border: 1px solid var(--g5c0-border);
}
.g5c0-game-item span {
  font-size: 1.1rem; color: var(--g5c0-text-muted);
  text-align: center; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  max-width: 80px;
}

/* ===== CARDS ===== */
.g5c0-card {
  background: var(--g5c0-card); border-radius: var(--g5c0-radius);
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid var(--g5c0-border);
}
.g5c0-card-title {
  font-size: 1.5rem; font-weight: 600; color: var(--g5c0-primary);
  margin-bottom: 0.6rem;
}
.g5c0-card p {
  color: var(--g5c0-text-muted); font-size: 1.3rem; line-height: 1.6;
}

/* ===== CONTENT TEXT ===== */
.g5c0-content-text {
  color: var(--g5c0-text-muted); font-size: 1.3rem;
  line-height: 1.8; margin-bottom: 1rem;
}
.g5c0-content-text strong { color: var(--g5c0-primary); }
.g5c0-content-text a { color: var(--g5c0-accent); text-decoration: underline; }
.g5c0-content-text a:hover { color: var(--g5c0-primary); }

/* ===== FEATURES LIST ===== */
.g5c0-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.8rem; margin: 1rem 0;
}
.g5c0-feature-item {
  background: var(--g5c0-card); padding: 1rem;
  border-radius: var(--g5c0-radius-sm);
  border: 1px solid var(--g5c0-border);
  text-align: center;
}
.g5c0-feature-item i {
  font-size: 2.4rem; color: var(--g5c0-primary); margin-bottom: 0.5rem;
  display: block;
}
.g5c0-feature-item h3 {
  font-size: 1.2rem; color: var(--g5c0-text); margin-bottom: 0.3rem;
}
.g5c0-feature-item p {
  font-size: 1.1rem; color: var(--g5c0-text-muted); line-height: 1.4;
}

/* ===== FAQ ===== */
.g5c0-faq-item {
  background: var(--g5c0-card); border-radius: var(--g5c0-radius-sm);
  margin-bottom: 0.6rem; padding: 1rem;
  border-left: 3px solid var(--g5c0-primary);
}
.g5c0-faq-item h3 {
  font-size: 1.3rem; color: var(--g5c0-primary); margin-bottom: 0.4rem;
}
.g5c0-faq-item p {
  font-size: 1.2rem; color: var(--g5c0-text-muted); line-height: 1.6;
}

/* ===== RTP BAR ===== */
.g5c0-rtp-item {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.g5c0-rtp-item span:first-child {
  width: 90px; font-size: 1.1rem; color: var(--g5c0-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g5c0-rtp-bar {
  flex: 1; height: 10px; background: var(--g5c0-border);
  border-radius: 5px; overflow: hidden;
}
.g5c0-rtp-fill {
  height: 100%; border-radius: 5px;
  background: var(--g5c0-gradient);
  transition: width 1s ease;
}
.g5c0-rtp-item span:last-child {
  width: 36px; font-size: 1.1rem; color: var(--g5c0-primary);
  font-weight: 600; text-align: right;
}

/* ===== WINNER LIST ===== */
.g5c0-winner-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.g5c0-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--g5c0-card); padding: 0.6rem 0.8rem;
  border-radius: var(--g5c0-radius-sm); font-size: 1.2rem;
}
.g5c0-winner-name { color: var(--g5c0-text-muted); }
.g5c0-winner-game { color: var(--g5c0-primary); font-weight: 600; }
.g5c0-winner-amount { color: var(--g5c0-accent); font-weight: 700; }

/* ===== TESTIMONIAL ===== */
.g5c0-testimonial {
  background: var(--g5c0-card); padding: 1rem;
  border-radius: var(--g5c0-radius-sm);
  border: 1px solid var(--g5c0-border);
  margin-bottom: 0.8rem;
}
.g5c0-testimonial-text {
  font-size: 1.2rem; color: var(--g5c0-text-muted);
  line-height: 1.6; font-style: italic; margin-bottom: 0.5rem;
}
.g5c0-testimonial-author {
  font-size: 1.1rem; color: var(--g5c0-primary); font-weight: 600;
}

/* ===== PAYMENT ===== */
.g5c0-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.g5c0-payment-item {
  background: var(--g5c0-card); padding: 0.8rem 1.2rem;
  border-radius: var(--g5c0-radius-sm);
  border: 1px solid var(--g5c0-border);
  font-size: 1.2rem; color: var(--g5c0-text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}

/* ===== FOOTER ===== */
.g5c0-footer {
  background: var(--g5c0-secondary); padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--g5c0-primary);
}
.g5c0-footer-brand {
  font-size: 1.3rem; color: var(--g5c0-text-muted);
  line-height: 1.6; margin-bottom: 1.2rem;
}
.g5c0-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.2rem; justify-content: center;
}
.g5c0-footer-link {
  background: var(--g5c0-primary); color: var(--g5c0-secondary);
  padding: 0.5rem 1rem; border-radius: var(--g5c0-radius-sm);
  font-size: 1.1rem; font-weight: 600; cursor: pointer;
  transition: var(--g5c0-transition);
}
.g5c0-footer-link:hover { background: var(--g5c0-accent); transform: scale(1.05); }
.g5c0-footer-sitelinks {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin-bottom: 1rem;
}
.g5c0-footer-sitelink {
  color: var(--g5c0-text-muted); font-size: 1.1rem;
  transition: var(--g5c0-transition);
}
.g5c0-footer-sitelink:hover { color: var(--g5c0-primary); }
.g5c0-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--g5c0-text-muted);
  padding-top: 1rem; border-top: 1px solid var(--g5c0-border);
}

/* ===== BOTTOM NAV ===== */
.g5c0-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g5c0-secondary);
  border-top: 2px solid var(--g5c0-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.g5c0-bnav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  cursor: pointer; transition: var(--g5c0-transition);
  background: none; border: none; color: var(--g5c0-text-muted);
  font-size: 1rem; gap: 2px; position: relative;
}
.g5c0-bnav-item i, .g5c0-bnav-item .material-icons {
  font-size: 22px; transition: var(--g5c0-transition);
}
.g5c0-bnav-item span { font-size: 1rem; }
.g5c0-bnav-item:hover, .g5c0-bnav-active {
  color: var(--g5c0-primary);
}
.g5c0-bnav-item:hover i, .g5c0-bnav-active i,
.g5c0-bnav-item:hover .material-icons, .g5c0-bnav-active .material-icons {
  transform: scale(1.15);
}
.g5c0-bnav-active::after {
  content: ''; position: absolute; top: -2px;
  left: 50%; transform: translateX(-50%);
  width: 30px; height: 2px; background: var(--g5c0-primary);
  border-radius: 0 0 2px 2px;
}
@media (min-width: 769px) {
  .g5c0-bottom-nav { display: none; }
  .g5c0-footer { padding-bottom: 2rem; }
  .g5c0-main { padding-bottom: 0; }
}

/* ===== UTILITY ===== */
.g5c0-text-center { text-align: center; }
.g5c0-mt-1 { margin-top: 0.8rem; }
.g5c0-mt-2 { margin-top: 1.6rem; }
.g5c0-mb-1 { margin-bottom: 0.8rem; }
.g5c0-mb-2 { margin-bottom: 1.6rem; }
.g5c0-hidden { display: none; }
.g5c0-divider {
  height: 1px; background: var(--g5c0-border);
  margin: 1.5rem 0;
}

/* ===== PROMO TEXT LINKS ===== */
.g5c0-promo-text {
  color: var(--g5c0-primary); font-weight: 600;
  text-decoration: underline; cursor: pointer;
  transition: var(--g5c0-transition);
}
.g5c0-promo-text:hover { color: var(--g5c0-accent); }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 430px) {
  .g5c0-container { padding: 0 1rem; }
  .g5c0-game-grid { gap: 0.6rem; }
  .g5c0-game-item img { width: 56px; height: 56px; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .g5c0-container { padding: 0 1.5rem; }
}
