/**
 * 7game asia - Design Stylesheet
 * All classes prefixed with pg07- for namespace isolation
 * Color palette: #FF5722 | #2D2D2D | #FFEF94 | #FFAA00 | #FF6347
 * Mobile-first responsive design
 */

/* === CSS Variables === */
:root {
  --pg07-primary: #FF5722;
  --pg07-secondary: #FFAA00;
  --pg07-accent: #FF6347;
  --pg07-bg: #1A1A1A;
  --pg07-bg-light: #2D2D2D;
  --pg07-bg-card: #333333;
  --pg07-text: #FFFFFF;
  --pg07-text-muted: #CCCCCC;
  --pg07-text-highlight: #FFEF94;
  --pg07-border: #444444;
  --pg07-success: #4CAF50;
  --pg07-gradient: linear-gradient(135deg, #FF5722, #FFAA00);
  --pg07-radius: 12px;
  --pg07-radius-sm: 8px;
  --pg07-shadow: 0 4px 16px rgba(0,0,0,0.3);
  --pg07-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--pg07-font);
  background: var(--pg07-bg);
  color: var(--pg07-text);
  line-height: 1.6;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg07-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Layout === */
.pg07-container { width: 100%; padding: 0 1.2rem; margin: 0 auto; }
.pg07-wrapper { max-width: 430px; margin: 0 auto; position: relative; }
.pg07-grid { display: grid; gap: 1rem; }
.pg07-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg07-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pg07-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pg07-flex { display: flex; align-items: center; }
.pg07-flex-between { display: flex; align-items: center; justify-content: space-between; }
.pg07-flex-center { display: flex; align-items: center; justify-content: center; }
.pg07-flex-wrap { flex-wrap: wrap; }

/* === Header / Top Navigation === */
.pg07-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--pg07-bg-light);
  border-bottom: 2px solid var(--pg07-primary);
  max-width: 430px; margin: 0 auto;
  padding: 0.8rem 1rem;
}
.pg07-header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.pg07-logo { display: flex; align-items: center; gap: 0.6rem; }
.pg07-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg07-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--pg07-text); }
.pg07-logo-text span { color: var(--pg07-primary); }
.pg07-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg07-header-actions .pg07-btn { padding: 0.5rem 1rem; font-size: 1.2rem; }
.pg07-menu-toggle {
  background: none; border: none; color: var(--pg07-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* === Buttons === */
.pg07-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: var(--pg07-radius-sm);
  font-weight: 600; font-size: 1.3rem; cursor: pointer;
  border: none; transition: all 0.25s ease; min-height: 44px;
  text-decoration: none; gap: 0.4rem;
}
.pg07-btn-primary {
  background: var(--pg07-gradient); color: #fff;
  box-shadow: 0 2px 8px rgba(255,87,34,0.4);
}
.pg07-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,87,34,0.6); }
.pg07-btn-secondary {
  background: transparent; color: var(--pg07-secondary);
  border: 1.5px solid var(--pg07-secondary);
}
.pg07-btn-secondary:hover { background: rgba(255,170,0,0.1); }
.pg07-btn-accent {
  background: var(--pg07-accent); color: #fff;
}
.pg07-btn-accent:hover { background: #e5533a; }
.pg07-btn-sm { padding: 0.4rem 1rem; font-size: 1.1rem; min-height: 36px; }
.pg07-btn-lg { padding: 1rem 2rem; font-size: 1.5rem; }
.pg07-btn-block { width: 100%; }

/* === Mobile Menu === */
.pg07-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.pg07-overlay-active { opacity: 1; visibility: visible; }
.pg07-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px;
  height: 100vh; background: var(--pg07-bg-light);
  z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
  border-left: 2px solid var(--pg07-primary);
}
.pg07-menu-active { right: 0; }
.pg07-menu-close {
  background: none; border: none; color: var(--pg07-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem; min-width: 44px; min-height: 44px;
}
.pg07-menu-list { margin-top: 3rem; }
.pg07-menu-list a {
  display: block; padding: 1rem 0; font-size: 1.4rem;
  color: var(--pg07-text); border-bottom: 1px solid var(--pg07-border);
  transition: color 0.2s;
}
.pg07-menu-list a:hover { color: var(--pg07-primary); }

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

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

/* === Cards === */
.pg07-card {
  background: var(--pg07-bg-card); border-radius: var(--pg07-radius);
  padding: 1.2rem; transition: transform 0.2s;
  border: 1px solid var(--pg07-border);
}
.pg07-card:hover { transform: translateY(-2px); }
.pg07-card-title {
  font-size: 1.3rem; font-weight: 600; margin-bottom: 0.6rem;
  color: var(--pg07-text);
}

/* === Game Grid === */
.pg07-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin: 1rem 0;
}
.pg07-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s;
}
.pg07-game-item:hover { transform: scale(1.05); }
.pg07-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--pg07-radius-sm); margin-bottom: 0.3rem;
  border: 1px solid var(--pg07-border);
}
.pg07-game-item span {
  font-size: 1rem; color: var(--pg07-text-muted);
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; line-height: 1.3;
}
.pg07-cat-title {
  font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.8rem;
  color: var(--pg07-secondary);
  display: flex; align-items: center; gap: 0.5rem;
}

