/**
 * PH465 - Main Stylesheet
 * Class prefix: w7e2d-
 * All classes use w7e2d- prefix for namespace isolation
 */

/* CSS Custom Properties */
:root {
  --w7e2d-primary: #00CED1;
  --w7e2d-bg: #2C3E50;
  --w7e2d-bg-light: #34495E;
  --w7e2d-bg-card: #3B5167;
  --w7e2d-text: #48D1CC;
  --w7e2d-text-light: #E0F7FA;
  --w7e2d-accent: #D2B48C;
  --w7e2d-brown: #8B4513;
  --w7e2d-turquoise: #00CED1;
  --w7e2d-header-h: 56px;
  --w7e2d-bottomnav-h: 60px;
  --w7e2d-radius: 8px;
  --w7e2d-radius-sm: 4px;
  --w7e2d-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --w7e2d-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; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--w7e2d-text);
  background: var(--w7e2d-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w7e2d-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.w7e2d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w7e2d-header-h);
  background: var(--w7e2d-bg);
  border-bottom: 1px solid rgba(0, 206, 209, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}
.w7e2d-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.w7e2d-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.w7e2d-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w7e2d-primary);
  letter-spacing: 0.5px;
}
.w7e2d-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w7e2d-btn-register {
  background: var(--w7e2d-primary);
  color: var(--w7e2d-bg);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--w7e2d-radius);
  cursor: pointer;
  min-height: 36px;
  transition: var(--w7e2d-transition);
}
.w7e2d-btn-register:hover {
  background: #00E5E8;
  transform: scale(1.05);
}
.w7e2d-btn-login {
  background: transparent;
  color: var(--w7e2d-accent);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--w7e2d-accent);
  border-radius: var(--w7e2d-radius);
  cursor: pointer;
  min-height: 36px;
  transition: var(--w7e2d-transition);
}
.w7e2d-btn-login:hover {
  background: var(--w7e2d-accent);
  color: var(--w7e2d-bg);
}
.w7e2d-hamburger {
  background: none;
  border: none;
  color: var(--w7e2d-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.w7e2d-main {
  margin-top: var(--w7e2d-header-h);
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section */
.w7e2d-section {
  padding: 2rem 1.2rem;
}
.w7e2d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w7e2d-primary);
  margin-bottom: 1.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.w7e2d-section-title span {
  color: var(--w7e2d-accent);
}

/* Category Tabs */
.w7e2d-cat-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding: 0 1.2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.w7e2d-cat-tabs::-webkit-scrollbar { display: none; }
.w7e2d-cat-tab {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  background: var(--w7e2d-bg-light);
  color: var(--w7e2d-text);
  border: 1px solid rgba(72, 209, 204, 0.2);
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--w7e2d-transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.w7e2d-cat-tab.w7e2d-tab-active {
  background: var(--w7e2d-primary);
  color: var(--w7e2d-bg);
  border-color: var(--w7e2d-primary);
}

/* Game Grid */
.w7e2d-game-section { display: none; }
.w7e2d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.w7e2d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--w7e2d-transition);
  border-radius: var(--w7e2d-radius);
  padding: 0.5rem;
}
.w7e2d-game-item:hover {
  transform: translateY(-2px);
  background: var(--w7e2d-bg-light);
}
.w7e2d-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w7e2d-radius);
  object-fit: cover;
  border: 2px solid rgba(0, 206, 209, 0.15);
}
.w7e2d-game-name {
  font-size: 1.05rem;
  color: var(--w7e2d-text-light);
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.w7e2d-card {
  background: var(--w7e2d-bg-card);
  border-radius: var(--w7e2d-radius);
  padding: 1.6rem;
  margin: 1.2rem;
  box-shadow: var(--w7e2d-shadow);
}
.w7e2d-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w7e2d-primary);
  margin-bottom: 1rem;
}
.w7e2d-card-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--w7e2d-text);
}

