/*!
 * nustar app - theme stylesheet
 * Mobile-first gaming website styles
 * All custom classes use v15d- prefix for namespace isolation
 * Color palette: #CED4DA | #3A3A3A | #D8BFD8 | #FF69B4 | #CC99FF | #800080
 */

:root {
  --v15d-primary: #800080;
  --v15d-primary-light: #CC99FF;
  --v15d-accent: #FF69B4;
  --v15d-thistle: #D8BFD8;
  --v15d-silver: #CED4DA;
  --v15d-bg: #3A3A3A;
  --v15d-bg-dark: #2a2a2a;
  --v15d-bg-darker: #1f1f1f;
  --v15d-text: #CED4DA;
  --v15d-text-light: #ffffff;
  --v15d-text-muted: #b9a7c4;
  --v15d-card-bg: #4a4a4a;
  --v15d-border: rgba(204, 153, 255, 0.25);
  --v15d-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --v15d-radius: 12px;
  --v15d-header-h: 56px;
  --v15d-bottomnav-h: 62px;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: var(--v15d-text);
  background: linear-gradient(160deg, var(--v15d-bg-darker) 0%, var(--v15d-bg) 60%, #4a2a4a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--v15d-primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }

.v15d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v15d-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.v15d-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--v15d-header-h);
  background: linear-gradient(90deg, var(--v15d-bg-darker), #4a2a4a);
  border-bottom: 1px solid var(--v15d-border);
  z-index: 1000;
  display: flex; align-items: center;
  box-shadow: var(--v15d-shadow);
}
.v15d-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.v15d-logo { display: flex; align-items: center; gap: 0.6rem; }
.v15d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v15d-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--v15d-text-light); letter-spacing: 0.3px; }
.v15d-logo-text span { color: var(--v15d-accent); }

.v15d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v15d-btn {
  border: none; border-radius: 20px;
  padding: 0.6rem 1.2rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.v15d-btn:active { transform: scale(0.96); }
.v15d-btn-login { background: transparent; color: var(--v15d-text-light); border: 1px solid var(--v15d-primary-light); }
.v15d-btn-register { background: linear-gradient(90deg, var(--v15d-accent), var(--v15d-primary)); color: #fff; box-shadow: 0 2px 10px rgba(255,105,180,0.4); }

.v15d-menu-toggle {
  background: transparent; border: none; color: var(--v15d-text-light);
  font-size: 2rem; cursor: pointer; padding: 0 0.4rem; min-width: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile slide-down menu ===== */
.v15d-mobile-menu {
  position: fixed; top: var(--v15d-header-h); left: 0; right: 0;
  background: var(--v15d-bg-darker);
  border-bottom: 1px solid var(--v15d-border);
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  z-index: 9999;
}
.v15d-mobile-menu.v15d-menu-open { max-height: 460px; box-shadow: var(--v15d-shadow); }
.v15d-mobile-menu-inner { width: 100%; max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem 1rem; }
.v15d-mobile-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--v15d-text-light);
  border-bottom: 1px solid rgba(204,153,255,0.12); font-size: 1.4rem; font-weight: 600;
}
.v15d-mobile-menu a:active { background: rgba(204,153,255,0.08); }
.v15d-mobile-menu a i { color: var(--v15d-accent); margin-right: 0.6rem; width: 20px; text-align: center; }

/* ===== Main ===== */
main { padding-top: calc(var(--v15d-header-h) + 8px); padding-bottom: 1rem; }

/* ===== Hero carousel ===== */
.v15d-carousel { position: relative; width: 100%; max-width: 430px; margin: 0 auto 1.4rem; border-radius: var(--v15d-radius); overflow: hidden; box-shadow: var(--v15d-shadow); }
.v15d-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.v15d-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.v15d-carousel-slide.v15d-slide-active { opacity: 1; }
.v15d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v15d-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 1.4rem; font-weight: 700;
}
.v15d-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.v15d-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.v15d-carousel-dot.v15d-dot-active { background: var(--v15d-accent); width: 18px; border-radius: 4px; }

/* ===== Section ===== */
.v15d-section { padding: 1.4rem 0; }
.v15d-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--v15d-text-light);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.v15d-section-title i { color: var(--v15d-accent); }
.v15d-section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--v15d-primary-light), transparent); margin-left: 0.6rem; border-radius: 2px; }

