/* ============================================
   456bed Core Stylesheet - Mobile-first Gaming Site
   Class prefix: pg5f-
   Color palette: #FA8072 | #FFB347 | #2C2C2C | #FFB74D | #FF7F50 | #E5E5E5
   ============================================ */

/* CSS Variables */
:root {
  --pg5f-primary: #FA8072;
  --pg5f-secondary: #FFB347;
  --pg5f-bg: #2C2C2C;
  --pg5f-accent: #FFB74D;
  --pg5f-highlight: #FF7F50;
  --pg5f-text-light: #E5E5E5;
  --pg5f-dark: #1A1A1A;
  --pg5f-card-bg: #333333;
  --pg5f-border: #444444;
  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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg5f-dark);
  color: var(--pg5f-text-light);
  font-size: 1.4rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--pg5f-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.pg5f-container { width: 100%; padding: 0 1rem; }
.pg5f-wrapper { max-width: 430px; margin: 0 auto; }
.pg5f-grid { display: grid; gap: 0.8rem; }

/* =================== HEADER =================== */
.pg5f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pg5f-bg) 0%, #3a3a3a 100%);
  border-bottom: 2px solid var(--pg5f-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; height: 5rem;
}
.pg5f-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.pg5f-logo-area img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.pg5f-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--pg5f-primary); }
.pg5f-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.pg5f-btn-register {
  background: var(--pg5f-primary); color: #fff;
  border: none; border-radius: 2rem; padding: 0.5rem 1.2rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  min-height: 3.4rem;
}
.pg5f-btn-register:hover { background: #e06b5e; transform: scale(1.05); }
.pg5f-btn-login {
  background: transparent; color: var(--pg5f-secondary);
  border: 1.5px solid var(--pg5f-secondary); border-radius: 2rem;
  padding: 0.5rem 1.2rem; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; min-height: 3.4rem;
}
.pg5f-btn-login:hover { background: var(--pg5f-secondary); color: var(--pg5f-bg); }
.pg5f-menu-toggle {
  background: none; border: none; color: var(--pg5f-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.5rem;
  display: flex; align-items: center;
}

/* =================== MOBILE MENU =================== */
.pg5f-mobile-menu {
  display: none; position: fixed; top: 5rem; left: 0; right: 0;
  z-index: 9999; background: var(--pg5f-bg);
  border-bottom: 2px solid var(--pg5f-primary);
  max-width: 430px; margin: 0 auto;
  padding: 1rem 0;
}
.pg5f-menu-active { display: block !important; }
.pg5f-mobile-menu a {
  display: block; padding: 1rem 1.5rem;
  color: var(--pg5f-text-light); font-size: 1.4rem;
  border-bottom: 1px solid var(--pg5f-border);
  transition: background 0.2s;
}
.pg5f-mobile-menu a:hover { background: var(--pg5f-card-bg); color: var(--pg5f-primary); }

/* =================== CAROUSEL =================== */
.pg5f-carousel { position: relative; overflow: hidden; margin-top: 5rem; }
.pg5f-slide {
  display: none; width: 100%; cursor: pointer;
  transition: opacity 0.5s;
}
.pg5f-slide-active { display: block; }
.pg5f-slide img { width: 100%; height: auto; min-height: 16rem; object-fit: cover; border-radius: 0 0 0.8rem 0.8rem; }

/* =================== MAIN CONTENT =================== */
main { padding-top: 1rem; }
.pg5f-section {
  padding: 1.5rem 1rem; border-bottom: 1px solid var(--pg5f-border);
}
.pg5f-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg5f-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg5f-highlight);
}

/* =================== GAME GRID =================== */
.pg5f-game-section { padding: 1rem; }
.pg5f-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--pg5f-accent);
  margin: 1.2rem 0 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--pg5f-primary);
}
.pg5f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.pg5f-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; border-radius: 0.6rem; overflow: hidden;
  transition: transform 0.2s; background: var(--pg5f-card-bg);
  padding: 0.4rem;
}
.pg5f-game-item:hover { transform: scale(1.05); }
.pg5f-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 0.4rem; margin-bottom: 0.3rem;
}
.pg5f-game-item span {
  font-size: 1rem; color: var(--pg5f-text-light); text-align: center;
  line-height: 1.2; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; width: 100%;
}

/* =================== CONTENT CARDS =================== */
.pg5f-card {
  background: var(--pg5f-card-bg); border-radius: 0.8rem;
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid var(--pg5f-border);
}
.pg5f-card-title {
  font-size: 1.5rem; font-weight: 600; color: var(--pg5f-secondary);
  margin-bottom: 0.8rem;
}
.pg5f-card p { font-size: 1.3rem; line-height: 1.8rem; color: var(--pg5f-text-light); margin-bottom: 0.6rem; }
.pg5f-card ul { padding-left: 1.5rem; }
.pg5f-card li { font-size: 1.3rem; line-height: 1.8rem; color: var(--pg5f-text-light); margin-bottom: 0.4rem; }

