/**
 * Nano Gaming - Core CSS Stylesheet
 * All classes prefixed with sd1e- for namespace isolation
 * Color palette: #0097A7 | #20B2AA | #CC99FF | #262626 | #EE82EE
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --sd1e-primary: #0097A7;
  --sd1e-secondary: #20B2AA;
  --sd1e-accent: #CC99FF;
  --sd1e-dark: #262626;
  --sd1e-highlight: #EE82EE;
  --sd1e-bg: #0a0e17;
  --sd1e-bg-card: #141c2b;
  --sd1e-bg-header: #0d1220;
  --sd1e-text: #e8ecf1;
  --sd1e-text-muted: #8899aa;
  --sd1e-border: #1e2a3a;
  --sd1e-gold: #ffd700;
  --sd1e-radius: 0.8rem;
  --sd1e-radius-sm: 0.5rem;
  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', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--sd1e-text);
  background: var(--sd1e-bg);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sd1e-secondary); text-decoration: none; }
a:hover { color: var(--sd1e-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.sd1e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: var(--sd1e-bg-header);
  border-bottom: 1px solid var(--sd1e-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.sd1e-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.sd1e-header-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sd1e-primary), var(--sd1e-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sd1e-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sd1e-btn-register {
  background: linear-gradient(135deg, var(--sd1e-primary), var(--sd1e-secondary));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--sd1e-radius-sm);
  cursor: pointer;
  min-height: 32px;
}

.sd1e-btn-login {
  background: transparent;
  color: var(--sd1e-accent);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--sd1e-accent);
  border-radius: var(--sd1e-radius-sm);
  cursor: pointer;
  min-height: 32px;
}

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

/* ===== MOBILE MENU ===== */
.sd1e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--sd1e-bg-card);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sd1e-menu-active { right: 0 !important; }

.sd1e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sd1e-overlay-active { opacity: 1; pointer-events: auto; }

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

.sd1e-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.sd1e-menu-links li {
  border-bottom: 1px solid var(--sd1e-border);
}

.sd1e-menu-links a {
  display: block;
  padding: 1.2rem 0;
  color: var(--sd1e-text);
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.sd1e-menu-links a:hover { color: var(--sd1e-accent); }

/* ===== MAIN CONTENT ===== */
.sd1e-main {
  padding-top: 52px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.sd1e-container {
  width: 100%;
  padding: 0 1rem;
}

/* ===== CAROUSEL ===== */
.sd1e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--sd1e-radius);
  margin-bottom: 1.5rem;
}

.sd1e-carousel-track {
  position: relative;
  width: 100%;
  height: 180px;
}

.sd1e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sd1e-slide-active { opacity: 1; }

.sd1e-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

.sd1e-dot-active { background: var(--sd1e-primary); }

/* ===== GAME GRID ===== */
.sd1e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sd1e-text);
  margin: 1.5rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--sd1e-primary);
}

.sd1e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

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

.sd1e-game-item:active { transform: scale(0.95); }

.sd1e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--sd1e-radius-sm);
  object-fit: cover;
  border: 1px solid var(--sd1e-border);
}

