/**
 * tk666 - design-0526.css
 * Core stylesheet for tk666.cfd gaming platform
 * All classes use w0526- prefix for namespace isolation
 * Color palette: #00CED1 | #F4A460 | #2D2D2D | #8B4513 | #EEEEEE | #F5DEB3
 */

:root {
  --w0526-primary: #00CED1;
  --w0526-secondary: #F4A460;
  --w0526-bg: #2D2D2D;
  --w0526-bg-dark: #1a1a1a;
  --w0526-accent: #8B4513;
  --w0526-text: #EEEEEE;
  --w0526-text-light: #F5DEB3;
  --w0526-border: #3a3a3a;
  --w0526-card-bg: #333333;
  --w0526-gradient: linear-gradient(135deg, #00CED1, #00a5a8);
  --w0526-gradient-warm: linear-gradient(135deg, #F4A460, #8B4513);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--w0526-bg);
  color: var(--w0526-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--w0526-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--w0526-secondary); }

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

/* Header */
.w0526-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w0526-bg-dark);
  border-bottom: 2px solid var(--w0526-primary);
  z-index: 1000;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.w0526-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w0526-primary);
  letter-spacing: 1px;
}

.w0526-header-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w0526-btn-register, .w0526-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.w0526-btn-register {
  background: var(--w0526-gradient);
  color: #fff;
}
.w0526-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,206,209,0.4); }

.w0526-btn-login {
  background: var(--w0526-gradient-warm);
  color: #fff;
}
.w0526-btn-login:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(244,164,96,0.4); }

.w0526-hamburger {
  background: none;
  border: none;
  color: var(--w0526-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.w0526-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.w0526-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--w0526-bg-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--w0526-primary);
}

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

.w0526-mobile-menu h3 {
  color: var(--w0526-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--w0526-border);
}

.w0526-mobile-menu ul {
  list-style: none;
}

.w0526-mobile-menu li {
  margin-bottom: 0.3rem;
}

.w0526-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--w0526-text-light);
  font-size: 1.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.w0526-mobile-menu a:hover {
  background: rgba(0,206,209,0.1);
  color: var(--w0526-primary);
}

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 1rem;
}

/* Carousel */
.w0526-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.w0526-slide {
  width: 100%;
  cursor: pointer;
  display: none;
}
.w0526-slide:first-child { display: block; }

.w0526-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

/* Sections */
.w0526-section {
  padding: 1.5rem 1rem;
}

.w0526-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w0526-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w0526-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w0526-section-title i {
  font-size: 2rem;
  color: var(--w0526-secondary);
}

/* Game Grid */
.w0526-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w0526-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.w0526-game-item:hover { transform: translateY(-2px); }

.w0526-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--w0526-border);
  transition: border-color 0.2s;
}

.w0526-game-item:hover img { border-color: var(--w0526-primary); }

.w0526-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--w0526-text-light);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Tabs */
.w0526-cat-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w0526-secondary);
  margin-bottom: 0.8rem;
  margin-top: 1.2rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w0526-primary);
}

/* Info Cards */
.w0526-card {
  background: var(--w0526-card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w0526-border);
}

.w0526-card h3 {
  font-size: 1.6rem;
  color: var(--w0526-primary);
  margin-bottom: 0.6rem;
}

.w0526-card p {
  font-size: 1.3rem;
  color: var(--w0526-text);
  line-height: 1.6;
}

/* Promo Buttons */
.w0526-promo-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--w0526-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

.w0526-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 12px rgba(0,206,209,0.35);
}

.w0526-promo-link {
  color: var(--w0526-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.w0526-promo-link:hover { color: var(--w0526-secondary); }

/* Winner List */
.w0526-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--w0526-border);
  font-size: 1.3rem;
}

.w0526-winner-name { color: var(--w0526-text-light); }
.w0526-winner-amount { color: var(--w0526-secondary); font-weight: 600; }
.w0526-winner-game { color: var(--w0526-primary); font-size: 1.2rem; }

/* Footer */
.w0526-footer {
  background: var(--w0526-bg-dark);
  padding: 2rem 1rem;
  border-top: 2px solid var(--w0526-primary);
  text-align: center;
}

.w0526-footer p {
  font-size: 1.2rem;
  color: var(--w0526-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.w0526-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.w0526-footer-links a {
  padding: 0.4rem 0.8rem;
  background: var(--w0526-card-bg);
  border-radius: 4px;
  font-size: 1.2rem;
  color: var(--w0526-text-light);
  border: 1px solid var(--w0526-border);
  transition: border-color 0.2s, color 0.2s;
}

.w0526-footer-links a:hover {
  border-color: var(--w0526-primary);
  color: var(--w0526-primary);
}

.w0526-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.w0526-footer-promos button {
  padding: 0.6rem 1.2rem;
  background: var(--w0526-gradient-warm);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.w0526-footer-promos button:hover { transform: scale(1.05); }

.w0526-copyright {
  font-size: 1.1rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Bottom Navigation */
.w0526-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--w0526-bg-dark);
  border-top: 2px solid var(--w0526-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.w0526-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}

.w0526-bottom-btn:hover {
  color: var(--w0526-primary);
  transform: scale(1.08);
}

.w0526-bottom-btn i, .w0526-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.w0526-bottom-btn span {
  font-size: 1rem;
}

.w0526-bottom-active {
  color: var(--w0526-primary) !important;
}

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

/* Mobile: bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 75px; }
}

/* Utility */
.w0526-text-center { text-align: center; }
.w0526-mb-1 { margin-bottom: 1rem; }
.w0526-mb-2 { margin-bottom: 2rem; }
.w0526-mt-1 { margin-top: 1rem; }
.w0526-highlight { color: var(--w0526-secondary); font-weight: 600; }

/* Payment Icons */
.w0526-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.w0526-payment-item {
  background: var(--w0526-card-bg);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  color: var(--w0526-text-light);
  border: 1px solid var(--w0526-border);
}

/* Testimonial */
.w0526-testimonial {
  background: var(--w0526-card-bg);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w0526-secondary);
}

.w0526-testimonial p { font-size: 1.3rem; font-style: italic; }
.w0526-testimonial .w0526-testi-user { color: var(--w0526-primary); font-weight: 600; margin-top: 0.4rem; font-size: 1.2rem; }

/* RTP Table */
.w0526-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.w0526-rtp-table th {
  background: var(--w0526-primary);
  color: var(--w0526-bg-dark);
  padding: 0.5rem;
  text-align: left;
}

.w0526-rtp-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--w0526-border);
}

.w0526-rtp-table tr:nth-child(even) { background: rgba(0,206,209,0.05); }

/* Guide/Review page styles */
.w0526-guide-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.w0526-step-num {
  min-width: 32px;
  height: 32px;
  background: var(--w0526-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.w0526-step-content h3 {
  color: var(--w0526-primary);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.w0526-step-content p {
  font-size: 1.3rem;
  color: var(--w0526-text);
  line-height: 1.5;
}

/* FAQ Accordion */
.w0526-faq-item {
  background: var(--w0526-card-bg);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--w0526-border);
  overflow: hidden;
}

.w0526-faq-q {
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--w0526-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.w0526-faq-a {
  padding: 0 1rem 0.9rem;
  font-size: 1.3rem;
  color: var(--w0526-text);
  line-height: 1.5;
}
