/**
 * JL43 Layout Stylesheet
 * Website: jl43.sbs
 * Prefix: pg8f-
 * All class names use pg8f- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --pg8f-primary: #26A69A;
  --pg8f-bg-dark: #2C2C2C;
  --pg8f-accent: #20B2AA;
  --pg8f-green: #3CB371;
  --pg8f-dark: #004D40;
  --pg8f-text-light: #E0E0E0;
  --pg8f-text-muted: #9E9E9E;
  --pg8f-card-bg: #363636;
  --pg8f-border: #444;
  --pg8f-hover: #2BBBAD;
  --pg8f-gold: #FFD700;
  --pg8f-red: #EF5350;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg8f-bg-dark);
  color: var(--pg8f-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pg8f-primary);
  text-decoration: none;
}

a:hover {
  color: var(--pg8f-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
.pg8f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg8f-dark) 0%, #00695C 100%);
  border-bottom: 2px solid var(--pg8f-primary);
  max-width: 430px;
  margin: 0 auto;
}

.pg8f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 5.4rem;
}

.pg8f-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg8f-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}

.pg8f-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg8f-primary);
  letter-spacing: 0.05rem;
}

.pg8f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg8f-btn-register {
  background: var(--pg8f-primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg8f-btn-register:hover {
  background: var(--pg8f-hover);
  transform: scale(1.05);
}

.pg8f-btn-login {
  background: transparent;
  color: var(--pg8f-primary);
  border: 1.5px solid var(--pg8f-primary);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg8f-btn-login:hover {
  background: rgba(38, 166, 154, 0.15);
}

.pg8f-menu-toggle {
  background: none;
  border: none;
  color: var(--pg8f-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.pg8f-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;
}

.pg8f-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.pg8f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg8f-bg-dark);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.35s ease;
  border-left: 2px solid var(--pg8f-primary);
}

.pg8f-menu-active {
  right: 0;
}

.pg8f-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--pg8f-border);
  background: var(--pg8f-dark);
}

.pg8f-menu-close {
  background: none;
  border: none;
  color: var(--pg8f-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.pg8f-menu-section {
  padding: 1rem 1.6rem;
}

.pg8f-menu-section-title {
  font-size: 1.1rem;
  color: var(--pg8f-primary);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.pg8f-menu-link {
  display: block;
  padding: 0.7rem 0;
  color: var(--pg8f-text-light);
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(68, 68, 68, 0.5);
  transition: color 0.2s;
}

.pg8f-menu-link:hover {
  color: var(--pg8f-primary);
}

/* Main Content */
.pg8f-main {
  padding-top: 5.4rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .pg8f-main {
    padding-bottom: 7.5rem;
  }
}

/* Slider */
.pg8f-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
  margin: 1rem 0;
}

.pg8f-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg8f-slide-active {
  display: block;
}

.pg8f-slide img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
}

.pg8f-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.pg8f-slider-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--pg8f-border);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.pg8f-dot-active {
  background: var(--pg8f-primary);
}

/* Section titles */
.pg8f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg8f-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg8f-dark);
}

.pg8f-section-subtitle {
  font-size: 1.4rem;
  color: var(--pg8f-text-muted);
  margin-bottom: 1rem;
}

/* Game Grid */
.pg8f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg8f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.pg8f-game-item:hover {
  transform: scale(1.05);
}

.pg8f-game-item img {
  width: 7rem;
  height: 7rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 2px solid var(--pg8f-border);
  transition: border-color 0.3s;
}

.pg8f-game-item:hover img {
  border-color: var(--pg8f-primary);
}

.pg8f-game-name {
  font-size: 1rem;
  color: var(--pg8f-text-light);
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7.5rem;
}

/* Category header */
.pg8f-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0.8rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, var(--pg8f-dark) 0%, transparent 100%);
  border-left: 3px solid var(--pg8f-primary);
  border-radius: 0 0.5rem 0.5rem 0;
}

.pg8f-category-icon {
  font-size: 1.8rem;
  color: var(--pg8f-primary);
}

.pg8f-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg8f-text-light);
}

/* Cards */
.pg8f-card {
  background: var(--pg8f-card-bg);
  border-radius: 0.8rem;
  padding: 1.4rem;
  margin: 1rem 0;
  border: 1px solid var(--pg8f-border);
}

.pg8f-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg8f-primary);
  margin-bottom: 0.8rem;
}

/* Promo elements */
.pg8f-promo-text {
  color: var(--pg8f-gold);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s;
}

