/* PH Play Theme Stylesheet - prefix: w6807- */
/* Color palette: #333333 bg, #48D1CC primary, #6495ED secondary */

:root {
  --w6807-primary: #48D1CC;
  --w6807-secondary: #6495ED;
  --w6807-bg: #333333;
  --w6807-bg-dark: #1a1a2e;
  --w6807-bg-card: #2a2a3e;
  --w6807-text: #f0f0f0;
  --w6807-text-muted: #a0a0b0;
  --w6807-accent: #48D1CC;
  --w6807-border: #3d3d5c;
  --w6807-radius: 8px;
  --w6807-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

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

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

a { color: var(--w6807-primary); text-decoration: none; }
a:hover { color: var(--w6807-secondary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w6807-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--w6807-bg-dark), #16213e);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--w6807-primary);
}

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

.w6807-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w6807-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w6807-primary);
  letter-spacing: 0.5px;
}

.w6807-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w6807-btn-register {
  background: linear-gradient(135deg, var(--w6807-primary), #3ab8b3);
  color: #111;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.w6807-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(72, 209, 204, 0.5);
}

.w6807-btn-login {
  background: transparent;
  color: var(--w6807-secondary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--w6807-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.w6807-btn-login:hover {
  background: var(--w6807-secondary);
  color: #111;
}

.w6807-menu-btn {
  background: none;
  border: none;
  color: var(--w6807-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu Overlay */
.w6807-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.w6807-overlay-active { opacity: 1; pointer-events: all; }

/* Mobile Slide Menu */
.w6807-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e, #16213e);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

.w6807-mobile-menu .w6807-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--w6807-text);
  font-size: 2rem;
  cursor: pointer;
}

.w6807-mobile-menu .w6807-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w6807-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--w6807-border);
}

.w6807-mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: var(--w6807-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.w6807-mobile-menu a:hover {
  color: var(--w6807-primary);
  padding-left: 0.5rem;
}

/* Main content area */
.w6807-main {
  padding-top: 5.6rem;
}

@media (max-width: 768px) {
  .w6807-main { padding-bottom: 80px; }
}

/* Carousel / Banner */
.w6807-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w6807-radius) var(--w6807-radius);
}

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

.w6807-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.w6807-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.w6807-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

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

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

.w6807-section-title i {
  margin-right: 0.5rem;
}

/* Game grid */
.w6807-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0 0.8rem 1.2rem;
}

.w6807-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--w6807-radius);
  padding: 0.4rem;
  background: var(--w6807-bg-card);
}

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

.w6807-game-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.w6807-game-item span {
  font-size: 1rem;
  color: var(--w6807-text-muted);
  display: block;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content sections */
.w6807-content-section {
  padding: 1.2rem 1rem;
  margin: 0.5rem 0;
  background: var(--w6807-bg-card);
  border-radius: var(--w6807-radius);
  margin-left: 0.8rem;
  margin-right: 0.8rem;
}

.w6807-content-section h2 {
  font-size: 1.6rem;
  color: var(--w6807-primary);
  margin-bottom: 0.8rem;
}

.w6807-content-section h3 {
  font-size: 1.4rem;
  color: var(--w6807-secondary);
  margin-bottom: 0.5rem;
}

.w6807-content-section p {
  font-size: 1.3rem;
  color: var(--w6807-text);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.w6807-content-section ul {
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}

.w6807-content-section li {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--w6807-text);
  margin-bottom: 0.3rem;
}

/* Promo link buttons in content */
.w6807-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w6807-primary), var(--w6807-secondary));
  color: #111;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.8rem;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.w6807-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(72, 209, 204, 0.5);
}

