/**
 * BDTK Website Core Stylesheet
 * File: css/design-e255.css
 * Prefix: pge2-
 * Colors: #BF360C (primary) | #1A1A1A (bg) | #CCCCCC (text)
 */

/* ===== CSS Variables ===== */
:root {
  --pge2-primary: #BF360C;
  --pge2-primary-light: #E84E1B;
  --pge2-primary-dark: #8C2809;
  --pge2-bg: #1A1A1A;
  --pge2-bg-light: #252525;
  --pge2-bg-card: #2A2A2A;
  --pge2-text: #CCCCCC;
  --pge2-text-light: #E0E0E0;
  --pge2-text-dark: #999999;
  --pge2-border: #3A3A3A;
  --pge2-success: #4CAF50;
  --pge2-warning: #FF9800;
  --pge2-gold: #FFD700;
  --pge2-radius: 8px;
  --pge2-radius-lg: 12px;
  --pge2-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pge2-header-height: 56px;
  --pge2-bottom-height: 60px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pge2-bg);
  color: var(--pge2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pge2-primary-light); text-decoration: none; }
a:hover { color: var(--pge2-primary); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.pge2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pge2-header-height);
  background: var(--pge2-bg);
  border-bottom: 1px solid var(--pge2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}
.pge2-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pge2-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.pge2-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pge2-primary);
  letter-spacing: 0.5px;
}
.pge2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pge2-btn-register, .pge2-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--pge2-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pge2-btn-register {
  background: var(--pge2-primary);
  color: #fff;
}
.pge2-btn-register:hover {
  background: var(--pge2-primary-light);
  transform: scale(1.05);
}
.pge2-btn-login {
  background: transparent;
  color: var(--pge2-primary-light);
  border: 1px solid var(--pge2-primary);
}
.pge2-btn-login:hover {
  background: var(--pge2-primary);
  color: #fff;
}
.pge2-menu-btn {
  background: none;
  border: none;
  color: var(--pge2-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== Mobile Menu ===== */
.pge2-mobile-menu {
  display: none;
  position: fixed;
  top: var(--pge2-header-height);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pge2-bg-light);
  flex-direction: column;
  z-index: 9999;
  border-bottom: 2px solid var(--pge2-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.pge2-mobile-menu a {
  padding: 1.2rem 1.6rem;
  color: var(--pge2-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pge2-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.pge2-mobile-menu a:hover {
  background: var(--pge2-bg-card);
  color: var(--pge2-primary-light);
}

/* ===== Main Content ===== */
.pge2-main {
  padding-top: var(--pge2-header-height);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .pge2-main { padding-bottom: 80px; }
}

/* ===== Carousel ===== */
.pge2-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.pge2-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pge2-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.pge2-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.pge2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.pge2-dot-active { background: var(--pge2-primary); width: 20px; border-radius: 4px; }

/* ===== Section Titles ===== */
.pge2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pge2-text-light);
  padding: 1.5rem 1.2rem 1rem;
  border-left: 4px solid var(--pge2-primary);
  margin: 0 0 0.5rem 0;
}
.pge2-section-title i {
  margin-right: 0.5rem;
  color: var(--pge2-primary);
}

/* ===== Game Grid ===== */
.pge2-game-section { margin-bottom: 2rem; }
.pge2-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pge2-primary);
  padding: 1rem 1.2rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pge2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
}
.pge2-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--pge2-radius);
  overflow: hidden;
}
.pge2-game-card:hover { transform: translateY(-3px); }
.pge2-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pge2-radius);
  border: 1px solid var(--pge2-border);
}
.pge2-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--pge2-text);
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Content Sections ===== */
.pge2-content-section {
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  background: var(--pge2-bg-card);
  border-radius: var(--pge2-radius-lg);
  margin-left: 1rem;
  margin-right: 1rem;
}
.pge2-content-section h2 {
  font-size: 1.7rem;
  color: var(--pge2-primary-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pge2-border);
}
.pge2-content-section h3 {
  font-size: 1.4rem;
  color: var(--pge2-text-light);
  margin: 0.8rem 0 0.5rem;
}
.pge2-content-section p {
  color: var(--pge2-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}
.pge2-content-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.pge2-content-section li {
  color: var(--pge2-text);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

/* ===== Promo Buttons ===== */
.pge2-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pge2-primary), var(--pge2-primary-dark));
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--pge2-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.pge2-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(191,54,12,0.4);
}
.pge2-promo-text {
  color: var(--pge2-primary-light);
  font-weight: 600;
  cursor: pointer;
}
.pge2-promo-text:hover { text-decoration: underline; }