/* === Footer === */
.pg07-footer {
  background: var(--pg07-bg-light); padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--pg07-primary);
  margin-top: 2rem;
}
.pg07-footer-brand { font-size: 1.3rem; color: var(--pg07-text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.pg07-footer-btns {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.pg07-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem;
  padding: 1rem 0; border-top: 1px solid var(--pg07-border);
}
.pg07-footer-links a {
  font-size: 1.1rem; color: var(--pg07-text-muted);
}
.pg07-footer-links a:hover { color: var(--pg07-secondary); }
.pg07-footer-copy {
  font-size: 1rem; color: var(--pg07-text-muted);
  text-align: center; padding-top: 1rem;
  border-top: 1px solid var(--pg07-border);
}

/* === Bottom Mobile Navigation === */
.pg07-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--pg07-bg-light);
  border-top: 2px solid var(--pg07-primary);
  display: flex; justify-content: space-around;
  align-items: center; height: 60px;
  max-width: 430px; margin: 0 auto;
  transition: transform 0.3s ease;
}
.pg07-nav-hidden { transform: translateY(100%); }
.pg07-bottom-nav button {
  background: none; border: none; color: var(--pg07-text-muted);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  cursor: pointer; transition: all 0.2s; gap: 2px; padding: 0;
}
.pg07-bottom-nav button i,
.pg07-bottom-nav button .material-icons {
  font-size: 22px; transition: transform 0.2s;
}
.pg07-bottom-nav button span {
  font-size: 10px; line-height: 1.2;
}
.pg07-bottom-nav button:hover,
.pg07-bottom-nav button:focus {
  color: var(--pg07-primary);
}
.pg07-bottom-nav button:hover i,
.pg07-bottom-nav button:hover .material-icons {
  transform: scale(1.15);
}
.pg07-bottom-nav .pg07-nav-active {
  color: var(--pg07-primary);
}
.pg07-bottom-nav .pg07-nav-active i,
.pg07-bottom-nav .pg07-nav-active .material-icons {
  color: var(--pg07-secondary);
}

/* === Utilities === */
.pg07-text-center { text-align: center; }
.pg07-text-highlight { color: var(--pg07-text-highlight); font-weight: 600; }
.pg07-text-primary { color: var(--pg07-primary); }
.pg07-text-secondary { color: var(--pg07-secondary); }
.pg07-text-muted { color: var(--pg07-text-muted); }
.pg07-mb-1 { margin-bottom: 0.8rem; }
.pg07-mb-2 { margin-bottom: 1.6rem; }
.pg07-mt-1 { margin-top: 0.8rem; }
.pg07-mt-2 { margin-top: 1.6rem; }
.pg07-p-1 { padding: 0.8rem; }
.pg07-p-2 { padding: 1.6rem; }

/* === Info Modules === */
.pg07-info-box {
  background: var(--pg07-bg-card); border-radius: var(--pg07-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border-left: 3px solid var(--pg07-primary);
}
.pg07-info-box h3 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--pg07-text-highlight); }
.pg07-info-box p { font-size: 1.3rem; color: var(--pg07-text-muted); line-height: 1.6; }

.pg07-faq-item { margin-bottom: 1rem; }
.pg07-faq-item h4 {
  font-size: 1.3rem; color: var(--pg07-secondary);
  margin-bottom: 0.4rem; font-weight: 600;
}
.pg07-faq-item p { font-size: 1.2rem; color: var(--pg07-text-muted); line-height: 1.5; }

.pg07-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pg07-feature-card {
  background: var(--pg07-bg-card); border-radius: var(--pg07-radius-sm);
  padding: 1rem; text-align: center;
  border: 1px solid var(--pg07-border);
}
.pg07-feature-card i { font-size: 2rem; color: var(--pg07-primary); margin-bottom: 0.5rem; }
.pg07-feature-card h4 { font-size: 1.2rem; color: var(--pg07-text); margin-bottom: 0.3rem; }
.pg07-feature-card p { font-size: 1rem; color: var(--pg07-text-muted); }

.pg07-winner-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--pg07-border);
}
.pg07-winner-item img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}
.pg07-winner-info { flex: 1; }
.pg07-winner-info span { font-size: 1.1rem; color: var(--pg07-text-muted); }
.pg07-winner-info strong { font-size: 1.2rem; color: var(--pg07-secondary); }
.pg07-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--pg07-primary); }

.pg07-promo-link {
  color: var(--pg07-secondary); font-weight: 600;
  cursor: pointer; transition: color 0.2s;
}
.pg07-promo-link:hover { color: var(--pg07-primary); text-decoration: underline; }

/* === Responsive === */
@media (min-width: 769px) {
  .pg07-bottom-nav { display: none; }
  .pg07-header { max-width: 430px; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Main content top padding for fixed header */
main { padding-top: 60px; }
