/* jil taylor - core site styles
   All custom classes use the s60d- prefix to avoid collisions.
   Mobile-first layout (max-width: 430px reference). */

:root {
  --s60d-primary: #FFD700;
  --s60d-secondary: #DEB887;
  --s60d-accent: #CD853F;
  --s60d-bg: #2C3E50;
  --s60d-bg-dark: #1a2733;
  --s60d-bg-light: #34495e;
  --s60d-text: #f5f5f5;
  --s60d-text-muted: #c9d1d9;
  --s60d-border: #4a5e72;
  --s60d-success: #2ecc71;
  --s60d-danger: #e74c3c;
  --s60d-gradient: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
  --s60d-gold-gradient: linear-gradient(135deg, #FFD700 0%, #CD853F 100%);
  --s60d-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s60d-radius: 12px;
  --s60d-header-h: 60px;
  --s60d-bottomnav-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", "SolaimanLipi", "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
  background: var(--s60d-bg);
  color: var(--s60d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--s60d-primary); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--s60d-secondary); }

.s60d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.s60d-wrapper { padding-top: var(--s60d-header-h); padding-bottom: calc(var(--s60d-bottomnav-h) + 12px); }

/* ============ Header ============ */
.s60d-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--s60d-header-h);
  background: var(--s60d-bg-dark);
  border-bottom: 2px solid var(--s60d-primary);
  box-shadow: var(--s60d-shadow);
  z-index: 1000;
}
.s60d-header-inner {
  max-width: 430px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.s60d-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.7rem; color: var(--s60d-primary);
}
.s60d-logo img { width: 30px; height: 30px; border-radius: 6px; }
.s60d-logo .s60d-logo-text { white-space: nowrap; }

.s60d-header-actions { display: flex; align-items: center; gap: 8px; }
.s60d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border-radius: 8px; border: none;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.s60d-btn:active { transform: scale(.96); }
.s60d-btn-register { background: var(--s60d-gold-gradient); color: #1a2733; }
.s60d-btn-login { background: transparent; color: var(--s60d-primary); border: 1px solid var(--s60d-primary); }
.s60d-btn-register:hover, .s60d-btn-login:hover { filter: brightness(1.1); color: #1a2733; }

.s60d-menu-btn {
  background: transparent; border: none; color: var(--s60d-primary);
  font-size: 2rem; cursor: pointer; min-width: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile slide menu ============ */
.s60d-mobile-menu {
  position: fixed; top: var(--s60d-header-h); left: 0; right: 0;
  background: var(--s60d-bg-dark);
  border-bottom: 1px solid var(--s60d-border);
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.s60d-mobile-menu.s60d-menu-open { max-height: 480px; box-shadow: var(--s60d-shadow); }
.s60d-mobile-menu-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 12px 16px;
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.s60d-mobile-menu a {
  display: block; padding: 12px 14px;
  color: var(--s60d-text); border-radius: 8px;
  font-size: 1.4rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.s60d-mobile-menu a:hover, .s60d-mobile-menu a:focus {
  background: var(--s60d-bg-light); border-left-color: var(--s60d-primary); color: var(--s60d-primary);
}

/* ============ Hero / Carousel ============ */
.s60d-carousel {
  position: relative; width: 100%; margin: 12px 0 18px;
  border-radius: var(--s60d-radius); overflow: hidden;
  box-shadow: var(--s60d-shadow);
}
.s60d-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.s60d-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.s60d-slide.s60d-slide-active { opacity: 1; }
.s60d-slide img { width: 100%; height: 100%; object-fit: cover; }
.s60d-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.s60d-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.s60d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; border: none; padding: 0;
}
.s60d-dot.s60d-dot-active { background: var(--s60d-primary); width: 22px; border-radius: 4px; }

/* ============ Section titles ============ */
.s60d-section { margin: 22px 0; }
.s60d-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--s60d-primary);
  margin-bottom: 12px; padding-left: 10px;
  border-left: 4px solid var(--s60d-secondary);
}
.s60d-section-title .s60d-title-icon { margin-right: 6px; color: var(--s60d-secondary); }
.s60d-subtitle {
  font-size: 1.55rem; font-weight: 600; color: var(--s60d-secondary);
  margin: 14px 0 8px;
}

/* ============ Game grid ============ */
.s60d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s60d-game-card {
  background: var(--s60d-bg-light); border-radius: 10px;
  padding: 6px; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--s60d-border);
}
.s60d-game-card:hover, .s60d-game-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255,215,0,.25);
  border-color: var(--s60d-primary);
}
.s60d-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; margin-bottom: 4px;
}
.s60d-game-card .s60d-game-name {
  font-size: 1.15rem; color: var(--s60d-text); font-weight: 600;
  line-height: 1.25; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ Category header ============ */
.s60d-cat-header {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
  font-size: 1.7rem; font-weight: 700; color: var(--s60d-primary);
}
.s60d-cat-header .s60d-cat-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--s60d-gold-gradient); color: #1a2733;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.s60d-cat-header .s60d-cat-count {
  margin-left: auto; font-size: 1.2rem; color: var(--s60d-text-muted); font-weight: 500;
}