.sd1e-game-name {
  font-size: 1.1rem;
  color: var(--sd1e-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.sd1e-card {
  background: var(--sd1e-bg-card);
  border: 1px solid var(--sd1e-border);
  border-radius: var(--sd1e-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sd1e-card h2 {
  font-size: 1.7rem;
  color: var(--sd1e-accent);
  margin-bottom: 1rem;
}

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

.sd1e-card p {
  color: var(--sd1e-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.sd1e-card ul {
  padding-left: 1.5rem;
  color: var(--sd1e-text-muted);
  margin-bottom: 0.8rem;
}

.sd1e-card li {
  line-height: 1.8rem;
  margin-bottom: 0.4rem;
}

/* ===== PROMO BUTTONS ===== */
.sd1e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sd1e-primary), var(--sd1e-highlight));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--sd1e-radius-sm);
  cursor: pointer;
  text-align: center;
  margin: 0.5rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sd1e-promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,151,167,0.4);
}

.sd1e-promo-link {
  color: var(--sd1e-highlight);
  font-weight: 600;
  cursor: pointer;
}

.sd1e-promo-link:hover { color: var(--sd1e-accent); }

/* ===== BOTTOM NAV ===== */
.sd1e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--sd1e-bg-header);
  border-top: 1px solid var(--sd1e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.sd1e-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(--sd1e-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

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

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

.sd1e-bottom-nav-btn:hover,
.sd1e-bottom-nav-btn.sd1e-nav-active {
  color: var(--sd1e-primary);
}

.sd1e-btn-pressed { transform: scale(0.9); }

/* ===== FOOTER ===== */
.sd1e-footer {
  background: var(--sd1e-bg-card);
  border-top: 1px solid var(--sd1e-border);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

.sd1e-footer-brand {
  font-size: 1.4rem;
  color: var(--sd1e-text);
  margin-bottom: 1rem;
  line-height: 1.6rem;
}

.sd1e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.sd1e-footer-links a {
  background: var(--sd1e-bg-header);
  color: var(--sd1e-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--sd1e-radius-sm);
  font-size: 1.2rem;
  border: 1px solid var(--sd1e-border);
}

.sd1e-footer-links a:hover { color: var(--sd1e-accent); border-color: var(--sd1e-accent); }

.sd1e-footer-copy {
  text-align: center;
  color: var(--sd1e-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sd1e-border);
}

/* ===== PARTNER LOGOS ===== */
.sd1e-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.sd1e-partners img {
  height: 24px;
  opacity: 0.6;
  filter: grayscale(0.5);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .sd1e-bottom-nav { display: none; }
  .sd1e-main { padding-bottom: 0; }
}

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

/* ===== UTILITIES ===== */
.sd1e-text-center { text-align: center; }
.sd1e-mt-1 { margin-top: 1rem; }
.sd1e-mt-2 { margin-top: 2rem; }
.sd1e-mb-1 { margin-bottom: 1rem; }
.sd1e-mb-2 { margin-bottom: 2rem; }
.sd1e-hidden { display: none; }

.sd1e-highlight-box {
  background: linear-gradient(135deg, rgba(0,151,167,0.15), rgba(204,153,255,0.1));
  border: 1px solid var(--sd1e-primary);
  border-radius: var(--sd1e-radius);
  padding: 1.2rem;
  margin: 1rem 0;
}

.sd1e-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--sd1e-border);
}

.sd1e-winner-name { font-weight: 600; color: var(--sd1e-accent); }
.sd1e-winner-game { font-size: 1.2rem; color: var(--sd1e-text-muted); }
.sd1e-winner-amount { margin-left: auto; color: var(--sd1e-gold); font-weight: 700; }

.sd1e-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sd1e-border);
}

.sd1e-faq-q {
  font-weight: 600;
  color: var(--sd1e-text);
  margin-bottom: 0.5rem;
}

.sd1e-faq-a {
  color: var(--sd1e-text-muted);
  line-height: 1.6rem;
}

.sd1e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sd1e-payment-item {
  background: var(--sd1e-bg-header);
  border: 1px solid var(--sd1e-border);
  border-radius: var(--sd1e-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--sd1e-text-muted);
}

.sd1e-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.sd1e-rtp-label { width: 8rem; font-size: 1.2rem; color: var(--sd1e-text-muted); }

.sd1e-rtp-track {
  flex: 1;
  height: 8px;
  background: var(--sd1e-bg-header);
  border-radius: 4px;
  overflow: hidden;
}

.sd1e-rtp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sd1e-primary), var(--sd1e-highlight));
}

.sd1e-rtp-val { font-size: 1.2rem; color: var(--sd1e-gold); font-weight: 600; width: 4rem; text-align: right; }