.pg8f-promo-text:hover {
  color: #FFC107;
}

.pg8f-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg8f-primary), var(--pg8f-accent));
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pg8f-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(38, 166, 154, 0.4);
}

/* Bottom Navigation */
.pg8f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a3a36 0%, var(--pg8f-dark) 100%);
  border-top: 2px solid var(--pg8f-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .pg8f-bottom-nav {
    display: none;
  }
}

.pg8f-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--pg8f-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.4rem;
  border-radius: 0.8rem;
  position: relative;
}

.pg8f-bottom-nav-btn:hover {
  color: var(--pg8f-primary);
  background: rgba(38, 166, 154, 0.1);
}

.pg8f-bottom-nav-btn.pg8f-nav-active {
  color: var(--pg8f-primary);
}

.pg8f-bottom-nav-btn.pg8f-nav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--pg8f-primary);
  border-radius: 1px;
}

.pg8f-bottom-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg8f-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.pg8f-footer {
  background: var(--pg8f-dark);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg8f-primary);
}

.pg8f-footer-brand {
  font-size: 1.2rem;
  color: var(--pg8f-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.pg8f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg8f-footer-link {
  color: var(--pg8f-primary);
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(38, 166, 154, 0.1);
  border-radius: 0.4rem;
  transition: background 0.2s;
}

.pg8f-footer-link:hover {
  background: rgba(38, 166, 154, 0.2);
}

.pg8f-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg8f-footer-promo-btn {
  background: var(--pg8f-primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.pg8f-footer-promo-btn:hover {
  background: var(--pg8f-hover);
}

.pg8f-footer-copyright {
  font-size: 1rem;
  color: var(--pg8f-text-muted);
  text-align: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg8f-border);
}

/* Content text styles */
.pg8f-content-text {
  font-size: 1.3rem;
  color: var(--pg8f-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.pg8f-content-text strong {
  color: var(--pg8f-primary);
}

/* CTA section */
.pg8f-cta-section {
  background: linear-gradient(135deg, var(--pg8f-dark) 0%, #00695C 100%);
  border-radius: 1rem;
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid var(--pg8f-primary);
}

.pg8f-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg8f-gold);
  margin-bottom: 0.8rem;
}

.pg8f-cta-desc {
  font-size: 1.3rem;
  color: var(--pg8f-text-light);
  margin-bottom: 1.2rem;
}

/* Winner ticker */
.pg8f-winner-ticker {
  background: var(--pg8f-card-bg);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--pg8f-border);
}

.pg8f-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(68, 68, 68, 0.4);
  font-size: 1.2rem;
}

/* Testimonial */
.pg8f-testimonial {
  background: var(--pg8f-card-bg);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--pg8f-primary);
}

.pg8f-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg8f-text-light);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.pg8f-testimonial-author {
  font-size: 1.1rem;
  color: var(--pg8f-primary);
  font-weight: 600;
}

/* Payment methods */
.pg8f-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg8f-payment-item {
  background: var(--pg8f-card-bg);
  border: 1px solid var(--pg8f-border);
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--pg8f-text-light);
}

/* FAQ accordion */
.pg8f-faq-item {
  background: var(--pg8f-card-bg);
  border-radius: 0.6rem;
  margin: 0.6rem 0;
  border: 1px solid var(--pg8f-border);
  overflow: hidden;
}

.pg8f-faq-question {
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg8f-primary);
  cursor: pointer;
}

.pg8f-faq-answer {
  padding: 0 1.2rem 1rem;
  font-size: 1.2rem;
  color: var(--pg8f-text-light);
  line-height: 1.6;
}

/* Highlights */
.pg8f-highlight-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pg8f-card-bg);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.6rem 0;
  border: 1px solid var(--pg8f-border);
}

.pg8f-highlight-icon {
  font-size: 2.4rem;
  color: var(--pg8f-primary);
  min-width: 3rem;
  text-align: center;
}

.pg8f-highlight-text {
  font-size: 1.2rem;
  color: var(--pg8f-text-light);
}

/* Internal link style */
.pg8f-internal-link {
  color: var(--pg8f-accent);
  text-decoration: underline;
  transition: color 0.2s;
}

.pg8f-internal-link:hover {
  color: var(--pg8f-hover);
}

/* Responsive utilities */
@media (max-width: 360px) {
  .pg8f-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg8f-game-item img {
    width: 6rem;
    height: 6rem;
  }
}

@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
}