/* ============ Info / feature boxes ============ */
.s60d-card {
  background: var(--s60d-bg-light); border-radius: var(--s60d-radius);
  padding: 14px; margin: 10px 0; border: 1px solid var(--s60d-border);
}
.s60d-card-title { font-size: 1.5rem; font-weight: 700; color: var(--s60d-primary); margin-bottom: 6px; }
.s60d-card p { color: var(--s60d-text-muted); font-size: 1.35rem; line-height: 1.55; }

.s60d-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.s60d-feature-item {
  background: var(--s60d-bg-light); border-radius: 10px; padding: 12px;
  text-align: center; border: 1px solid var(--s60d-border);
}
.s60d-feature-item .s60d-feature-icon { font-size: 2.2rem; color: var(--s60d-primary); margin-bottom: 6px; }
.s60d-feature-item .s60d-feature-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.s60d-feature-item p { font-size: 1.2rem; color: var(--s60d-text-muted); line-height: 1.4; }

/* ============ Promo / CTA banners ============ */
.s60d-cta {
  background: var(--s60d-gold-gradient); color: #1a2733;
  border-radius: var(--s60d-radius); padding: 16px; text-align: center;
  margin: 16px 0; font-weight: 700;
}
.s60d-cta h3 { font-size: 1.7rem; margin-bottom: 6px; }
.s60d-cta p { font-size: 1.3rem; margin-bottom: 10px; color: #2C3E50; }
.s60d-cta .s60d-btn { background: #2C3E50; color: var(--s60d-primary); padding: 0 22px; }
.s60d-cta .s60d-btn:hover { color: #fff; }

.s60d-promo-link {
  color: var(--s60d-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dotted var(--s60d-secondary);
}
.s60d-promo-link:hover { color: var(--s60d-secondary); }

/* ============ Testimonials ============ */
.s60d-testimonial {
  background: var(--s60d-bg-light); border-radius: 10px; padding: 12px;
  margin: 8px 0; border-left: 3px solid var(--s60d-primary);
}
.s60d-testimonial .s60d-testi-name { font-weight: 700; color: var(--s60d-primary); font-size: 1.3rem; margin-bottom: 4px; }
.s60d-testimonial p { font-size: 1.3rem; color: var(--s60d-text-muted); }
.s60d-testi-stars { color: var(--s60d-primary); font-size: 1.2rem; margin-bottom: 2px; }

/* ============ Payment / winners compact ============ */
.s60d-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.s60d-pill {
  background: var(--s60d-bg-light); border: 1px solid var(--s60d-border);
  border-radius: 20px; padding: 6px 12px; font-size: 1.2rem; color: var(--s60d-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.s60d-pill .s60d-pill-icon { color: var(--s60d-primary); }

.s60d-winner-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--s60d-bg-light); padding: 8px 12px; border-radius: 8px; margin: 6px 0;
}
.s60d-winner-row .s60d-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--s60d-gold-gradient); color: #1a2733;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}
.s60d-winner-row .s60d-winner-info { flex: 1; }
.s60d-winner-row .s60d-winner-name { font-size: 1.25rem; font-weight: 600; }
.s60d-winner-row .s60d-winner-game { font-size: 1.1rem; color: var(--s60d-text-muted); }
.s60d-winner-row .s60d-winner-amount { color: var(--s60d-primary); font-weight: 700; font-size: 1.35rem; }

/* ============ FAQ ============ */
.s60d-faq-item {
  background: var(--s60d-bg-light); border-radius: 8px;
  margin: 8px 0; overflow: hidden; border: 1px solid var(--s60d-border);
}
.s60d-faq-item summary {
  padding: 12px 14px; font-size: 1.35rem; font-weight: 600; color: var(--s60d-primary);
  cursor: pointer; list-style: none;
}
.s60d-faq-item summary::-webkit-details-marker { display: none; }
.s60d-faq-item summary::before { content: "+ "; color: var(--s60d-secondary); }
.s60d-faq-item[open] summary::before { content: "− "; }
.s60d-faq-item p { padding: 0 14px 12px; color: var(--s60d-text-muted); font-size: 1.3rem; line-height: 1.55; }

/* ============ Footer ============ */
.s60d-footer {
  background: var(--s60d-bg-dark); border-top: 2px solid var(--s60d-primary);
  margin-top: 24px; padding: 20px 0 calc(var(--s60d-bottomnav-h) + 24px);
}
.s60d-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 12px; }
.s60d-footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--s60d-primary); margin-bottom: 8px; }
.s60d-footer-desc { font-size: 1.25rem; color: var(--s60d-text-muted); line-height: 1.55; margin-bottom: 14px; }
.s60d-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.s60d-footer-links .s60d-btn { background: var(--s60d-bg-light); color: var(--s60d-primary); border: 1px solid var(--s60d-border); padding: 0 12px; min-height: 34px; }
.s60d-footer-links .s60d-btn:hover { color: var(--s60d-secondary); border-color: var(--s60d-primary); }
.s60d-footer-navlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.s60d-footer-navlinks a { font-size: 1.2rem; color: var(--s60d-text-muted); padding: 4px 0; }
.s60d-footer-navlinks a:hover { color: var(--s60d-primary); }
.s60d-copyright { font-size: 1.15rem; color: var(--s60d-text-muted); text-align: center; padding-top: 10px; border-top: 1px solid var(--s60d-border); }

