/**
 * PH Play - Core Stylesheet
 * Mobile-first responsive design
 * All classes prefixed with wed95- for namespace isolation
 * Color palette: #20B2AA | #E5E5E5 | #F4A460 | #0F0F23 | #FFBF00 | #CD853F
 */

/* === CSS Variables === */
:root {
  --wed95-primary: #20B2AA;
  --wed95-primary-dark: #178f89;
  --wed95-secondary: #F4A460;
  --wed95-accent: #FFBF00;
  --wed95-bg-dark: #0F0F23;
  --wed95-bg-card: #161630;
  --wed95-bg-section: #12122a;
  --wed95-text-light: #E5E5E5;
  --wed95-text-muted: #a0a0b8;
  --wed95-border: #2a2a4a;
  --wed95-gold: #CD853F;
  --wed95-success: #4caf50;
  --wed95-danger: #e74c3c;
  --wed95-header-h: 56px;
  --wed95-bottom-h: 60px;
  --wed95-radius: 10px;
  --wed95-radius-sm: 6px;
  --wed95-shadow: 0 4px 15px rgba(0,0,0,0.35);
  --wed95-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::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: var(--wed95-bg-dark);
  color: var(--wed95-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--wed95-primary); text-decoration: none; transition: var(--wed95-transition); }
a:hover { color: var(--wed95-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Fixed Header === */
.wed95-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wed95-header-h);
  background: var(--wed95-bg-dark);
  border-bottom: 1px solid var(--wed95-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(15,15,35,0.95);
}
.wed95-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wed95-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.wed95-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wed95-primary);
  letter-spacing: 0.5px;
}
.wed95-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wed95-btn-register, .wed95-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: var(--wed95-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--wed95-transition);
}
.wed95-btn-register {
  background: var(--wed95-primary);
  color: #fff;
}
.wed95-btn-register:hover { background: var(--wed95-primary-dark); transform: scale(1.05); }
.wed95-btn-login {
  background: transparent;
  color: var(--wed95-primary);
  border: 1px solid var(--wed95-primary);
}
.wed95-btn-login:hover { background: var(--wed95-primary); color: #fff; }
.wed95-menu-toggle {
  color: var(--wed95-text-light);
  font-size: 2.2rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Side Menu === */
.wed95-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  background: var(--wed95-bg-dark);
  border-right: 1px solid var(--wed95-border);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}
.wed95-menu-active { transform: translateX(0); }
.wed95-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wed95-overlay-active { opacity: 1; pointer-events: auto; }
.wed95-menu-header {
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--wed95-border);
  margin-bottom: 1rem;
}
.wed95-menu-header img {
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}
.wed95-menu-header span {
  font-size: 1.6rem; font-weight: 700;
  color: var(--wed95-primary);
}
.wed95-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  color: var(--wed95-text-light);
  font-size: 1.4rem;
  transition: var(--wed95-transition);
  border-left: 3px solid transparent;
}
.wed95-menu-link:hover, .wed95-menu-link.active {
  background: rgba(32,178,170,0.1);
  color: var(--wed95-primary);
  border-left-color: var(--wed95-primary);
}
.wed95-menu-link i { font-size: 1.8rem; width: 24px; text-align: center; }
.wed95-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  color: var(--wed95-text-muted);
  padding: 0.5rem;
}

/* === Main Content === */
.wed95-main {
  margin-top: var(--wed95-header-h);
  padding-bottom: 2rem;
}

/* === Carousel === */
.wed95-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--wed95-radius) var(--wed95-radius);
}
.wed95-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}
.wed95-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.wed95-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.wed95-slide-active { opacity: 1; }
.wed95-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}
.wed95-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--wed95-transition);
}
.wed95-dot-active { background: var(--wed95-accent); transform: scale(1.3); }