.w6807-promo-text {
  color: var(--w6807-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Feature cards */
.w6807-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.w6807-feature-card {
  background: linear-gradient(135deg, rgba(72, 209, 204, 0.1), rgba(100, 149, 237, 0.1));
  border: 1px solid var(--w6807-border);
  border-radius: var(--w6807-radius);
  padding: 1rem;
  text-align: center;
}

.w6807-feature-card i {
  font-size: 2rem;
  color: var(--w6807-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.w6807-feature-card h3 {
  font-size: 1.2rem;
  color: var(--w6807-secondary);
  margin-bottom: 0.3rem;
}

.w6807-feature-card p {
  font-size: 1.1rem;
  color: var(--w6807-text-muted);
}

/* Testimonials */
.w6807-testimonial {
  background: rgba(72, 209, 204, 0.06);
  border-left: 3px solid var(--w6807-primary);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--w6807-radius) var(--w6807-radius) 0;
}

.w6807-testimonial p {
  font-style: italic;
  color: var(--w6807-text);
  margin-bottom: 0.3rem;
}

.w6807-testimonial cite {
  font-size: 1.1rem;
  color: var(--w6807-secondary);
}

/* Winners showcase */
.w6807-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.w6807-winner-item span:first-child {
  color: var(--w6807-text);
  font-size: 1.2rem;
}

.w6807-winner-item span:last-child {
  color: var(--w6807-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Footer */
.w6807-footer {
  background: linear-gradient(180deg, var(--w6807-bg-dark), #0d0d1a);
  padding: 2rem 1rem 1.5rem;
  margin-top: 1.5rem;
}

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

.w6807-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.w6807-footer-links a {
  font-size: 1.1rem;
  color: var(--w6807-text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s, background 0.2s;
}

.w6807-footer-links a:hover {
  color: var(--w6807-primary);
  background: rgba(72, 209, 204, 0.1);
}

.w6807-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.w6807-footer-promo button {
  background: linear-gradient(135deg, var(--w6807-primary), var(--w6807-secondary));
  color: #111;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.w6807-footer-promo button:hover { transform: scale(1.05); }

.w6807-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Fixed Bottom Navigation */
.w6807-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1e1e38, #0d0d1a);
  border-top: 2px solid var(--w6807-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.w6807-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w6807-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0.2rem;
}

.w6807-bottom-nav button:hover {
  color: var(--w6807-primary);
  transform: scale(1.1);
}

.w6807-bottom-nav button i,
.w6807-bottom-nav button span.material-icons-outlined,
.w6807-bottom-nav button ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.w6807-bottom-nav button span.material-icons-outlined {
  font-size: 24px;
}

.w6807-bottom-nav button ion-icon {
  font-size: 24px;
}

.w6807-bottom-nav button .w6807-nav-label {
  font-size: 1rem;
  color: inherit;
  line-height: 1;
}

.w6807-bottom-nav button.w6807-nav-active {
  color: var(--w6807-primary);
}

.w6807-bottom-nav button.w6807-nav-active .w6807-nav-label {
  font-weight: 700;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w6807-bottom-nav { display: none; }
}

/* Desktop layout */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w6807-header { max-width: 100%; }
  .w6807-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w6807-main { padding-bottom: 0; }
}

/* Utility classes */
.w6807-text-center { text-align: center; }
.w6807-mt-1 { margin-top: 0.8rem; }
.w6807-mb-1 { margin-bottom: 0.8rem; }
.w6807-hidden { display: none; }

/* Payment icons row */
.w6807-payment-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.w6807-payment-row span {
  font-size: 1.2rem;
  color: var(--w6807-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid var(--w6807-border);
}

/* CTA download section */
.w6807-download-cta {
  background: linear-gradient(135deg, rgba(72, 209, 204, 0.15), rgba(100, 149, 237, 0.15));
  border: 2px solid var(--w6807-primary);
  border-radius: var(--w6807-radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.w6807-download-cta h3 {
  font-size: 1.5rem;
  color: var(--w6807-primary);
  margin-bottom: 0.5rem;
}

.w6807-download-cta p {
  font-size: 1.2rem;
  color: var(--w6807-text-muted);
  margin-bottom: 1rem;
}