/* Promo Button */
.w7e2d-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w7e2d-primary), #00A8AB);
  color: var(--w7e2d-bg);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  transition: var(--w7e2d-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.w7e2d-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 206, 209, 0.4);
}
.w7e2d-promo-link {
  color: var(--w7e2d-accent);
  font-weight: 700;
  border-bottom: 1px dashed var(--w7e2d-accent);
  transition: var(--w7e2d-transition);
}
.w7e2d-promo-link:hover {
  color: var(--w7e2d-primary);
  border-color: var(--w7e2d-primary);
}

/* Stats Bar */
.w7e2d-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1.2rem;
}
.w7e2d-stat-item {
  background: var(--w7e2d-bg-light);
  border-radius: var(--w7e2d-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 206, 209, 0.15);
}
.w7e2d-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w7e2d-primary);
}
.w7e2d-stat-label {
  font-size: 1.1rem;
  color: var(--w7e2d-accent);
  margin-top: 0.3rem;
}

/* Features Grid */
.w7e2d-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1.2rem;
}
.w7e2d-feature-item {
  background: var(--w7e2d-bg-card);
  border-radius: var(--w7e2d-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid rgba(0, 206, 209, 0.1);
  transition: var(--w7e2d-transition);
}
.w7e2d-feature-item:hover {
  border-color: var(--w7e2d-primary);
  transform: translateY(-2px);
}
.w7e2d-feature-icon {
  font-size: 2.8rem;
  color: var(--w7e2d-primary);
  margin-bottom: 0.8rem;
}
.w7e2d-feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w7e2d-accent);
  margin-bottom: 0.4rem;
}
.w7e2d-feature-desc {
  font-size: 1.15rem;
  color: var(--w7e2d-text);
  line-height: 1.4;
}

/* FAQ */
.w7e2d-faq-item {
  background: var(--w7e2d-bg-card);
  border-radius: var(--w7e2d-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.w7e2d-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--w7e2d-text-light);
  font-size: 1.3rem;
  min-height: 44px;
  transition: var(--w7e2d-transition);
}
.w7e2d-faq-question:hover { color: var(--w7e2d-primary); }
.w7e2d-faq-icon {
  font-size: 1.6rem;
  color: var(--w7e2d-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 1rem;
}
.w7e2d-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.4rem;
  color: var(--w7e2d-text);
  font-size: 1.2rem;
  line-height: 1.6;
}
.w7e2d-faq-answer-inner {
  padding-bottom: 1.2rem;
}

/* Testimonials */
.w7e2d-testimonial {
  background: var(--w7e2d-bg-card);
  border-radius: var(--w7e2d-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w7e2d-primary);
}
.w7e2d-testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--w7e2d-text);
  margin-bottom: 0.8rem;
}
.w7e2d-testimonial-author {
  font-size: 1.1rem;
  color: var(--w7e2d-accent);
  font-weight: 600;
}

/* Payment Methods */
.w7e2d-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.w7e2d-payment-item {
  background: var(--w7e2d-bg-light);
  border-radius: var(--w7e2d-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 206, 209, 0.1);
}
.w7e2d-payment-item i { font-size: 2.4rem; color: var(--w7e2d-primary); }
.w7e2d-payment-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--w7e2d-accent);
  margin-top: 0.4rem;
}

/* Winners */
.w7e2d-winner-list {
  padding: 0 1.2rem;
}
.w7e2d-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--w7e2d-bg-card);
  border-radius: var(--w7e2d-radius);
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.6rem;
}
.w7e2d-winner-name {
  font-weight: 600;
  color: var(--w7e2d-accent);
  font-size: 1.2rem;
}
.w7e2d-winner-game {
  font-size: 1.1rem;
  color: var(--w7e2d-text);
}
.w7e2d-winner-amount {
  font-weight: 700;
  color: var(--w7e2d-primary);
  font-size: 1.3rem;
}

