/* LottoCoins.org — theme stylesheet */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #1a1c2e;
  --text-muted: #5b6073;
  --border: #e4e6ef;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-soft: #ede9fe;
  --gold: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--text);
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--text); }

.lang-switcher {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.lang-switcher a {
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.lang-switcher a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.lang-switcher a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Main */
.site-main { padding: 40px 0 64px; min-height: 60vh; }

/* Hero */
.hero {
  padding: 32px 0 8px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Section headings */
h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 40px 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

/* Category list */
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
}
.category-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.category-list .count {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0 8px;
  font-size: .78rem;
  font-weight: 700;
}

/* Article cards */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); }

.excerpt {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: auto;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .76rem;
}
.badge:hover { text-decoration: none; }

.read-more { font-weight: 600; font-size: .9rem; }

/* Single article */
.single { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 24px; }
.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.article-header .meta { margin-top: 0; }
.lead { color: var(--text-muted); font-size: 1.05rem; }

/* Table of contents */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.toc-inner { margin-top: 10px; }
.toc-inner nav ul { margin: 0; padding-left: 18px; }
.toc-inner a { color: var(--text-muted); font-size: .92rem; }
.toc-inner a:hover { color: var(--accent); }

/* Article content */
.content {
  font-size: 1.02rem;
  color: #262a3d;
}
.content h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
  letter-spacing: -.015em;
}
.content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.content p { margin: 0 0 16px; }
.content a { text-decoration: underline; text-underline-offset: 2px; }
.content ul, .content ol { padding-left: 24px; margin: 0 0 16px; }
.content li { margin-bottom: 6px; }
.content blockquote {
  margin: 0 0 16px;
  padding: 4px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}
.content img { max-width: 100%; border-radius: 8px; }
.content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .9em;
}
.content pre {
  background: #0f1222;
  color: #e8eaf6;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.content pre code { background: transparent; color: inherit; }

/* FAQ */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}
.faq-item[open] summary::before { content: "–"; }
.faq-answer {
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 80px 0;
}
.error-404 h1 {
  font-size: 6rem;
  margin: 0;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-404 p { color: var(--text-muted); font-size: 1.1rem; }
.btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.btn:hover { background: var(--accent-strong); color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-inner p { margin: 0; }
.footer-nav { display: flex; gap: 16px; }

/* Responsive */
@media (max-width: 640px) {
  .header-inner { gap: 14px; }
  .site-nav { margin-left: 0; width: 100%; order: 3; }
  .lang-switcher { margin-left: auto; }
  .article-list { grid-template-columns: 1fr; }
}