/* H1 */
.v15d-h1 { font-size: 2.1rem; font-weight: 800; color: var(--v15d-text-light); line-height: 1.3; margin-bottom: 1rem; }
.v15d-h1 span { color: var(--v15d-accent); }
.v15d-h2 { font-size: 1.7rem; font-weight: 700; color: var(--v15d-text-light); margin: 1.2rem 0 0.8rem; }
.v15d-h3 { font-size: 1.5rem; font-weight: 700; color: var(--v15d-primary-light); margin: 1rem 0 0.6rem; }
.v15d-lead { font-size: 1.4rem; color: var(--v15d-text-muted); line-height: 1.5; }

/* ===== Filter chips ===== */
.v15d-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.v15d-filter-bar::-webkit-scrollbar { display: none; }
.v15d-filter-chip {
  flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 16px;
  background: var(--v15d-card-bg); color: var(--v15d-text); border: 1px solid transparent;
  font-size: 1.25rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.v15d-filter-chip.v15d-chip-active { background: linear-gradient(90deg, var(--v15d-accent), var(--v15d-primary)); color: #fff; border-color: var(--v15d-accent); }

/* ===== Game grid ===== */
.v15d-game-group { margin-bottom: 1.6rem; }
.v15d-game-group-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.v15d-game-group-head i { color: var(--v15d-accent); font-size: 1.6rem; }
.v15d-game-group-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--v15d-text-light); }
.v15d-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.v15d-game-card {
  background: var(--v15d-card-bg); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--v15d-border); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v15d-game-card:active { transform: scale(0.95); }
.v15d-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v15d-game-card-name { padding: 0.4rem 0.3rem; font-size: 1.05rem; color: var(--v15d-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* ===== Cards / modules ===== */
.v15d-card {
  background: var(--v15d-card-bg); border-radius: var(--v15d-radius);
  padding: 1.2rem; margin-bottom: 1.2rem; border: 1px solid var(--v15d-border);
  box-shadow: var(--v15d-shadow);
}
.v15d-card p { font-size: 1.35rem; color: var(--v15d-text); line-height: 1.5; margin-bottom: 0.6rem; }
.v15d-card p:last-child { margin-bottom: 0; }
.v15d-card ul { padding-left: 1.4rem; }
.v15d-card li { font-size: 1.3rem; color: var(--v15d-text); line-height: 1.5; margin-bottom: 0.4rem; }
.v15d-promo-link { color: var(--v15d-accent); font-weight: 700; cursor: pointer; }
.v15d-promo-link:hover { text-decoration: underline; }

/* CTA / Play Now */
.v15d-cta { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; padding: 1.4rem; text-align: center; background: linear-gradient(135deg, rgba(255,105,180,0.15), rgba(128,0,128,0.25)); border-radius: var(--v15d-radius); border: 1px solid var(--v15d-border); margin-bottom: 1.2rem; }
.v15d-cta h3 { color: var(--v15d-text-light); }
.v15d-cta p { color: var(--v15d-text-muted); font-size: 1.3rem; }
.v15d-btn-cta { background: linear-gradient(90deg, var(--v15d-accent), var(--v15d-primary)); color: #fff; padding: 0.9rem 2rem; font-size: 1.5rem; font-weight: 800; border-radius: 26px; border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(255,105,180,0.5); min-height: 44px; }
.v15d-btn-cta:active { transform: scale(0.96); }

/* ===== Stats / RTP ===== */
.v15d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.v15d-stat-item { background: var(--v15d-bg-dark); border-radius: 10px; padding: 0.8rem; text-align: center; border: 1px solid var(--v15d-border); }
.v15d-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--v15d-accent); }
.v15d-stat-label { font-size: 1.1rem; color: var(--v15d-text-muted); margin-top: 0.2rem; }

/* ===== Testimonials ===== */
.v15d-testimonial { background: var(--v15d-bg-dark); border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v15d-accent); }
.v15d-testimonial-name { font-size: 1.3rem; font-weight: 700; color: var(--v15d-primary-light); margin-bottom: 0.3rem; }
.v15d-testimonial-text { font-size: 1.25rem; color: var(--v15d-text); line-height: 1.5; }
.v15d-stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 0.2rem; }