/* App Download CTA */
.w7e2d-app-cta {
  background: linear-gradient(135deg, var(--w7e2d-bg-light), var(--w7e2d-bg-card));
  border-radius: var(--w7e2d-radius);
  padding: 2rem;
  margin: 1.2rem;
  text-align: center;
  border: 1px solid rgba(0, 206, 209, 0.2);
}
.w7e2d-app-cta h3 {
  font-size: 1.8rem;
  color: var(--w7e2d-primary);
  margin-bottom: 0.8rem;
}
.w7e2d-app-cta p {
  color: var(--w7e2d-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

/* Footer */
.w7e2d-footer {
  background: var(--w7e2d-bg-light);
  padding: 2rem 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 206, 209, 0.15);
}
.w7e2d-footer-brand {
  font-size: 1.3rem;
  color: var(--w7e2d-text);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.w7e2d-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.w7e2d-footer-links a {
  color: var(--w7e2d-accent);
  font-size: 1.2rem;
  transition: var(--w7e2d-transition);
}
.w7e2d-footer-links a:hover { color: var(--w7e2d-primary); }
.w7e2d-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.w7e2d-footer-promo-btn {
  background: var(--w7e2d-brown);
  color: var(--w7e2d-accent);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--w7e2d-transition);
}
.w7e2d-footer-promo-btn:hover {
  background: var(--w7e2d-primary);
  color: var(--w7e2d-bg);
}
.w7e2d-copyright {
  font-size: 1.1rem;
  color: rgba(72, 209, 204, 0.5);
  margin-top: 1rem;
}

/* Bottom Navigation */
.w7e2d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w7e2d-bottomnav-h);
  background: var(--w7e2d-bg);
  border-top: 1px solid rgba(0, 206, 209, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}
.w7e2d-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--w7e2d-text);
  cursor: pointer;
  transition: var(--w7e2d-transition);
  border-radius: var(--w7e2d-radius);
  padding: 0.4rem;
}
.w7e2d-bottom-btn:hover, .w7e2d-bottom-btn.w7e2d-active {
  color: var(--w7e2d-primary);
  transform: scale(1.08);
}
.w7e2d-bottom-btn i, .w7e2d-bottom-btn .material-symbols-outlined {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
.w7e2d-bottom-btn .material-symbols-outlined {
  font-size: 2.4rem;
}
.w7e2d-bottom-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Mobile Menu */
.w7e2d-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.w7e2d-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--w7e2d-bg);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(0, 206, 209, 0.2);
  padding: 2rem 0;
}
.w7e2d-menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid rgba(0, 206, 209, 0.15);
}
.w7e2d-menu-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.w7e2d-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w7e2d-primary);
}
.w7e2d-menu-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--w7e2d-text);
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w7e2d-menu-nav {
  padding: 1rem 0;
}
.w7e2d-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  color: var(--w7e2d-text-light);
  font-size: 1.3rem;
  font-weight: 500;
  transition: var(--w7e2d-transition);
  text-decoration: none;
  min-height: 44px;
}
.w7e2d-menu-link:hover {
  background: var(--w7e2d-bg-light);
  color: var(--w7e2d-primary);
}
.w7e2d-menu-link i {
  font-size: 2rem;
  width: 28px;
  text-align: center;
  color: var(--w7e2d-accent);
}

/* Text utilities */
.w7e2d-text-center { text-align: center; }
.w7e2d-text-accent { color: var(--w7e2d-accent); }
.w7e2d-text-primary { color: var(--w7e2d-primary); }
.w7e2d-text-light { color: var(--w7e2d-text-light); }
.w7e2d-mt-1 { margin-top: 1rem; }
.w7e2d-mb-1 { margin-bottom: 1rem; }
.w7e2d-mb-2 { margin-bottom: 2rem; }
.w7e2d-p-1 { padding: 1rem; }

/* Responsive - Desktop */
@media (min-width: 769px) {
  .w7e2d-bottom-nav { display: none; }
  .w7e2d-hamburger { display: none; }
  .w7e2d-main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .w7e2d-main { padding-bottom: 80px; }
}
