/**
 * tk1971 - Main Stylesheet
 * All classes prefixed with wf55e- for namespace isolation
 * Color palette: #3A3A3A | #FFA500 | #FF6347
 */

/* CSS Variables */
:root {
  --wf55e-primary: #FFA500;
  --wf55e-secondary: #FF6347;
  --wf55e-bg: #3A3A3A;
  --wf55e-bg-light: #4A4A4A;
  --wf55e-bg-dark: #2A2A2A;
  --wf55e-text: #FFFFFF;
  --wf55e-text-muted: #CCCCCC;
  --wf55e-accent: #FFD700;
  --wf55e-border: #555555;
  --wf55e-radius: 8px;
  --wf55e-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--wf55e-bg);
  color: var(--wf55e-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--wf55e-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Container */
.wf55e-container { width: 100%; padding: 0 1.2rem; }
.wf55e-wrapper { padding: 1rem 0; }
.wf55e-grid { display: grid; gap: 1rem; }

/* Header */
.wf55e-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--wf55e-bg-dark), var(--wf55e-bg));
  border-bottom: 2px solid var(--wf55e-primary);
  z-index: 1000; padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.wf55e-header-left { display: flex; align-items: center; gap: 0.8rem; }
.wf55e-logo { width: 32px; height: 32px; border-radius: 6px; }
.wf55e-site-name { font-size: 1.8rem; font-weight: 700; color: var(--wf55e-primary); }
.wf55e-header-right { display: flex; align-items: center; gap: 0.6rem; }
.wf55e-btn-register {
  background: linear-gradient(135deg, var(--wf55e-primary), var(--wf55e-secondary));
  color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  min-height: 32px; min-width: 60px;
}
.wf55e-btn-login {
  background: transparent; color: var(--wf55e-primary);
  border: 1.5px solid var(--wf55e-primary); padding: 0.4rem 0.9rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; min-height: 32px; min-width: 50px;
}
.wf55e-menu-toggle {
  background: none; border: none; color: var(--wf55e-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* Mobile Menu */
.wf55e-mobile-menu {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 100vh;
  background: var(--wf55e-bg-dark);
  z-index: 9999; padding-top: 6rem;
  transform: translateX(-50%) translateX(100%);
  transition: transform 0.3s ease;
}
.wf55e-mobile-menu.wf55e-menu-active {
  transform: translateX(-50%) translateX(0);
}
.wf55e-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--wf55e-primary);
  font-size: 2.4rem; cursor: pointer;
}
.wf55e-menu-links { padding: 1rem 2rem; }
.wf55e-menu-links a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--wf55e-border);
  color: var(--wf55e-text); font-size: 1.4rem; font-weight: 500;
  transition: color 0.2s;
}
.wf55e-menu-links a:hover { color: var(--wf55e-primary); }
.wf55e-menu-links a i, .wf55e-menu-links a .material-icons { font-size: 2rem; color: var(--wf55e-primary); }

/* Main content offset */
main { padding-top: 6rem; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

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

/* Section Titles */
.wf55e-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wf55e-primary);
  margin: 1.5rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wf55e-secondary);
}
.wf55e-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.wf55e-game-section { margin-bottom: 1.5rem; }
.wf55e-game-cat-title {
  font-size: 1.6rem; font-weight: 600; color: var(--wf55e-accent);
  margin-bottom: 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--wf55e-primary);
}
.wf55e-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wf55e-game-item { text-align: center; cursor: pointer; }
.wf55e-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--wf55e-radius);
  border: 2px solid var(--wf55e-border);
  transition: border-color 0.2s, transform 0.2s;
}
.wf55e-game-item:hover img {
  border-color: var(--wf55e-primary);
  transform: scale(1.03);
}
.wf55e-game-name {
  font-size: 1.1rem; color: var(--wf55e-text-muted);
  margin-top: 0.3rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Content Sections */
.wf55e-content-section {
  background: var(--wf55e-bg-light); border-radius: var(--wf55e-radius);
  padding: 1.2rem; margin: 1rem 0;
  border: 1px solid var(--wf55e-border);
}
.wf55e-content-section h2 {
  font-size: 1.6rem; color: var(--wf55e-primary); margin-bottom: 0.8rem;
}
.wf55e-content-section h3 {
  font-size: 1.4rem; color: var(--wf55e-accent); margin: 0.8rem 0 0.4rem;
}
.wf55e-content-section p {
  font-size: 1.3rem; line-height: 2rem; color: var(--wf55e-text-muted);
  margin-bottom: 0.6rem;
}

/* Promo Button */
.wf55e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--wf55e-primary), var(--wf55e-secondary));
  color: #fff; padding: 1rem 2rem; border-radius: 25px;
  font-size: 1.4rem; font-weight: 700; border: none;
  cursor: pointer; text-align: center;
  box-shadow: 0 4px 12px rgba(255,165,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wf55e-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,165,0,0.5);
}

/* Promo text link */
.wf55e-promo-link {
  color: var(--wf55e-primary); font-weight: 700;
  text-decoration: underline; cursor: pointer;
}

/* Cards */
.wf55e-card {
  background: var(--wf55e-bg-light); border-radius: var(--wf55e-radius);
  padding: 1.2rem; border: 1px solid var(--wf55e-border);
  margin-bottom: 1rem;
}
.wf55e-card-title {
  font-size: 1.4rem; font-weight: 600; color: var(--wf55e-primary);
  margin-bottom: 0.6rem;
}