/* === Section Styles === */
.wed95-section {
  padding: 2rem 1.2rem;
}
.wed95-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--wed95-text-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wed95-section-title i {
  color: var(--wed95-primary);
}
.wed95-section-subtitle {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* === Game Grid === */
.wed95-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wed95-secondary);
  margin: 1.8rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--wed95-secondary);
}
.wed95-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wed95-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--wed95-transition);
  border-radius: var(--wed95-radius-sm);
  padding: 0.5rem;
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
}
.wed95-game-item:hover { transform: translateY(-3px); box-shadow: var(--wed95-shadow); }
.wed95-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--wed95-radius-sm);
  object-fit: cover;
  margin-bottom: 0.4rem;
}
.wed95-game-item span {
  font-size: 1.1rem;
  color: var(--wed95-text-light);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* === CTA Buttons === */
.wed95-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(135deg, var(--wed95-primary), var(--wed95-primary-dark));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--wed95-radius);
  transition: var(--wed95-transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.wed95-cta-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(32,178,170,0.4); }
.wed95-cta-btn i { font-size: 1.6rem; }
.wed95-cta-gold {
  background: linear-gradient(135deg, var(--wed95-accent), var(--wed95-gold));
}
.wed95-cta-gold:hover { box-shadow: 0 6px 20px rgba(255,191,0,0.4); }
.wed95-cta-secondary {
  background: linear-gradient(135deg, var(--wed95-secondary), var(--wed95-gold));
}

/* === Card Component === */
.wed95-card {
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  transition: var(--wed95-transition);
}
.wed95-card:hover { box-shadow: var(--wed95-shadow); }
.wed95-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wed95-text-light);
  margin-bottom: 0.8rem;
}
.wed95-card-text {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  line-height: 1.6;
}

/* === Promo Link Text === */
.wed95-promo-link {
  color: var(--wed95-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--wed95-transition);
  text-decoration: underline;
}
.wed95-promo-link:hover { color: var(--wed95-secondary); }

/* === Feature List === */
.wed95-feature-list {
  display: grid;
  gap: 1rem;
}
.wed95-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius-sm);
}
.wed95-feature-item i {
  color: var(--wed95-primary);
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.wed95-feature-item h3 {
  font-size: 1.4rem;
  color: var(--wed95-text-light);
  margin-bottom: 0.4rem;
}
.wed95-feature-item p {
  font-size: 1.2rem;
  color: var(--wed95-text-muted);
  line-height: 1.5;
}

/* === Testimonials === */
.wed95-testimonial {
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.wed95-testimonial-text {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.wed95-testimonial-author {
  font-size: 1.2rem;
  color: var(--wed95-primary);
  font-weight: 600;
}

/* === Winners Table === */
.wed95-winners-table {
  width: 100%;
  border-collapse: collapse;
}
.wed95-winners-table th, .wed95-winners-table td {
  padding: 0.8rem 0.6rem;
  font-size: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--wed95-border);
}
.wed95-winners-table th {
  color: var(--wed95-primary);
  font-weight: 600;
  font-size: 1.1rem;
}
.wed95-winners-table td { color: var(--wed95-text-muted); }
.wed95-win-amount { color: var(--wed95-accent); font-weight: 600; }

/* === Payment Methods === */
.wed95-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wed95-payment-item {
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius-sm);
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--wed95-text-muted);
}
.wed95-payment-item i {
  display: block;
  font-size: 2.4rem;
  color: var(--wed95-primary);
  margin-bottom: 0.5rem;
}

/* === App Download Section === */
.wed95-app-section {
  background: linear-gradient(135deg, var(--wed95-bg-card), var(--wed95-bg-section));
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius);
  padding: 2rem 1.4rem;
  text-align: center;
}
.wed95-app-section h3 {
  font-size: 1.8rem;
  color: var(--wed95-text-light);
  margin-bottom: 0.8rem;
}
.wed95-app-section p {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.wed95-app-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.wed95-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  background: var(--wed95-primary);
  color: #fff;
  border-radius: var(--wed95-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--wed95-transition);
}
.wed95-app-btn:hover { background: var(--wed95-primary-dark); transform: scale(1.05); }

