/**
 * Hanna PH - Layout Stylesheet
 * All classes use gf64- prefix for namespace isolation
 * Color palette: #FF4500 | #B22222 | #4682B4 | #87CEFA | #2E4057
 */

/* CSS Variables */
:root {
  --gf64-primary: #FF4500;
  --gf64-secondary: #B22222;
  --gf64-accent: #4682B4;
  --gf64-light: #87CEFA;
  --gf64-dark: #2E4057;
  --gf64-bg: #1a1a2e;
  --gf64-card-bg: #16213e;
  --gf64-card-border: #0f3460;
  --gf64-text: #e0e0e0;
  --gf64-text-light: #87CEFA;
  --gf64-gold: #ffd700;
  --gf64-radius: 10px;
  --gf64-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gf64-bg);
  color: var(--gf64-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

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

/* Header */
.gf64-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--gf64-dark) 0%, #0f1b2d 100%);
  border-bottom: 2px solid var(--gf64-primary);
  max-width: 430px; margin: 0 auto;
}
.gf64-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.2rem;
}
.gf64-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--gf64-text);
}
.gf64-logo img { width: 2.8rem; height: 2.8rem; border-radius: 50%; }
.gf64-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--gf64-primary); }
.gf64-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.gf64-btn-register {
  background: var(--gf64-primary); color: #fff; border: none;
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.gf64-btn-register:hover { background: #e03e00; transform: scale(1.05); }
.gf64-btn-login {
  background: transparent; color: var(--gf64-light); border: 1.5px solid var(--gf64-accent);
  padding: 0.55rem 1.2rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.gf64-btn-login:hover { background: var(--gf64-accent); color: #fff; }
.gf64-menu-toggle {
  background: none; border: none; color: var(--gf64-text); font-size: 2.2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.gf64-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: linear-gradient(180deg, var(--gf64-dark) 0%, #0d1520 100%);
  z-index: 9999; transition: right 0.35s ease;
  padding: 6rem 0 2rem; overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
.gf64-menu-active { right: 0 !important; }
.gf64-menu-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--gf64-text);
  font-size: 2.4rem; cursor: pointer;
}
.gf64-menu-nav { list-style: none; padding: 0; }
.gf64-menu-nav li a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 2rem; color: var(--gf64-text); text-decoration: none;
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.gf64-menu-nav li a:hover { background: rgba(255,69,0,0.15); color: var(--gf64-primary); }
.gf64-menu-nav li a i { font-size: 1.8rem; width: 2.4rem; text-align: center; }
.gf64-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.gf64-overlay-active { display: block; opacity: 1; }

/* Bottom Navigation */
.gf64-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1e2d4a 0%, var(--gf64-dark) 100%);
  border-top: 1.5px solid var(--gf64-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.gf64-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.25s; position: relative;
  text-decoration: none;
}
.gf64-bottom-btn i, .gf64-bottom-btn span.material-symbols-outlined {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: all 0.25s;
}
.gf64-bottom-btn ion-icon { font-size: 2.4rem; margin-bottom: 0.2rem; }
.gf64-bottom-btn span.gf64-btn-label {
  font-size: 1rem; line-height: 1; font-weight: 500;
}
.gf64-bottom-btn:hover, .gf64-bottom-active {
  color: var(--gf64-primary) !important;
}
.gf64-bottom-active::after {
  content: ''; position: absolute; top: -1.5px;
  left: 25%; right: 25%; height: 2.5px;
  background: var(--gf64-primary); border-radius: 0 0 3px 3px;
}
.gf64-bottom-btn:hover i { transform: scale(1.15); }

/* Main Content */
.gf64-main { padding-top: 5.6rem; }

/* Carousel */
.gf64-carousel { position: relative; overflow: hidden; border-radius: 0 0 var(--gf64-radius) var(--gf64-radius); }
.gf64-carousel-slide {
  display: none; width: 100%; cursor: pointer;
  transition: opacity 0.5s ease;
}
.gf64-slide-active { display: block; }
.gf64-carousel-slide img { width: 100%; height: auto; display: block; }
.gf64-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.8rem;
}
.gf64-carousel-dot {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  border: none; transition: all 0.3s;
}
.gf64-dot-active { background: var(--gf64-primary); transform: scale(1.3); }

/* Section */
.gf64-section { padding: 2rem 1.2rem; }
.gf64-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--gf64-primary); border-left: 4px solid var(--gf64-accent);
  padding-left: 1rem;
}
.gf64-section-subtitle {
  font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.8rem;
  color: var(--gf64-light);
}