/* FAQ */
.wf55e-faq-item { margin-bottom: 1rem; }
.wf55e-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--wf55e-accent);
  margin-bottom: 0.3rem;
}
.wf55e-faq-a {
  font-size: 1.2rem; color: var(--wf55e-text-muted); line-height: 1.8rem;
}

/* Winner list */
.wf55e-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--wf55e-border);
  font-size: 1.2rem;
}
.wf55e-winner-name { color: var(--wf55e-text); font-weight: 500; }
.wf55e-winner-game { color: var(--wf55e-text-muted); }
.wf55e-winner-amount { color: var(--wf55e-primary); font-weight: 700; }

/* Payment icons */
.wf55e-payment-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin: 1rem 0;
}
.wf55e-payment-item {
  background: var(--wf55e-bg-dark); border-radius: 8px;
  padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--wf55e-text-muted);
  border: 1px solid var(--wf55e-border);
}

/* Testimonial */
.wf55e-testimonial {
  background: var(--wf55e-bg-dark); border-radius: var(--wf55e-radius);
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--wf55e-primary);
}
.wf55e-testimonial-text {
  font-size: 1.2rem; color: var(--wf55e-text-muted); font-style: italic;
  line-height: 1.8rem;
}
.wf55e-testimonial-author {
  font-size: 1.1rem; color: var(--wf55e-primary); margin-top: 0.4rem;
  font-weight: 600;
}

/* Footer */
.wf55e-footer {
  background: var(--wf55e-bg-dark); padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--wf55e-primary);
  margin-top: 2rem;
}
.wf55e-footer-brand { font-size: 1.2rem; color: var(--wf55e-text-muted); line-height: 1.8rem; margin-bottom: 1rem; }
.wf55e-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1rem; justify-content: center;
}
.wf55e-footer-links a {
  background: var(--wf55e-bg-light); color: var(--wf55e-primary);
  padding: 0.5rem 1rem; border-radius: 15px;
  font-size: 1.1rem; border: 1px solid var(--wf55e-border);
  transition: background 0.2s;
}
.wf55e-footer-links a:hover { background: var(--wf55e-primary); color: #fff; }
.wf55e-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--wf55e-text-muted);
  padding-top: 1rem; border-top: 1px solid var(--wf55e-border);
}

/* Bottom Navigation */
.wf55e-bottom-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, var(--wf55e-bg), var(--wf55e-bg-dark));
  border-top: 2px solid var(--wf55e-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; z-index: 1000;
}
.wf55e-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--wf55e-text-muted); cursor: pointer;
  min-width: 60px; min-height: 56px;
  transition: color 0.2s, transform 0.15s;
  padding: 0.4rem 0;
}
.wf55e-bottom-nav-btn:hover, .wf55e-bottom-nav-btn:focus {
  color: var(--wf55e-primary); transform: scale(1.08);
}
.wf55e-bottom-nav-btn i,
.wf55e-bottom-nav-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.wf55e-bottom-nav-btn span {
  font-size: 1rem; white-space: nowrap;
}
.wf55e-bottom-nav-btn.wf55e-nav-active {
  color: var(--wf55e-primary);
}
.wf55e-bottom-nav-btn.wf55e-nav-active i,
.wf55e-bottom-nav-btn.wf55e-nav-active .material-icons {
  color: var(--wf55e-secondary);
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .wf55e-bottom-nav { display: none; }
}

/* RTP Table */
.wf55e-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.wf55e-rtp-table th {
  background: var(--wf55e-primary); color: var(--wf55e-bg-dark);
  padding: 0.6rem; text-align: left; font-weight: 600;
}
.wf55e-rtp-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--wf55e-border);
  color: var(--wf55e-text-muted);
}

/* Achievement badges */
.wf55e-badge-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0;
}
.wf55e-badge {
  background: linear-gradient(135deg, var(--wf55e-primary), var(--wf55e-secondary));
  color: #fff; padding: 0.3rem 0.8rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
}

/* App download section */
.wf55e-app-section {
  background: linear-gradient(135deg, var(--wf55e-bg-dark), var(--wf55e-bg));
  border-radius: var(--wf55e-radius); padding: 1.5rem;
  text-align: center; border: 1px solid var(--wf55e-primary);
}
.wf55e-app-section p { font-size: 1.3rem; color: var(--wf55e-text-muted); margin: 0.5rem 0; }

/* Category highlight cards */
.wf55e-cat-highlight {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding-bottom: 0.5rem; margin: 0.8rem 0;
}
.wf55e-cat-card {
  flex: 0 0 120px; background: var(--wf55e-bg-dark);
  border-radius: var(--wf55e-radius); padding: 0.8rem;
  text-align: center; border: 1px solid var(--wf55e-border);
  cursor: pointer; transition: border-color 0.2s;
}
.wf55e-cat-card:hover { border-color: var(--wf55e-primary); }
.wf55e-cat-card i { font-size: 2.4rem; color: var(--wf55e-primary); }
.wf55e-cat-card p { font-size: 1.1rem; color: var(--wf55e-text-muted); margin-top: 0.4rem; }

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