/* ===== Payment methods ===== */
.v15d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.v15d-pay-item { background: var(--v15d-bg-dark); border-radius: 8px; padding: 0.8rem 0.4rem; text-align: center; border: 1px solid var(--v15d-border); }
.v15d-pay-item i { font-size: 2rem; color: var(--v15d-primary-light); }
.v15d-pay-item span { display: block; font-size: 1.05rem; color: var(--v15d-text-muted); margin-top: 0.3rem; }

/* ===== Winners ===== */
.v15d-winner { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem; background: var(--v15d-bg-dark); border-radius: 8px; margin-bottom: 0.5rem; border: 1px solid var(--v15d-border); }
.v15d-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--v15d-accent), var(--v15d-primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.v15d-winner-info { flex: 1; min-width: 0; }
.v15d-winner-name { font-size: 1.2rem; font-weight: 700; color: var(--v15d-text-light); }
.v15d-winner-game { font-size: 1.05rem; color: var(--v15d-text-muted); }
.v15d-winner-amount { font-size: 1.3rem; font-weight: 800; color: var(--v15d-accent); }

/* ===== App download ===== */
.v15d-app-cta { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: linear-gradient(135deg, rgba(204,153,255,0.18), rgba(128,0,128,0.25)); border-radius: var(--v15d-radius); border: 1px solid var(--v15d-border); margin-bottom: 1.2rem; }
.v15d-app-icon { font-size: 3.2rem; color: var(--v15d-accent); }
.v15d-app-text { flex: 1; }
.v15d-app-text h3 { color: var(--v15d-text-light); margin: 0 0 0.2rem; }
.v15d-app-text p { color: var(--v15d-text-muted); font-size: 1.2rem; }

/* ===== Footer ===== */
.v15d-footer { background: var(--v15d-bg-darker); border-top: 1px solid var(--v15d-border); padding: 1.6rem 0 calc(var(--v15d-bottomnav-h) + 1.4rem); margin-top: 1.4rem; }
.v15d-footer-inner { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v15d-footer-about { font-size: 1.25rem; color: var(--v15d-text-muted); line-height: 1.5; margin-bottom: 1rem; }
.v15d-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.v15d-footer-links a { font-size: 1.2rem; color: var(--v15d-primary-light); }
.v15d-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v15d-footer-promo button { background: linear-gradient(90deg, var(--v15d-accent), var(--v15d-primary)); color: #fff; border: none; border-radius: 16px; padding: 0.5rem 1rem; font-size: 1.2rem; font-weight: 700; cursor: pointer; min-height: 36px; }
.v15d-footer-copy { font-size: 1.1rem; color: var(--v15d-text-muted); border-top: 1px solid rgba(204,153,255,0.12); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.v15d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--v15d-bottomnav-h);
  background: linear-gradient(90deg, var(--v15d-bg-darker), #4a2a4a);
  border-top: 1px solid var(--v15d-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.v15d-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v15d-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1.05rem; font-weight: 600;
}
.v15d-bottom-nav-btn i, .v15d-bottom-nav-btn .material-icons-outlined, .v15d-bottom-nav-btn .ionicon { font-size: 24px; }
.v15d-bottom-nav-btn:active { transform: scale(0.92); }
.v15d-bottom-nav-btn.v15d-nav-active { color: var(--v15d-accent); }
.v15d-bottom-nav-btn.v15d-nav-active i { color: var(--v15d-accent); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .v15d-bottom-nav { display: none; }
  .v15d-menu-toggle { display: none; }
  .v15d-header-inner, .v15d-container, .v15d-footer-inner, .v15d-mobile-menu-inner { max-width: 768px; }
  .v15d-carousel { max-width: 768px; }
  .v15d-game-grid { grid-template-columns: repeat(8, 1fr); }
  .v15d-stats { grid-template-columns: repeat(4, 1fr); }
  .v15d-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .v15d-footer { padding-bottom: 1.6rem; }
}

/* Mobile bottom padding so content isn't hidden behind bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v15d-bottomnav-h) + 20px); }
}
