/* ==========================================================================
   lotterylisting.com — Crypto Lottery affiliate theme
   Cool dark design with gold + green accents
   ========================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-soft: #0e1424;
  --surface: #12182b;
  --surface-2: #18203a;
  --surface-3: #1f2947;
  --border: rgba(148, 163, 199, 0.14);
  --text: #e8ecf6;
  --text-muted: #9aa5c0;
  --text-faint: #6b7694;

  --gold: #f6b93b;
  --gold-strong: #f5a623;
  --gold-soft: rgba(246, 185, 59, 0.14);
  --green: #2dd4a7;
  --green-strong: #22c55e;
  --green-soft: rgba(45, 212, 167, 0.14);
  --blue: #6ea8fe;
  --red: #f87171;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --container: 1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(45, 212, 167, 0.08), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(246, 185, 59, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
  color: #1a1404;
  box-shadow: 0 12px 30px -10px rgba(246, 185, 59, 0.45);
}
.btn-primary:hover { color: #1a1404; box-shadow: 0 16px 34px -10px rgba(246, 185, 59, 0.55); }

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-strong) 100%);
  color: #04150f;
  box-shadow: 0 12px 30px -10px rgba(45, 212, 167, 0.45);
}
.btn-green:hover { color: #04150f; box-shadow: 0 16px 34px -10px rgba(45, 212, 167, 0.55); }

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1a1404;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 20px -8px rgba(246, 185, 59, 0.6);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.94rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  margin-left: 6px;
  border-left: 1px solid var(--border);
}
.lang-switcher a {
  min-width: 34px;
  padding: 6px 9px;
  text-align: center;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lang-switcher a:hover { color: var(--text); background: var(--surface-2); }
.lang-switcher a.active { color: #1a1404; background: var(--gold); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 78px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 80% 10%, rgba(45, 212, 167, 0.16), transparent 60%),
    radial-gradient(600px 300px at 12% 0%, rgba(246, 185, 59, 0.14), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(246, 185, 59, 0.25);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 10%, #ffd97a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.16rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 46px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 1.6rem; }
.section-head p { color: var(--text-muted); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Cards grid
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 185, 59, 0.35);
  box-shadow: var(--shadow);
}
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-faint); margin-bottom: 10px; flex-wrap: wrap; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.35; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.card__foot { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Article cards (used in lists / home)
   -------------------------------------------------------------------------- */
.article-card__category {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-card .card__meta { gap: 6px; }

/* --------------------------------------------------------------------------
   Affiliate cards
   -------------------------------------------------------------------------- */
.affiliate-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.affiliate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 167, 0.4);
  box-shadow: var(--shadow);
}
.affiliate-card__badge {
  position: absolute;
  top: -12px;
  left: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #04150f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -8px rgba(45, 212, 167, 0.7);
}
.affiliate-card__top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.affiliate-card__logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
}
.affiliate-card__name { font-size: 1.14rem; margin-bottom: 2px; }
.affiliate-card__rating { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-muted); }
.affiliate-card__bonus {
  background: var(--gold-soft);
  border: 1px solid rgba(246, 185, 59, 0.22);
  color: var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.affiliate-card__desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.affiliate-card__coins { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.coin {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.affiliate-card__actions { display: flex; gap: 10px; margin-top: auto; }
.affiliate-card__actions .btn { flex: 1; }

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--surface-3);
}
.stars__fill {
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 40px;
  padding: 40px 0 60px;
}
.article__header { margin-bottom: 26px; }
.article__header .card__meta { margin: 14px 0; }
.article__header h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 12px; }
.article__description { font-size: 1.08rem; color: var(--text-muted); }

.content {
  font-size: 1.02rem;
}
.content > * + * { margin-top: 1.1em; }
.content h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border);
}
.content h3 { font-size: 1.18rem; margin-top: 1.4em; }
.content p { color: #cdd5ea; }
.content a { border-bottom: 1px solid rgba(110, 168, 254, 0.4); }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 0.4em 0; }
.content blockquote {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.content code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}
.content img { border-radius: var(--radius); border: 1px solid var(--border); }

/* Sidebar */
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.sidebar__box h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-muted); font-size: 0.9rem; }
.toc a:hover { color: var(--gold); }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq__answer { padding: 14px 18px; color: var(--text-muted); font-size: 0.95rem; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(246, 185, 59, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}
.cta-box h3 { margin-bottom: 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Category / term tiles
   -------------------------------------------------------------------------- */
.category-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.category-tile:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.category-tile__count {
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 4px 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 12px;
}
.pagination .active, .pagination a:hover { background: var(--gold); color: #1a1404; border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 44px 0 30px;
}
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.site-footer a { color: var(--text-muted); display: block; margin: 7px 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .disclosure {
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  line-height: 1.6;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page { padding: 90px 0; text-align: center; }
.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.error-page h1 { font-size: 1.8rem; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2, .category-grid { grid-template-columns: 1fr; }
  .site-header__inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
  .lang-switcher { margin-left: auto; border-left: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
}




