/**
 * ph85 CSS Module
 * Mobile-first gaming promotion site
 * All classes use wb6eb- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --wb6eb-primary: #800080;
  --wb6eb-bg: #0A0A0A;
  --wb6eb-text: #D3D3D3;
  --wb6eb-accent: #9966CC;
  --wb6eb-muted: #708090;
  --wb6eb-gray: #808080;
  --wb6eb-dark: #0A0A0A;
  --wb6eb-light: #D3D3D3;
  --wb6eb-font-size: 62.5%;
}

/* Reset & Base */
html {
  font-size: var(--wb6eb-font-size);
  scroll-behavior: smooth;
}

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

a {
  color: var(--wb6eb-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--wb6eb-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.wb6eb-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

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

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

.wb6eb-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}

.wb6eb-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05rem;
}

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

.wb6eb-btn-register {
  background: linear-gradient(135deg, var(--wb6eb-primary), var(--wb6eb-accent));
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.wb6eb-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(128, 0, 128, 0.5);
}

.wb6eb-btn-login {
  background: transparent;
  color: var(--wb6eb-accent);
  border: 1px solid var(--wb6eb-accent);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.wb6eb-btn-login:hover {
  background: rgba(153, 102, 204, 0.15);
}

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

/* Mobile Menu */
.wb6eb-mobile-menu {
  display: none;
  position: fixed;
  top: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #111118;
  border-bottom: 2px solid var(--wb6eb-primary);
  z-index: 9999;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.wb6eb-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--wb6eb-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(112, 128, 144, 0.2);
  transition: background 0.2s, color 0.2s;
}

.wb6eb-mobile-menu a:hover {
  background: rgba(128, 0, 128, 0.15);
  color: var(--wb6eb-accent);
}

.wb6eb-menu-active {
  display: block !important;
}

/* Main content spacing for fixed header */
.wb6eb-main {
  padding-top: 5.2rem;
  min-height: 100vh;
}

/* Carousel */
.wb6eb-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}

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

.wb6eb-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.wb6eb-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wb6eb-slide-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(211, 211, 211, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.wb6eb-dot-active {
  background: var(--wb6eb-accent);
  width: 2rem;
  border-radius: 0.4rem;
}

/* Section titles */
.wb6eb-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--wb6eb-accent);
  line-height: 1.2;
}

.wb6eb-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wb6eb-accent);
  margin: 1.5rem 0 0.8rem;
}

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

.wb6eb-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

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

.wb6eb-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  border: 1px solid rgba(112, 128, 144, 0.3);
  margin-bottom: 0.3rem;
}

.wb6eb-game-item span {
  font-size: 1rem;
  color: var(--wb6eb-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category label */
.wb6eb-cat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wb6eb-accent);
  margin: 1.5rem 0 0.6rem;
  padding: 0.3rem 0.8rem;
  background: rgba(128, 0, 128, 0.15);
  border-radius: 0.4rem;
  display: inline-block;
}

/* Promo buttons */
.wb6eb-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wb6eb-primary), var(--wb6eb-accent));
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 1rem 0;
}

.wb6eb-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.6);
}

