/**
 * PHDTeam - Main Stylesheet
 * Prefix: w4a70-
 * Dark elegant theme with gold accents
 * Mobile-first design, max-width 430px
 */

:root {
  --w4a70-primary: #D4AF37;
  --w4a70-bg: #3A3A3A;
  --w4a70-text: #FFDEAD;
  --w4a70-accent: #D4AF37;
  --w4a70-card: #4A4A4A;
  --w4a70-dark: #2A2A2A;
  --w4a70-border: #5A5A5A;
  --w4a70-hover: #E8C84A;
  --w4a70-light: #FFF8E7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

a { color: var(--w4a70-accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--w4a70-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.w4a70-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w4a70-dark);
  border-bottom: 2px solid var(--w4a70-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: 5rem;
}
.w4a70-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.w4a70-logo-area img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.w4a70-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--w4a70-primary); letter-spacing: 0.5px; }
.w4a70-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w4a70-btn-register, .w4a70-btn-login {
  padding: 0.6rem 1.2rem; border-radius: 0.5rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; min-height: 3.6rem; min-width: 4.4rem;
  transition: transform 0.2s, background 0.3s;
}
.w4a70-btn-register { background: var(--w4a70-primary); color: var(--w4a70-dark); }
.w4a70-btn-register:hover { background: var(--w4a70-hover); transform: scale(1.05); }
.w4a70-btn-login { background: transparent; color: var(--w4a70-primary); border: 1.5px solid var(--w4a70-primary); }
.w4a70-btn-login:hover { background: rgba(212,175,55,0.15); transform: scale(1.05); }
.w4a70-hamburger {
  background: none; border: none; color: var(--w4a70-text); font-size: 2rem;
  cursor: pointer; padding: 0.5rem; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* === MOBILE MENU === */
.w4a70-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: opacity 0.3s, visibility 0.3s;
}
.w4a70-overlay-active { opacity: 1; visibility: visible; }
.w4a70-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--w4a70-dark); z-index: 9999;
  transition: right 0.35s ease; overflow-y: auto;
  border-left: 2px solid var(--w4a70-primary);
}
.w4a70-menu-active { right: 0; }
.w4a70-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--w4a70-border);
}
.w4a70-menu-header span { color: var(--w4a70-primary); font-size: 1.6rem; font-weight: 700; }
.w4a70-menu-close {
  background: none; border: none; color: var(--w4a70-text);
  font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}
.w4a70-menu-list { list-style: none; padding: 0.5rem 0; }
.w4a70-menu-list li { border-bottom: 1px solid rgba(90,90,90,0.4); }
.w4a70-menu-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
  color: var(--w4a70-text); font-size: 1.4rem; transition: background 0.2s;
}
.w4a70-menu-list a:hover { background: rgba(212,175,55,0.1); color: var(--w4a70-primary); }
.w4a70-menu-list .material-icons, .w4a70-menu-list .fas { font-size: 1.8rem; color: var(--w4a70-primary); width: 2.4rem; text-align: center; }

/* === MAIN CONTENT === */
main { padding-top: 5.5rem; }
@media (max-width: 768px) { main { padding-bottom: 8rem; } }

/* === CAROUSEL === */
.w4a70-carousel {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 16/7; background: var(--w4a70-dark);
}
.w4a70-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity var(--w4a70-slider-speed, 0.5s) ease;
  cursor: pointer;
}
.w4a70-slide-active { opacity: 1; }
.w4a70-slide img { width: 100%; height: 100%; object-fit: cover; }
.w4a70-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 5;
}
.w4a70-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,221,173,0.4); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.w4a70-dot-active { background: var(--w4a70-primary); transform: scale(1.3); }

/* === SECTIONS === */
.w4a70-section { padding: 1.5rem 1rem; }
.w4a70-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w4a70-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w4a70-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.w4a70-section-title i, .w4a70-section-title .material-icons { font-size: 2rem; }

