/* TopList CMS — public theme */
:root {
  --brand: #0b5cff;
  --brand-dark: #0847c4;
  --cta: #ff7a00;
  --cta-dark: #e56c00;
  --ink: #14213d;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --good: #12a454;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand-logo { max-height: 40px; display: block; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 48px 0 40px; text-align: center; }
.hero--small { padding: 32px 0; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.02em; }
.hero-sub { max-width: 720px; margin: 12px auto 0; opacity: 0.92; }
.hero-updated { margin-top: 14px; font-size: 0.85rem; opacity: 0.75; }

/* Toplist cards */
.toplist { padding: 32px 0 48px; display: grid; gap: 20px; }
.rank-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 24px 30px; box-shadow: 0 2px 8px rgba(20,33,61,0.06); }
.rank-card--top { border: 2px solid var(--cta); box-shadow: 0 6px 22px rgba(255,122,0,0.14); }
.rank-num { position: absolute; top: -12px; left: -12px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.rank-card--top .rank-num { background: var(--cta); }
.rank-badge { position: absolute; top: -13px; left: 48px; background: var(--cta); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 999px; }
.rank-main { display: grid; grid-template-columns: 180px 1fr 190px; gap: 24px; align-items: center; }
.rank-logo-wrap { text-align: center; }
.rank-logo { max-height: 56px; max-width: 160px; object-fit: contain; }
.rank-logo-text { font-weight: 800; font-size: 1.15rem; }
.rank-deal { display: inline-block; margin-top: 10px; background: #e8f7ee; color: var(--good); font-weight: 700; font-size: 0.8rem; padding: 3px 10px; border-radius: 6px; }
.rank-name { font-size: 1.2rem; margin-bottom: 6px; }
.rank-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.rank-features { list-style: none; display: grid; gap: 5px; }
.rank-features li { padding-left: 24px; position: relative; font-size: 0.92rem; }
.rank-features li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.rank-price { margin-top: 10px; font-size: 0.95rem; }
.rank-price s { color: var(--muted); margin-right: 8px; }
.rank-price strong { color: var(--good); font-size: 1.05rem; }
.rank-aside { text-align: center; display: grid; gap: 10px; justify-items: center; }
.rank-score { display: grid; justify-items: center; }
.score-value { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.score-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; margin-top: 4px; }
.score-stars { color: #f6b01e; font-size: 0.95rem; letter-spacing: 2px; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 700; text-align: center; transition: background 0.15s; }
.btn-cta { background: var(--cta); color: #fff; width: 100%; max-width: 190px; }
.btn-cta:hover { background: var(--cta-dark); }
.rank-users { font-size: 0.78rem; color: var(--muted); }

/* Content pages & blocks */
.content-section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; margin: 32px auto 48px; }
.content-page h1 { margin-bottom: 12px; letter-spacing: -0.02em; }
.content-body h2 { margin: 24px 0 8px; }
.content-body h3 { margin: 18px 0 6px; }
.content-body p, .content-body ul, .content-body ol { margin-bottom: 14px; }
.content-body ul, .content-body ol { padding-left: 24px; }
.post-hero-img { border-radius: 10px; margin: 12px 0 6px; }

/* Blog */
.blog-list { padding: 32px 0 48px; display: grid; gap: 20px; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 260px 1fr; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 26px; }
.blog-card-body h2 { font-size: 1.2rem; margin-bottom: 4px; }
.blog-card-body h2 a { color: var(--ink); }
.blog-card-body h2 a:hover { color: var(--brand); }
.blog-date { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.read-more { font-weight: 700; font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6e4; margin-top: 24px; padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer-col strong { color: #fff; margin-bottom: 4px; }
.footer-col a { color: #cfd6e4; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-tagline, .footer-disclosure p { font-size: 0.85rem; opacity: 0.85; }
.copyright { padding-top: 18px; font-size: 0.82rem; opacity: 0.7; text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .rank-main { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .rank-features { justify-items: center; }
  .rank-features li { text-align: left; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img img { max-height: 220px; }
}