/* Cards */
.wb6eb-card {
  background: linear-gradient(145deg, #111118, #1a1a2e);
  border: 1px solid rgba(112, 128, 144, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
}

.wb6eb-card h3 {
  color: var(--wb6eb-accent);
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

.wb6eb-card p {
  color: var(--wb6eb-text);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

/* Content text */
.wb6eb-content-text {
  color: var(--wb6eb-text);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0.8rem 0;
}

/* Promo link text */
.wb6eb-promo-link {
  color: var(--wb6eb-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s;
}

.wb6eb-promo-link:hover {
  color: #bb88ee;
}

/* Footer */
.wb6eb-footer {
  background: #050508;
  border-top: 2px solid var(--wb6eb-primary);
  padding: 2rem 1rem 8rem;
  margin-top: 3rem;
}

.wb6eb-footer-brand {
  font-size: 1.3rem;
  color: var(--wb6eb-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.wb6eb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.wb6eb-footer-link {
  background: rgba(128, 0, 128, 0.2);
  color: var(--wb6eb-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wb6eb-footer-link:hover {
  background: rgba(128, 0, 128, 0.4);
}

.wb6eb-footer-copy {
  font-size: 1.1rem;
  color: var(--wb6eb-gray);
  margin-top: 1.5rem;
  text-align: center;
}

/* Bottom navigation */
.wb6eb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #111118, #0A0A0A);
  border-top: 1px solid var(--wb6eb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5);
}

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

.wb6eb-bottom-btn:hover,
.wb6eb-bottom-btn:focus {
  color: var(--wb6eb-accent);
  transform: scale(1.08);
}

.wb6eb-bottom-btn .wb6eb-bottom-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.wb6eb-bottom-btn .wb6eb-bottom-label {
  font-size: 1rem;
  line-height: 1.2;
}

.wb6eb-bottom-active {
  color: var(--wb6eb-accent) !important;
}

/* Partners */
.wb6eb-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 1rem;
}

.wb6eb-partners img {
  height: 2.5rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.wb6eb-partners img:hover {
  opacity: 1;
}

/* Info list */
.wb6eb-info-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.wb6eb-info-list li {
  padding: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--wb6eb-text);
  border-bottom: 1px solid rgba(112, 128, 144, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.wb6eb-info-list li i,
.wb6eb-info-list li .material-icons {
  color: var(--wb6eb-accent);
  font-size: 1.4rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* RTP table */
.wb6eb-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.wb6eb-rtp-table th {
  background: rgba(128, 0, 128, 0.2);
  color: var(--wb6eb-accent);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.wb6eb-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(112, 128, 144, 0.15);
  color: var(--wb6eb-text);
}

/* Testimonial */
.wb6eb-testimonial {
  background: linear-gradient(145deg, #111118, #1a1a2e);
  border: 1px solid rgba(112, 128, 144, 0.2);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 0.8rem 0;
}

.wb6eb-testimonial-name {
  color: var(--wb6eb-accent);
  font-weight: 600;
  font-size: 1.3rem;
}

.wb6eb-testimonial-text {
  color: var(--wb6eb-text);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.wb6eb-testimonial-stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* Winner showcase */
.wb6eb-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(128, 0, 128, 0.1);
  padding: 0.8rem;
  border-radius: 0.6rem;
  margin: 0.5rem 0;
}

.wb6eb-winner-amount {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.4rem;
  margin-left: auto;
}

.wb6eb-winner-name {
  color: var(--wb6eb-accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.wb6eb-winner-game {
  color: var(--wb6eb-muted);
  font-size: 1.1rem;
}

/* Payment methods */
.wb6eb-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 1rem 0;
}

.wb6eb-payment-item {
  background: rgba(128, 0, 128, 0.1);
  border: 1px solid rgba(112, 128, 144, 0.2);
  border-radius: 0.6rem;
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--wb6eb-text);
}

/* Responsive: desktop hides bottom nav */
@media (min-width: 769px) {
  .wb6eb-bottom-nav {
    display: none;
  }
  .wb6eb-footer {
    padding-bottom: 2rem;
  }
}

/* Mobile: bottom padding for fixed nav */
@media (max-width: 768px) {
  .wb6eb-main {
    padding-bottom: 80px;
  }
}

/* Achievement badge */
.wb6eb-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--wb6eb-primary), var(--wb6eb-accent));
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.2rem;
}

/* App download CTA */
.wb6eb-app-cta {
  background: linear-gradient(145deg, #1a1a2e, #0A0A0A);
  border: 2px solid var(--wb6eb-primary);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.wb6eb-app-cta h3 {
  color: var(--wb6eb-accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.wb6eb-app-cta p {
  color: var(--wb6eb-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* FAQ item */
.wb6eb-faq-item {
  border-bottom: 1px solid rgba(112, 128, 144, 0.2);
  padding: 1rem 0;
}

.wb6eb-faq-q {
  color: var(--wb6eb-accent);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.wb6eb-faq-a {
  color: var(--wb6eb-text);
  font-size: 1.3rem;
  line-height: 1.5;
}

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

.wb6eb-feature-item {
  background: rgba(128, 0, 128, 0.08);
  border: 1px solid rgba(112, 128, 144, 0.2);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
}

.wb6eb-feature-item i,
.wb6eb-feature-item .material-icons {
  font-size: 2rem;
  color: var(--wb6eb-accent);
  margin-bottom: 0.5rem;
}

.wb6eb-feature-item p {
  font-size: 1.1rem;
  color: var(--wb6eb-text);
  margin: 0;
}

/* Highlight box */
.wb6eb-highlight {
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.15), rgba(153, 102, 204, 0.1));
  border-left: 3px solid var(--wb6eb-accent);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.wb6eb-highlight p {
  margin: 0.3rem 0;
  font-size: 1.3rem;
  color: var(--wb6eb-text);
}