/* ============ Mobile bottom nav ============ */
.s60d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--s60d-bottomnav-h);
  background: var(--s60d-bg-dark);
  border-top: 2px solid var(--s60d-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.s60d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--s60d-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: color .18s ease, transform .15s ease;
}
.s60d-bottomnav-btn .s60d-bottomnav-icon { font-size: 22px; line-height: 1; }
.s60d-bottomnav-btn .s60d-bottomnav-label { font-size: 1.05rem; line-height: 1; font-weight: 600; }
.s60d-bottomnav-btn:active { transform: scale(.9); }
.s60d-bottomnav-btn:hover, .s60d-bottomnav-btn:focus { color: var(--s60d-primary); }
.s60d-bottomnav-btn.s60d-bottomnav-active { color: var(--s60d-primary); }
.s60d-bottomnav-btn.s60d-bottomnav-active .s60d-bottomnav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 4px rgba(255,215,0,.6));
}

/* Desktop: hide bottom nav, show top menu */
@media (min-width: 769px) {
  .s60d-bottomnav { display: none; }
  .s60d-wrapper { padding-bottom: 24px; }
}

/* Mobile bottom padding so content is never hidden behind nav */
@media (max-width: 768px) {
  .s60d-wrapper { padding-bottom: calc(var(--s60d-bottomnav-h) + 16px); }
}

/* Accessibility focus ring */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--s60d-primary); outline-offset: 2px;
}