/* === GAME GRID === */
.w4a70-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w4a70-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: 0.6rem; overflow: hidden; background: var(--w4a70-card);
  padding: 0.5rem;
}
.w4a70-game-item:hover { transform: translateY(-3px); }
.w4a70-game-item img {
  width: 100%; aspect-ratio: 1/1; border-radius: 0.5rem;
  object-fit: cover; margin-bottom: 0.3rem;
}
.w4a70-game-item span {
  font-size: 1rem; color: var(--w4a70-text); display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* === CONTENT MODULES === */
.w4a70-module {
  background: var(--w4a70-card); border-radius: 0.8rem;
  padding: 1.5rem; margin: 1rem; border: 1px solid var(--w4a70-border);
}
.w4a70-module h2 {
  font-size: 1.7rem; color: var(--w4a70-primary); margin-bottom: 0.8rem;
}
.w4a70-module h3 { font-size: 1.5rem; color: var(--w4a70-text); margin-bottom: 0.6rem; }
.w4a70-module p { font-size: 1.3rem; line-height: 1.6; margin-bottom: 0.8rem; color: rgba(255,221,173,0.85); }
.w4a70-module ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.w4a70-module li { font-size: 1.3rem; line-height: 1.6; margin-bottom: 0.4rem; color: rgba(255,221,173,0.85); }

/* === CTA BUTTONS === */
.w4a70-cta-btn {
  display: inline-block; background: var(--w4a70-primary); color: var(--w4a70-dark);
  padding: 1rem 2rem; border-radius: 0.6rem; font-size: 1.5rem; font-weight: 700;
  cursor: pointer; border: none; text-align: center; min-height: 4.4rem;
  transition: transform 0.2s, background 0.3s; width: 100%;
}
.w4a70-cta-btn:hover { background: var(--w4a70-hover); transform: scale(1.03); }
.w4a70-cta-link {
  color: var(--w4a70-primary); font-weight: 600; cursor: pointer;
  text-decoration: underline; font-size: 1.3rem;
}
.w4a70-cta-link:hover { color: var(--w4a70-hover); }

/* === FOOTER === */
.w4a70-footer {
  background: var(--w4a70-dark); padding: 2rem 1rem 1.5rem;
  border-top: 2px solid var(--w4a70-primary); text-align: center;
}
.w4a70-footer-brand { font-size: 1.3rem; color: rgba(255,221,173,0.7); margin-bottom: 1rem; line-height: 1.5; }
.w4a70-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.w4a70-footer-links a {
  background: var(--w4a70-card); color: var(--w4a70-text); padding: 0.5rem 1rem;
  border-radius: 0.4rem; font-size: 1.1rem; border: 1px solid var(--w4a70-border);
  transition: background 0.2s, color 0.2s;
}
.w4a70-footer-links a:hover { background: var(--w4a70-primary); color: var(--w4a70-dark); }
.w4a70-footer-copy { font-size: 1.1rem; color: rgba(255,221,173,0.5); margin-top: 0.5rem; }

/* === BOTTOM NAV === */
.w4a70-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w4a70-dark); border-top: 2px solid var(--w4a70-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.3rem;
}
.w4a70-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: rgba(255,221,173,0.6); cursor: pointer; transition: color 0.2s, transform 0.2s;
  gap: 0.2rem; padding: 0.3rem;
}
.w4a70-bottom-nav-btn i, .w4a70-bottom-nav-btn .material-icons { font-size: 2.2rem; }
.w4a70-bottom-nav-btn span { font-size: 1rem; font-weight: 500; }
.w4a70-bottom-nav-btn:hover, .w4a70-bottom-nav-btn.w4a70-nav-active {
  color: var(--w4a70-primary); transform: scale(1.08);
}
@media (min-width: 769px) { .w4a70-bottom-nav { display: none; } }

/* === FAQ === */
.w4a70-faq-item { margin-bottom: 1rem; border-bottom: 1px solid var(--w4a70-border); padding-bottom: 1rem; }
.w4a70-faq-q { font-size: 1.4rem; font-weight: 600; color: var(--w4a70-primary); margin-bottom: 0.4rem; }
.w4a70-faq-a { font-size: 1.3rem; color: rgba(255,221,173,0.85); line-height: 1.6; }

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

/* === TESTIMONIALS === */
.w4a70-testimonial {
  background: rgba(212,175,55,0.08); border-left: 3px solid var(--w4a70-primary);
  padding: 1rem; border-radius: 0 0.6rem 0.6rem 0; margin-bottom: 0.8rem;
}
.w4a70-testimonial p { font-style: italic; font-size: 1.2rem; margin-bottom: 0.3rem; }
.w4a70-testimonial cite { font-size: 1.1rem; color: var(--w4a70-primary); }

/* === WINNERS === */
.w4a70-winners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.w4a70-winner-item {
  background: var(--w4a70-card); padding: 0.8rem; border-radius: 0.5rem; text-align: center;
  border: 1px solid var(--w4a70-border);
}
.w4a70-winner-item span { display: block; font-size: 1.1rem; color: rgba(255,221,173,0.7); }
.w4a70-winner-item strong { display: block; font-size: 1.4rem; color: var(--w4a70-primary); margin-top: 0.2rem; }

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

/* === RTP TABLE === */
.w4a70-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w4a70-rtp-table th { background: var(--w4a70-primary); color: var(--w4a70-dark); padding: 0.6rem; text-align: left; font-weight: 600; }
.w4a70-rtp-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--w4a70-border); color: rgba(255,221,173,0.85); }

/* === SAFETY PAGE === */
.w4a70-safety-badge {
  display: flex; align-items: center; gap: 1rem; background: var(--w4a70-card);
  padding: 1rem; border-radius: 0.6rem; margin-bottom: 0.8rem; border: 1px solid var(--w4a70-border);
}
.w4a70-safety-badge i, .w4a70-safety-badge .material-icons { font-size: 2.4rem; color: var(--w4a70-primary); }
.w4a70-safety-badge h3 { font-size: 1.4rem; color: var(--w4a70-primary); margin-bottom: 0.2rem; }
.w4a70-safety-badge p { font-size: 1.2rem; color: rgba(255,221,173,0.8); margin: 0; }