/* =================== PROMO BUTTONS =================== */
.pg5f-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--pg5f-primary) 0%, var(--pg5f-highlight) 100%);
  color: #fff; font-weight: 700; font-size: 1.3rem;
  padding: 0.8rem 1.6rem; border-radius: 2rem;
  cursor: pointer; border: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 4rem;
}
.pg5f-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(250,128,114,0.4);
}
.pg5f-promo-link {
  color: var(--pg5f-primary); font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* =================== FAQ =================== */
.pg5f-faq-item {
  background: var(--pg5f-card-bg); border-radius: 0.6rem;
  padding: 1rem; margin-bottom: 0.6rem;
  border-left: 3px solid var(--pg5f-accent);
}
.pg5f-faq-q { font-weight: 600; color: var(--pg5f-secondary); font-size: 1.3rem; margin-bottom: 0.4rem; }
.pg5f-faq-a { color: var(--pg5f-text-light); font-size: 1.2rem; line-height: 1.6rem; }

/* =================== WINNER SHOWCASE =================== */
.pg5f-winner-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--pg5f-border);
}
.pg5f-winner-row:last-child { border-bottom: none; }
.pg5f-winner-avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--pg5f-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; font-weight: 700; }
.pg5f-winner-info { flex: 1; }
.pg5f-winner-name { font-size: 1.2rem; color: var(--pg5f-text-light); }
.pg5f-winner-game { font-size: 1rem; color: #999; }
.pg5f-winner-amount { font-size: 1.3rem; color: var(--pg5f-accent); font-weight: 700; }

/* =================== TESTIMONIALS =================== */
.pg5f-testimonial {
  background: var(--pg5f-card-bg); border-radius: 0.8rem;
  padding: 1rem; margin-bottom: 0.8rem;
  border: 1px solid var(--pg5f-border);
}
.pg5f-testimonial-text { font-size: 1.2rem; line-height: 1.6rem; color: var(--pg5f-text-light); font-style: italic; margin-bottom: 0.5rem; }
.pg5f-testimonial-author { font-size: 1.1rem; color: var(--pg5f-accent); font-weight: 600; }
.pg5f-testimonial-stars { color: var(--pg5f-secondary); font-size: 1.2rem; }

/* =================== PAYMENT =================== */
.pg5f-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.pg5f-payment-item {
  background: var(--pg5f-card-bg); border-radius: 0.6rem;
  padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--pg5f-text-light);
  border: 1px solid var(--pg5f-border);
}

/* =================== FOOTER =================== */
.pg5f-footer {
  background: var(--pg5f-bg); padding: 1.5rem 1rem 2rem;
  border-top: 2px solid var(--pg5f-primary);
}
.pg5f-footer-brand { font-size: 1.2rem; color: #999; line-height: 1.6rem; margin-bottom: 1rem; }
.pg5f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.pg5f-footer-links a {
  background: var(--pg5f-card-bg); color: var(--pg5f-text-light);
  padding: 0.4rem 0.8rem; border-radius: 0.4rem;
  font-size: 1.1rem; transition: background 0.2s;
}
.pg5f-footer-links a:hover { background: var(--pg5f-primary); color: #fff; }
.pg5f-footer-copy { font-size: 1rem; color: #666; text-align: center; margin-top: 0.8rem; }

/* =================== BOTTOM NAV =================== */
.pg5f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 2px solid var(--pg5f-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around;
  height: 60px; padding: 0.3rem 0;
}
.pg5f-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: #888; cursor: pointer; min-width: 60px; min-height: 56px;
  transition: color 0.2s, transform 0.2s; padding: 0.2rem;
}
.pg5f-bottom-btn:hover, .pg5f-bottom-btn:focus { color: var(--pg5f-primary); transform: scale(1.1); }
.pg5f-bottom-btn .pg5f-nav-icon { font-size: 2.2rem; margin-bottom: 0.1rem; }
.pg5f-bottom-btn .pg5f-nav-label { font-size: 0.9rem; line-height: 1.2; }
.pg5f-bottom-btn.pg5f-active { color: var(--pg5f-primary); }
.pg5f-bottom-btn.pg5f-active .pg5f-nav-label { font-weight: 700; }

/* =================== RESPONSIVE =================== */
@media (min-width: 769px) {
  .pg5f-bottom-nav { display: none; }
  .pg5f-header { max-width: 430px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 75px; }
  .pg5f-footer { padding-bottom: 80px; }
}

/* =================== UTILITIES =================== */
.pg5f-text-center { text-align: center; }
.pg5f-mt-1 { margin-top: 0.5rem; }
.pg5f-mt-2 { margin-top: 1rem; }
.pg5f-mb-1 { margin-bottom: 0.5rem; }
.pg5f-mb-2 { margin-bottom: 1rem; }
.pg5f-hidden { display: none; }
.pg5f-text-primary { color: var(--pg5f-primary); }
.pg5f-text-accent { color: var(--pg5f-accent); }
.pg5f-text-highlight { color: var(--pg5f-highlight); }
.pg5f-bg-card { background: var(--pg5f-card-bg); }