/* === Fixed Bottom Navigation === */
.wed95-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--wed95-bottom-h);
  background: linear-gradient(180deg, rgba(15,15,35,0.98), rgba(10,10,25,1));
  border-top: 1px solid var(--wed95-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
  backdrop-filter: blur(10px);
}
.wed95-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  color: var(--wed95-text-muted);
  font-size: 1rem;
  transition: var(--wed95-transition);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  gap: 0.2rem;
}
.wed95-bottom-nav-btn i, .wed95-bottom-nav-btn .material-icons {
  font-size: 22px;
  transition: var(--wed95-transition);
}
.wed95-bottom-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}
.wed95-bottom-nav-btn:hover, .wed95-nav-active {
  color: var(--wed95-primary);
}
.wed95-bottom-nav-btn:hover i, .wed95-nav-active i,
.wed95-bottom-nav-btn:hover .material-icons, .wed95-nav-active .material-icons {
  transform: scale(1.15);
  color: var(--wed95-primary);
}
.wed95-bottom-nav-btn:active {
  transform: scale(0.92);
}
.wed95-nav-badge {
  position: relative;
}
.wed95-nav-badge::after {
  content: '1';
  position: absolute;
  top: -2px; right: -6px;
  background: var(--wed95-danger);
  color: #fff;
  font-size: 0.8rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* === Footer === */
.wed95-footer {
  background: var(--wed95-bg-section);
  border-top: 1px solid var(--wed95-border);
  padding: 2rem 1.2rem 1rem;
}
.wed95-footer-brand {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.wed95-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.wed95-footer-link {
  padding: 0.5rem 1rem;
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius-sm);
  color: var(--wed95-text-muted);
  font-size: 1.1rem;
  transition: var(--wed95-transition);
}
.wed95-footer-link:hover { color: var(--wed95-primary); border-color: var(--wed95-primary); }
.wed95-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.wed95-footer-partners span {
  font-size: 1.1rem;
  color: var(--wed95-text-muted);
}
.wed95-footer-copyright {
  font-size: 1.1rem;
  color: var(--wed95-text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--wed95-border);
}

/* === Back to Top === */
.wed95-back-top {
  position: fixed;
  bottom: 75px; right: 1.2rem;
  width: 40px; height: 40px;
  background: var(--wed95-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--wed95-transition);
  cursor: pointer;
  box-shadow: var(--wed95-shadow);
}
.wed95-back-top-visible { opacity: 1; transform: translateY(0); }
.wed95-back-top:hover { background: var(--wed95-primary-dark); }

/* === Content Typography === */
.wed95-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wed95-text-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.wed95-content h2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--wed95-text-light);
  margin: 1.6rem 0 0.8rem;
}
.wed95-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wed95-secondary);
  margin: 1.2rem 0 0.6rem;
}
.wed95-content p {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.wed95-content ul {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}
.wed95-content ul li {
  list-style: disc;
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* === Help Page Specific === */
.wed95-help-section {
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
.wed95-help-section h2 {
  font-size: 1.6rem;
  color: var(--wed95-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--wed95-border);
}
.wed95-help-section p, .wed95-help-section li {
  font-size: 1.3rem;
  color: var(--wed95-text-muted);
  line-height: 1.6;
}

/* === FAQ Accordion === */
.wed95-faq-item {
  background: var(--wed95-bg-card);
  border: 1px solid var(--wed95-border);
  border-radius: var(--wed95-radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.wed95-faq-q {
  padding: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wed95-text-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wed95-faq-a {
  padding: 0 1.2rem 1.2rem;
  font-size: 1.2rem;
  color: var(--wed95-text-muted);
  line-height: 1.5;
}

/* === Responsive: Mobile bottom padding === */
@media (max-width: 768px) {
  .wed95-main {
    padding-bottom: calc(var(--wed95-bottom-h) + 1rem);
  }
  .wed95-footer {
    padding-bottom: calc(var(--wed95-bottom-h) + 1rem);
  }
}

/* === Responsive: Desktop - hide bottom nav === */
@media (min-width: 769px) {
  .wed95-bottom-nav { display: none; }
  .wed95-main { max-width: 430px; margin-left: auto; margin-right: auto; }
  .wed95-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .wed95-footer { max-width: 430px; margin-left: auto; margin-right: auto; }
}