/* ===== Footer ===== */
.pge2-footer {
  background: var(--pge2-bg-light);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--pge2-border);
}
.pge2-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.pge2-footer-brand p {
  font-size: 1.2rem;
  color: var(--pge2-text-dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.pge2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pge2-footer-links a {
  padding: 0.4rem 0.8rem;
  background: var(--pge2-bg-card);
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--pge2-text);
  border: 1px solid var(--pge2-border);
}
.pge2-footer-links a:hover {
  color: var(--pge2-primary-light);
  border-color: var(--pge2-primary);
}
.pge2-site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pge2-site-links a {
  font-size: 1.1rem;
  color: var(--pge2-text-dark);
}
.pge2-site-links a:hover { color: var(--pge2-primary-light); }
.pge2-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pge2-text-dark);
  border-top: 1px solid var(--pge2-border);
  padding-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.pge2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pge2-bottom-height);
  background: var(--pge2-bg-light);
  border-top: 1px solid var(--pge2-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
@media (min-width: 769px) {
  .pge2-bottom-nav { display: none; }
}
.pge2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--pge2-text-dark);
  font-size: 1rem;
  transition: all 0.2s;
  gap: 0.2rem;
}
.pge2-bottom-nav-item i,
.pge2-bottom-nav-item .material-icons {
  font-size: 22px;
}
.pge2-bottom-nav-item:hover,
.pge2-bottom-nav-item.pge2-nav-active {
  color: var(--pge2-primary);
  transform: scale(1.1);
}
.pge2-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2;
}

/* ===== Winner Display ===== */
.pge2-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pge2-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--pge2-bg);
  border-radius: var(--pge2-radius);
  font-size: 1.2rem;
}
.pge2-winner-name { color: var(--pge2-text-light); font-weight: 600; }
.pge2-winner-amount { color: var(--pge2-gold); font-weight: 700; }

/* ===== RTP Bar ===== */
.pge2-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}
.pge2-rtp-label { color: var(--pge2-text); min-width: 80px; }
.pge2-rtp-track {
  flex: 1;
  height: 8px;
  background: var(--pge2-bg);
  border-radius: 4px;
  overflow: hidden;
}
.pge2-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pge2-primary), var(--pge2-warning));
  border-radius: 4px;
}
.pge2-rtp-value { color: var(--pge2-gold); font-weight: 600; min-width: 40px; text-align: right; }

/* ===== Testimonials ===== */
.pge2-testimonial {
  background: var(--pge2-bg);
  border-radius: var(--pge2-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pge2-primary);
}
.pge2-testimonial p { font-size: 1.2rem; font-style: italic; margin-bottom: 0.4rem; }
.pge2-testimonial cite { font-size: 1.1rem; color: var(--pge2-primary-light); }

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

/* ===== Utility ===== */
.pge2-text-center { text-align: center; }
.pge2-mb-1 { margin-bottom: 1rem; }
.pge2-mb-2 { margin-bottom: 2rem; }
.pge2-mt-1 { margin-top: 1rem; }
.pge2-hidden { display: none; }
.pge2-divider {
  border: none;
  border-top: 1px solid var(--pge2-border);
  margin: 1.5rem 0;
}

/* ===== FAQ ===== */
.pge2-faq-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pge2-border);
}
.pge2-faq-item h3 {
  color: var(--pge2-primary-light);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.pge2-faq-item p {
  font-size: 1.3rem;
  color: var(--pge2-text);
  line-height: 1.6;
}