/* Game Grid */
.gf64-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gf64-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  text-decoration: none;
}
.gf64-game-item:hover { transform: translateY(-3px); }
.gf64-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--gf64-radius);
  border: 1.5px solid var(--gf64-card-border);
  transition: border-color 0.2s;
}
.gf64-game-item:hover img { border-color: var(--gf64-primary); }
.gf64-game-item p {
  font-size: 1.1rem; color: var(--gf64-text); margin-top: 0.4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.gf64-card {
  background: var(--gf64-card-bg); border-radius: var(--gf64-radius);
  border: 1px solid var(--gf64-card-border); padding: 1.5rem;
  margin-bottom: 1.2rem; box-shadow: var(--gf64-shadow);
}
.gf64-card-title {
  font-size: 1.5rem; font-weight: 700; color: var(--gf64-light);
  margin-bottom: 0.8rem;
}

/* Buttons */
.gf64-btn {
  display: inline-block; padding: 1rem 2.5rem; border-radius: 2.5rem;
  font-size: 1.4rem; font-weight: 700; text-align: center;
  cursor: pointer; transition: all 0.3s; border: none;
  text-decoration: none;
}
.gf64-btn-primary {
  background: linear-gradient(135deg, var(--gf64-primary) 0%, var(--gf64-secondary) 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(255,69,0,0.4);
}
.gf64-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,69,0,0.5); }
.gf64-btn-accent {
  background: linear-gradient(135deg, var(--gf64-accent) 0%, #2c5f8a 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(70,130,180,0.4);
}
.gf64-btn-accent:hover { transform: translateY(-2px); }

/* Footer */
.gf64-footer {
  background: linear-gradient(180deg, var(--gf64-dark) 0%, #0a0f1a 100%);
  padding: 2rem 1.2rem 8rem; border-top: 1px solid var(--gf64-card-border);
}
.gf64-footer-brand { font-size: 1.3rem; color: rgba(255,255,255,0.7); line-height: 1.8rem; margin-bottom: 1.5rem; }
.gf64-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.gf64-footer-link {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 1.5rem;
  background: rgba(255,69,0,0.15); color: var(--gf64-primary);
  font-size: 1.2rem; text-decoration: none; transition: all 0.2s;
  border: 1px solid rgba(255,69,0,0.3);
}
.gf64-footer-link:hover { background: rgba(255,69,0,0.3); }
.gf64-footer-copy { font-size: 1.1rem; color: rgba(255,255,255,0.4); text-align: center; }

/* Utility */
.gf64-text-center { text-align: center; }
.gf64-text-primary { color: var(--gf64-primary); }
.gf64-text-accent { color: var(--gf64-accent); }
.gf64-text-gold { color: var(--gf64-gold); }
.gf64-mt-1 { margin-top: 1rem; }
.gf64-mt-2 { margin-top: 2rem; }
.gf64-mb-1 { margin-bottom: 1rem; }
.gf64-mb-2 { margin-bottom: 2rem; }
.gf64-py-2 { padding: 2rem 0; }

/* Featured Banner */
.gf64-featured-banner {
  background: linear-gradient(135deg, var(--gf64-secondary) 0%, var(--gf64-dark) 50%, var(--gf64-accent) 100%);
  padding: 2rem 1.5rem; border-radius: var(--gf64-radius);
  margin: 1.5rem 0; position: relative; overflow: hidden;
}
.gf64-featured-banner::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.gf64-featured-title { font-size: 1.8rem; font-weight: 700; color: var(--gf64-gold); margin-bottom: 0.5rem; }
.gf64-featured-text { font-size: 1.3rem; color: var(--gf64-text); margin-bottom: 1rem; }

/* Winner Marquee */
.gf64-winner-strip {
  background: rgba(255,69,0,0.1); border: 1px solid rgba(255,69,0,0.2);
  border-radius: var(--gf64-radius); padding: 0.8rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
  margin: 1rem 0; overflow: hidden;
}
.gf64-winner-badge {
  background: var(--gf64-primary); color: #fff; font-size: 1rem;
  padding: 0.3rem 0.8rem; border-radius: 1rem; font-weight: 700;
  white-space: nowrap;
}
.gf64-winner-text { font-size: 1.2rem; color: var(--gf64-text); white-space: nowrap; }

/* Payment Methods */
.gf64-payment-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; padding: 1rem 0;
}
.gf64-payment-item {
  background: var(--gf64-card-bg); border: 1px solid var(--gf64-card-border);
  border-radius: var(--gf64-radius); padding: 0.8rem 1.2rem;
  font-size: 1.2rem; color: var(--gf64-light);
  display: flex; align-items: center; gap: 0.5rem;
}

/* Testimonials */
.gf64-testimonial {
  background: var(--gf64-card-bg); border-radius: var(--gf64-radius);
  border-left: 3px solid var(--gf64-primary); padding: 1.2rem;
  margin-bottom: 1rem;
}
.gf64-testimonial-author { font-size: 1.2rem; color: var(--gf64-primary); font-weight: 600; }
.gf64-testimonial-text { font-size: 1.3rem; color: var(--gf64-text); margin-top: 0.5rem; }

/* CTA Section */
.gf64-cta {
  background: linear-gradient(135deg, var(--gf64-primary) 0%, var(--gf64-secondary) 100%);
  border-radius: var(--gf64-radius); padding: 2rem 1.5rem;
  text-align: center; margin: 2rem 0;
}
.gf64-cta-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.gf64-cta-text { font-size: 1.3rem; color: rgba(255,255,255,0.9); margin-bottom: 1.2rem; }

/* FAQ */
.gf64-faq-item { margin-bottom: 1rem; }
.gf64-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--gf64-light);
  padding: 0.8rem 0; border-bottom: 1px solid var(--gf64-card-border);
}
.gf64-faq-a { font-size: 1.3rem; color: var(--gf64-text); padding: 0.5rem 0 0.8rem; line-height: 1.7rem; }

/* Responsive - Desktop */
@media (min-width: 769px) {
  .gf64-bottom-nav { display: none; }
  .gf64-main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .gf64-main { padding-bottom: 75px; }
  body { max-width: 430px; }
}
