/* ============================================================
   SOLDATSEIN BLOG — Design System
   Dark Mode Only · General Sans · Gold Accent
   ============================================================ */

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

:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #181818;
  --border:      rgba(255,255,255,0.08);
  --fg:          #f0f0f0;
  --muted-fg:    #888;
  --gold:        #E5B800;
  --gold-dark:   #c79d00;
  --gold-subtle: rgba(229,184,0,0.08);
  --gold-border: rgba(229,184,0,0.2);
  --font:        'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --max-w:       720px;
  --max-w-wide:  1080px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---- CONTAINER ---- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-wide { width: 100%; max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }

/* ---- TYPOGRAPHY ---- */
.gold { color: var(--gold); }

/* ---- HEADER ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
}
.header-inner {
  max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; }
.header-logo img { width: 24px; height: 24px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { font-size: 0.85rem; color: var(--muted-fg); font-weight: 500; transition: color 0.2s; }
.header-nav a:hover { color: var(--fg); }
.header-nav a.active { color: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  font-family: var(--font); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; border: none; transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); }
.btn-sm { font-size: 0.78rem; padding: 0.45rem 0.9rem; }

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */

.blog-hero {
  padding: 7rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.blog-hero p { font-size: 1rem; color: var(--muted-fg); max-width: 520px; margin: 0 auto; }

/* Category Filter */
.blog-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; padding: 1.5rem 0; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.85rem;
  border-radius: 99px; border: 1px solid var(--border);
  color: var(--muted-fg); cursor: pointer; transition: all 0.2s;
  background: transparent;
}
.filter-tag:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }
.filter-tag.active { background: var(--gold-subtle); border-color: var(--gold-border); color: var(--gold); }

/* Article Cards */
.blog-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; padding: 2rem 0 4rem;
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.article-card:hover { border-color: rgba(229,184,0,0.25); transform: translateY(-2px); }

.card-image {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--surface-2);
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; color: var(--muted-fg); margin-bottom: 0.75rem;
}
.card-category {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold);
  background: var(--gold-subtle); border: 1px solid var(--gold-border);
  border-radius: 99px; padding: 0.15rem 0.6rem;
}
.card-body h2 {
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.card-body h2 a { transition: color 0.2s; }
.card-body h2 a:hover { color: var(--gold); }
.card-excerpt {
  font-size: 0.85rem; color: var(--muted-fg); line-height: 1.55;
  margin-bottom: 1rem; flex: 1;
}
.card-read {
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* Featured Card (first article) */
.article-card.featured { grid-column: 1 / -1; }
.article-card.featured .card-image { height: 280px; }
.article-card.featured .card-body h2 { font-size: 1.4rem; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-hero {
  padding: 7rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.article-hero .article-category {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold);
  background: var(--gold-subtle); border: 1px solid var(--gold-border);
  border-radius: 99px; padding: 0.2rem 0.75rem; margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: 2.2rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8rem; color: var(--muted-fg);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-fg); }

/* Article Content */
.article-content {
  padding: 2.5rem 0 4rem;
}
.article-content h2 {
  font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem;
  margin-bottom: 1rem; letter-spacing: -0.02em; line-height: 1.25;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.article-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 {
  font-size: 1.1rem; font-weight: 700; margin-top: 2rem;
  margin-bottom: 0.75rem; line-height: 1.3;
}
.article-content p {
  font-size: 0.95rem; color: rgba(240,240,240,0.9);
  line-height: 1.75; margin-bottom: 1.25rem; max-width: 65ch;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem; padding-left: 1.5rem;
}
.article-content li {
  font-size: 0.95rem; color: rgba(240,240,240,0.9);
  line-height: 1.7; margin-bottom: 0.4rem;
}
.article-content strong { color: var(--fg); font-weight: 600; }

/* Table of Contents */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.75rem;
}
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.4rem 0; font-size: 0.88rem; color: var(--muted-fg);
  transition: color 0.2s; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.toc li a:hover { color: var(--gold); }
.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.2);
  min-width: 1.5rem;
}

/* Leo Tip Box */
.leo-tip {
  background: var(--gold-subtle); border: 1px solid var(--gold-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin: 1.5rem 0; display: flex; gap: 0.75rem;
}
.leo-tip-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.5; }
.leo-tip-content { font-size: 0.88rem; color: rgba(240,240,240,0.9); line-height: 1.6; }
.leo-tip-content strong { color: var(--gold); }

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--fg); font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; text-align: left;
  padding: 1rem 2rem 1rem 0; cursor: pointer;
  position: relative; line-height: 1.4;
}
.faq-q::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 1.2rem; font-weight: 300;
  color: var(--muted-fg); transition: transform 0.2s;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a.open { max-height: 500px; }
.faq-a p { padding-bottom: 1rem; font-size: 0.88rem; color: var(--muted-fg); line-height: 1.65; }

/* CTA Box */
.article-cta {
  background: var(--surface); border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; margin-top: 2.5rem;
}
.article-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-cta p { font-size: 0.88rem; color: var(--muted-fg); margin-bottom: 1.25rem; line-height: 1.6; max-width: 100%; }
.article-cta .store-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.store-btn { min-width: 140px; }
.store-icon { flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-label { font-size: 0.6rem; font-weight: 500; opacity: 0.8; }
.store-name { font-size: 0.85rem; font-weight: 700; }

/* Related Articles */
.related-section {
  padding: 3rem 0; border-top: 1px solid var(--border);
}
.related-section h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1.25rem;
}
.related-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.related-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s;
}
.related-card:hover { border-color: rgba(229,184,0,0.25); }
.related-card .r-num {
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.2);
  min-width: 1.5rem;
}
.related-card .r-text h4 { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.related-card .r-text span { font-size: 0.72rem; color: var(--muted-fg); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--muted-fg); transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .blog-hero h1 { font-size: 3rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .article-card.featured { display: grid; grid-template-columns: 1.2fr 1fr; }
  .article-card.featured .card-image { height: 100%; min-height: 280px; }
  .article-hero h1 { font-size: 2.8rem; }
  .related-grid { flex-direction: row; gap: 1rem; }
  .related-card { flex: 1; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---- STORE HEADER BUTTONS ---- */
.store-header-btn { font-size: 0.72rem !important; padding: 0.35rem 0.7rem !important; }

/* AUTHORS SECTION */
.authors-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}
.authors-section .section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}
.authors-section .section-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--fg);
}
.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}
.author-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.15s;
}
.author-card:hover {
  border-color: rgba(229,184,0,0.25);
  transform: translateY(-2px);
}
.author-rank {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.author-desc {
  font-size: 0.82rem;
  color: var(--muted-fg);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .article-hero h1 { font-size: 1.7rem; }
  .header-nav span.nav-text { display: none; }
  .store-header-btn { font-size: 0.65rem !important; padding: 0.3rem 0.55rem !important; }
  .header-nav { gap: 0.75rem; }
  .authors-grid { grid-template-columns: 1fr; max-width: 320px; }
}
