/* tk10 rc - Theme Stylesheet */
/* All classes use prefix "sd57-" for namespace isolation */
/* Color palette: #2D2D2D | #FFD700 | #DCDCDC | #F0E68C | #8A2BE2 */

:root {
  --sd57-primary: #FFD700;
  --sd57-bg: #2D2D2D;
  --sd57-bg-light: #3a3a3a;
  --sd57-text: #DCDCDC;
  --sd57-accent: #F0E68C;
  --sd57-purple: #8A2BE2;
  --sd57-gold-dark: #b8960f;
  --sd57-radius: 8px;
  --sd57-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

/* ===== HEADER ===== */
.sd57-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--sd57-primary);
  max-width: 430px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.sd57-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sd57-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sd57-header-logo span {
  color: var(--sd57-primary);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sd57-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sd57-header-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.sd57-btn-register {
  background: var(--sd57-primary);
  color: #1a1a2e;
}

.sd57-btn-register:hover {
  background: var(--sd57-accent);
  transform: scale(1.05);
}

.sd57-btn-login {
  background: transparent;
  color: var(--sd57-primary);
  border: 1.5px solid var(--sd57-primary);
}

.sd57-btn-login:hover {
  background: rgba(255,215,0,0.15);
}

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

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

.sd57-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a2e, #2D2D2D);
  border-bottom: 2px solid var(--sd57-purple);
  z-index: 9999;
  padding: 1rem 0;
}

.sd57-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--sd57-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,215,0,0.1);
  transition: background 0.2s;
}

.sd57-mobile-menu a:hover {
  background: rgba(138,43,226,0.2);
  color: var(--sd57-primary);
}

.sd57-mobile-menu a span.sd57-menu-icon {
  margin-right: 0.8rem;
  color: var(--sd57-purple);
}

/* ===== MAIN CONTENT ===== */
.sd57-main {
  margin-top: 52px;
  padding-bottom: 2rem;
}

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

.sd57-container {
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== CAROUSEL ===== */
.sd57-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sd57-radius) var(--sd57-radius);
}

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

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

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

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

.sd57-dot-active {
  background: var(--sd57-primary);
  width: 20px;
  border-radius: 4px;
}

/* ===== SECTION ===== */
.sd57-section {
  padding: 2rem 1rem;
}

.sd57-section-title {
  font-size: 1.8rem;
  color: var(--sd57-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sd57-purple);
  font-weight: 700;
}

.sd57-section-title .material-icons {
  vertical-align: middle;
  font-size: 2rem;
  margin-right: 0.4rem;
}

/* ===== GAME GRID ===== */
.sd57-game-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

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

.sd57-game-item:hover {
  transform: translateY(-3px);
}

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

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

.sd57-game-item p {
  font-size: 1.1rem;
  color: var(--sd57-text);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CATEGORY TABS ===== */
.sd57-cat-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.sd57-cat-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  background: var(--sd57-bg-light);
  color: var(--sd57-text);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255,215,0,0.2);
  transition: all 0.2s;
}

.sd57-cat-tab-active, .sd57-cat-tab:hover {
  background: var(--sd57-purple);
  color: #fff;
  border-color: var(--sd57-purple);
}

/* ===== CONTENT BLOCKS ===== */
.sd57-card {
  background: linear-gradient(135deg, #333 0%, #2D2D2D 100%);
  border-radius: var(--sd57-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(138,43,226,0.3);
  box-shadow: var(--sd57-shadow);
}

.sd57-card h3 {
  color: var(--sd57-primary);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.sd57-card p {
  line-height: 1.8rem;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.sd57-card ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.sd57-card li {
  line-height: 1.8rem;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

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

.sd57-promo-text:hover {
  color: var(--sd57-accent);
}

/* ===== CTA BUTTON ===== */
.sd57-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sd57-primary), #e6b800);
  color: #1a1a2e;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.sd57-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

/* ===== BOTTOM NAV ===== */
.sd57-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2D2D2D 100%);
  border-top: 2px solid var(--sd57-purple);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.sd57-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--sd57-text);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 0.3rem;
}

.sd57-bottom-nav-btn:active {
  transform: scale(0.92);
}

.sd57-bottom-nav-btn .sd57-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

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

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

.sd57-bottom-nav-active .sd57-nav-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .sd57-bottom-nav {
    display: flex;
  }
}

/* ===== FOOTER ===== */
.sd57-footer {
  background: #1a1a2e;
  padding: 2rem 1rem;
  border-top: 2px solid var(--sd57-purple);
  text-align: center;
}

.sd57-footer-brand {
  color: var(--sd57-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.8rem;
}

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

.sd57-footer-links a {
  color: var(--sd57-accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(240,230,140,0.3);
  border-radius: 15px;
  transition: all 0.2s;
}

.sd57-footer-links a:hover {
  background: rgba(138,43,226,0.3);
  border-color: var(--sd57-purple);
  color: #fff;
}

.sd57-footer-copy {
  color: rgba(220,220,220,0.5);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.sd57-footer-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.sd57-footer-partners img {
  height: 24px;
  opacity: 0.6;
  filter: grayscale(50%);
}

/* ===== TESTIMONIALS ===== */
.sd57-testimonial {
  background: linear-gradient(135deg, #333, #2D2D2D);
  border-left: 3px solid var(--sd57-purple);
  border-radius: 0 var(--sd57-radius) var(--sd57-radius) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.sd57-testimonial-name {
  color: var(--sd57-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.sd57-testimonial-text {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-top: 0.4rem;
  font-style: italic;
}

/* ===== WINNERS ===== */
.sd57-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,215,0,0.1);
  font-size: 1.2rem;
}

.sd57-winner-name {
  color: var(--sd57-accent);
  font-weight: 600;
}

.sd57-winner-amount {
  color: var(--sd57-primary);
  font-weight: 700;
}

.sd57-winner-game {
  color: rgba(220,220,220,0.7);
  font-size: 1.1rem;
}

/* ===== PAYMENT ===== */
.sd57-payment-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.sd57-payment-item {
  background: var(--sd57-bg-light);
  border-radius: var(--sd57-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--sd57-text);
  border: 1px solid rgba(138,43,226,0.2);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .sd57-bottom-nav { display: none !important; }
  .sd57-menu-btn { display: none; }
  .sd57-mobile-menu { display: none !important; }
  .sd57-menu-overlay { display: none !important; }
}

/* ===== UTILITY ===== */
.sd57-text-center { text-align: center; }
.sd57-mt-1 { margin-top: 1rem; }
.sd57-mb-1 { margin-bottom: 1rem; }
.sd57-mt-2 { margin-top: 2rem; }
.sd57-mb-2 { margin-bottom: 2rem; }
.sd57-hidden { display: none; }
.sd57-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sd57-purple), transparent);
  margin: 1.5rem 0;
}
