/**
 * PHdream Casino - Core Stylesheet
 * File: css/theme-7017.css
 * Prefix: w7017-
 * Colors: #BDB76B (accent) | #2C3E50 (dark bg) | #FFEF94 (light text)
 */

/* ===== CSS Variables ===== */
:root {
  --w7017-primary: #BDB76B;
  --w7017-dark: #2C3E50;
  --w7017-light: #FFEF94;
  --w7017-bg: #1a2332;
  --w7017-bg-alt: #22303f;
  --w7017-bg-card: #263545;
  --w7017-text: #e8e8e8;
  --w7017-text-muted: #a0aec0;
  --w7017-accent-hover: #d4cf7e;
  --w7017-border: #3a4f63;
  --w7017-danger: #e74c3c;
  --w7017-success: #27ae60;
  --w7017-radius: 8px;
  --w7017-radius-lg: 12px;
  --w7017-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --w7017-transition: all 0.25s ease;
  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;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--w7017-text);
  background: var(--w7017-bg);
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: var(--w7017-primary); text-decoration: none; }
a:hover { color: var(--w7017-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.w7017-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--w7017-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--w7017-primary);
}
.w7017-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.w7017-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.w7017-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w7017-primary);
  white-space: nowrap;
}
.w7017-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.w7017-btn-register, .w7017-btn-login {
  padding: 6px 14px;
  border-radius: var(--w7017-radius);
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--w7017-transition);
  white-space: nowrap;
}
.w7017-btn-register {
  background: var(--w7017-primary);
  color: var(--w7017-dark);
}
.w7017-btn-register:hover {
  background: var(--w7017-accent-hover);
  transform: scale(1.03);
}
.w7017-btn-login {
  background: transparent;
  color: var(--w7017-primary);
  border: 1.5px solid var(--w7017-primary);
}
.w7017-btn-login:hover {
  background: rgba(189, 183, 107, 0.12);
}
.w7017-menu-toggle {
  background: none;
  border: none;
  color: var(--w7017-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.w7017-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.w7017-overlay-active { display: block; }
.w7017-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--w7017-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 70px 16px 20px;
  overflow-y: auto;
}
.w7017-menu-active { right: 0; }
.w7017-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--w7017-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--w7017-border);
  transition: var(--w7017-transition);
}
.w7017-mobile-menu a:hover {
  color: var(--w7017-primary);
  padding-left: 8px;
}

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

/* ===== Carousel ===== */
.w7017-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
}
.w7017-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.w7017-slide-active { display: block; }
.w7017-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w7017-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.w7017-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 239, 148, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--w7017-transition);
}
.w7017-dot-active {
  background: var(--w7017-primary);
  transform: scale(1.2);
}

/* ===== Sections ===== */
.w7017-section {
  padding: 20px 14px;
}
.w7017-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w7017-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w7017-border);
}
.w7017-section-subtitle {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--w7017-light);
  margin: 16px 0 10px;
}

/* ===== Game Grid ===== */
.w7017-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.w7017-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w7017-transition);
  border-radius: var(--w7017-radius);
  padding: 6px 4px;
}
.w7017-game-item:hover {
  background: var(--w7017-bg-card);
  transform: translateY(-2px);
}
.w7017-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w7017-radius);
  margin-bottom: 4px;
  object-fit: cover;
  border: 1px solid var(--w7017-border);
}
.w7017-game-item span {
  font-size: 1.1rem;
  color: var(--w7017-text-muted);
  display: block;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Category Label ===== */
.w7017-cat-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.w7017-cat-slot { background: rgba(189, 183, 107, 0.2); color: var(--w7017-primary); }
.w7017-cat-fishing { background: rgba(39, 174, 96, 0.2); color: #2ecc71; }
.w7017-cat-live { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.w7017-cat-hot { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.w7017-cat-cards { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }

/* ===== Cards ===== */
.w7017-card {
  background: var(--w7017-bg-card);
  border-radius: var(--w7017-radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--w7017-border);
}
.w7017-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w7017-light);
  margin-bottom: 10px;
}
.w7017-card p {
  font-size: 1.4rem;
  color: var(--w7017-text-muted);
  line-height: 1.8rem;
  margin-bottom: 8px;
}

/* ===== Promo Buttons ===== */
.w7017-promo-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--w7017-primary), #9e9940);
  color: var(--w7017-dark);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: var(--w7017-transition);
  text-align: center;
}
.w7017-promo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(189, 183, 107, 0.4);
}
.w7017-promo-text {
  color: var(--w7017-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--w7017-primary);
}
.w7017-promo-text:hover {
  color: var(--w7017-accent-hover);
}

