/**
 * ph365 org - Main Stylesheet
 * All classes use g712- prefix for namespace isolation
 * Color palette: #95A5A6 | #3A3A3A | #6C757D | #5D5D5D
 * Mobile-first design, max-width 430px viewport
 */

/* CSS Variables */
:root {
  --g712-primary: #95A5A6;
  --g712-dark: #3A3A3A;
  --g712-mid: #6C757D;
  --g712-muted: #5D5D5D;
  --g712-bg: #1a1a1a;
  --g712-bg-light: #2a2a2a;
  --g712-bg-card: #333333;
  --g712-text: #e8e8e8;
  --g712-text-muted: #95A5A6;
  --g712-accent: #c8a96e;
  --g712-accent-hover: #dabb7e;
  --g712-success: #4caf50;
  --g712-warning: #ff9800;
  --g712-border: #444444;
  --g712-radius: 8px;
  --g712-radius-lg: 12px;
  --g712-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --g712-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--g712-font);
  background: var(--g712-bg);
  color: var(--g712-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 60px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g712-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g712-accent-hover); }

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

/* Header */
.g712-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g712-dark), var(--g712-muted));
  border-bottom: 2px solid var(--g712-accent);
  height: 60px;
}
.g712-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}
.g712-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g712-logo img { width: 32px; height: 32px; border-radius: 6px; }
.g712-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g712-accent);
  letter-spacing: 0.5px;
}
.g712-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g712-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--g712-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-height: 36px;
  text-align: center;
}
.g712-btn-register {
  background: var(--g712-accent);
  color: var(--g712-dark);
}
.g712-btn-register:hover {
  background: var(--g712-accent-hover);
  transform: scale(1.04);
}
.g712-btn-login {
  background: transparent;
  color: var(--g712-accent);
  border: 1.5px solid var(--g712-accent);
}
.g712-btn-login:hover {
  background: rgba(200,169,110,0.1);
}
.g712-menu-toggle {
  background: none;
  border: none;
  color: var(--g712-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.g712-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;
}
.g712-overlay-active { opacity: 1; visibility: visible; }
.g712-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--g712-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.4rem;
  overflow-y: auto;
}
.g712-menu-active { right: 0; }
.g712-mobile-menu .g712-menu-close {
  background: none;
  border: none;
  color: var(--g712-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1.2rem;
}
.g712-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--g712-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g712-border);
  transition: color 0.2s;
}
.g712-mobile-menu a:hover { color: var(--g712-accent); }

/* Carousel */
.g712-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g712-radius-lg);
  margin: 1rem 0;
}
.g712-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.g712-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}
.g712-carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.g712-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}
.g712-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--g712-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.g712-dot-active {
  background: var(--g712-accent);
  transform: scale(1.3);
}

/* Section Headings */
.g712-section {
  padding: 1.6rem 0;
}
.g712-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g712-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g712-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g712-section-title i { font-size: 2rem; }

/* Game Grid */
.g712-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.g712-game-card {
  background: var(--g712-bg-card);
  border-radius: var(--g712-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--g712-border);
}
.g712-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--g712-shadow);
}
.g712-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.g712-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--g712-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g712-game-card:hover .g712-game-name { color: var(--g712-accent); }

/* Content Card */
.g712-card {
  background: var(--g712-bg-card);
  border-radius: var(--g712-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g712-border);
}
.g712-card h3 {
  font-size: 1.5rem;
  color: var(--g712-accent);
  margin-bottom: 0.8rem;
}
.g712-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--g712-text-muted);
  margin-bottom: 0.6rem;
}

/* Promo Button Large */
.g712-btn-promo {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--g712-accent), #b8943e);
  color: var(--g712-dark);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--g712-radius-lg);
  cursor: pointer;
  transition: all 0.25s;
  margin: 1rem 0;
}
.g712-btn-promo:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(200,169,110,0.4);
}

/* Promo Text Link */
.g712-promo-link {
  color: var(--g712-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.g712-promo-link:hover { color: var(--g712-accent-hover); text-decoration: underline; }

/* Bottom Navigation */
.g712-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g712-dark), #222);
  border-top: 1.5px solid var(--g712-accent);
  height: 62px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}
.g712-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g712-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}
.g712-bottom-nav-btn i,
.g712-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.g712-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.1;
}
.g712-bottom-nav-btn:hover,
.g712-btn-active {
  color: var(--g712-accent);
  transform: scale(1.08);
}
.g712-btn-active {
  background: rgba(200,169,110,0.1);
}

/* Footer */
.g712-footer {
  background: var(--g712-bg-light);
  border-top: 2px solid var(--g712-accent);
  padding: 2rem 0 2rem;
  margin-top: 2rem;
}
.g712-footer-desc {
  font-size: 1.2rem;
  color: var(--g712-text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}
.g712-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.g712-footer-links a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: var(--g712-bg-card);
  color: var(--g712-text);
  border-radius: var(--g712-radius);
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid var(--g712-border);
}
.g712-footer-links a:hover {
  background: var(--g712-accent);
  color: var(--g712-dark);
}
.g712-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g712-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--g712-border);
}

/* Stats bar */
.g712-stats {
  display: flex;
  justify-content: space-around;
  background: var(--g712-bg-card);
  border-radius: var(--g712-radius);
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--g712-border);
}
.g712-stat-item { text-align: center; }
.g712-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g712-accent);
}
.g712-stat-label {
  font-size: 1rem;
  color: var(--g712-text-muted);
}

/* Testimonial */
.g712-testimonial {
  background: var(--g712-bg-card);
  border-radius: var(--g712-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g712-accent);
}
.g712-testimonial-name {
  font-weight: 600;
  color: var(--g712-accent);
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.g712-testimonial-text {
  font-size: 1.2rem;
  color: var(--g712-text-muted);
  line-height: 1.5;
}

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

/* Winner showcase */
.g712-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g712-border);
}
.g712-winner-game { font-weight: 600; color: var(--g712-accent); font-size: 1.2rem; }
.g712-winner-amount { color: var(--g712-success); font-weight: 700; font-size: 1.3rem; }

/* FAQ */
.g712-faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--g712-bg-card);
  border-radius: var(--g712-radius);
  border: 1px solid var(--g712-border);
}
.g712-faq-q {
  font-weight: 600;
  color: var(--g712-accent);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.g712-faq-a {
  font-size: 1.2rem;
  color: var(--g712-text-muted);
  line-height: 1.5;
}

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

/* Mobile bottom padding */
@media (max-width: 768px) {
  .g712-main-content { padding-bottom: 80px; }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g712-bottom-nav { display: none; }
  .g712-container { max-width: 430px; }
}