/* ===== Footer ===== */
.w7017-footer {
  background: var(--w7017-dark);
  padding: 24px 14px 20px;
  border-top: 2px solid var(--w7017-primary);
  text-align: center;
}
.w7017-footer-desc {
  font-size: 1.3rem;
  color: var(--w7017-text-muted);
  margin-bottom: 16px;
  line-height: 1.8rem;
}
.w7017-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.w7017-footer-links a {
  padding: 6px 12px;
  background: var(--w7017-bg-card);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--w7017-text);
  border: 1px solid var(--w7017-border);
  transition: var(--w7017-transition);
}
.w7017-footer-links a:hover {
  border-color: var(--w7017-primary);
  color: var(--w7017-primary);
}
.w7017-footer-copy {
  font-size: 1.2rem;
  color: var(--w7017-text-muted);
  opacity: 0.7;
}

/* ===== Bottom Navigation ===== */
.w7017-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: var(--w7017-dark);
  border-top: 2px solid var(--w7017-primary);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}
@media (max-width: 768px) {
  .w7017-bottom-nav { display: flex; }
}
.w7017-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w7017-text-muted);
  cursor: pointer;
  transition: var(--w7017-transition);
  border-radius: var(--w7017-radius);
  padding: 4px 2px;
}
.w7017-bottom-nav-btn:hover,
.w7017-bottom-nav-btn:focus {
  color: var(--w7017-primary);
  background: rgba(189, 183, 107, 0.08);
}
.w7017-bottom-nav-btn .w7017-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.w7017-bottom-nav-btn .w7017-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}
.w7017-btn-touch {
  transform: scale(0.92);
}
.w7017-nav-active {
  color: var(--w7017-primary) !important;
}

/* ===== Utility Classes ===== */
.w7017-container { max-width: 430px; margin: 0 auto; padding: 0; }
.w7017-wrapper { padding: 0 14px; }
.w7017-text-center { text-align: center; }
.w7017-text-primary { color: var(--w7017-primary); }
.w7017-text-light { color: var(--w7017-light); }
.w7017-mb-10 { margin-bottom: 10px; }
.w7017-mb-16 { margin-bottom: 16px; }
.w7017-mb-20 { margin-bottom: 20px; }
.w7017-mt-10 { margin-top: 10px; }
.w7017-flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== Stats Grid ===== */
.w7017-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w7017-stat-item {
  background: var(--w7017-bg-alt);
  border-radius: var(--w7017-radius);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--w7017-border);
}
.w7017-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w7017-primary);
}
.w7017-stat-label {
  font-size: 1.2rem;
  color: var(--w7017-text-muted);
  margin-top: 4px;
}

/* ===== Testimonials ===== */
.w7017-testimonial {
  background: var(--w7017-bg-card);
  border-radius: var(--w7017-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--w7017-primary);
}
.w7017-testimonial-author {
  font-weight: 600;
  color: var(--w7017-primary);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.w7017-testimonial-text {
  font-size: 1.3rem;
  color: var(--w7017-text-muted);
  line-height: 1.6rem;
}

/* ===== Winner Showcase ===== */
.w7017-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--w7017-border);
}
.w7017-winner-name {
  font-size: 1.3rem;
  color: var(--w7017-light);
}
.w7017-winner-game {
  font-size: 1.2rem;
  color: var(--w7017-text-muted);
}
.w7017-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w7017-primary);
}

/* ===== Payment Icons ===== */
.w7017-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.w7017-payment-item {
  background: var(--w7017-bg-card);
  padding: 8px 14px;
  border-radius: var(--w7017-radius);
  font-size: 1.3rem;
  color: var(--w7017-text);
  border: 1px solid var(--w7017-border);
}

/* ===== FAQ Accordion ===== */
.w7017-faq-item {
  background: var(--w7017-bg-card);
  border-radius: var(--w7017-radius);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--w7017-border);
}
.w7017-faq-q {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--w7017-light);
  font-size: 1.4rem;
  cursor: default;
}
.w7017-faq-a {
  padding: 0 14px 12px;
  font-size: 1.3rem;
  color: var(--w7017-text-muted);
  line-height: 1.7rem;
}

/* ===== Desktop Responsive ===== */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .w7017-header { max-width: 430px; }
  .w7017-bottom-nav { display: none !important; }
  .w7017-main { padding-bottom: 20px; }
}
