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

:root {
  --bg: #0d0f14;
  --surface: #161922;
  --surface2: #1e2230;
  --border: #2a2f42;
  --accent: #ff6b2b;
  --text: #e8eaf0;
  --text-muted: #8891a8;
  --text-dim: #5a6278;
  --radius: 10px;
  --max-w: 1200px;
}

body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.site-logo { font-size: 20px; font-weight: 900; color: var(--accent); letter-spacing: -0.5px; white-space: nowrap; }
.site-logo span { color: var(--text); }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--text); background: var(--surface2); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity .2s; }
.nav-cta:hover { opacity: .85; }

/* ── Hero ── */
.hero-section { padding: 64px 0; background: linear-gradient(135deg, #0d0f14 0%, #161922 100%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-cat { margin-bottom: 16px; display: inline-block; }
.hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 16px; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.hero-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.hero-btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: opacity .2s; }
.hero-btn:hover { opacity: .85; }
.hero-img-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); max-height: 400px; }
.hero-img-wrap img { width: 100%; height: 400px; object-fit: cover; }

/* ── Section headers ── */
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.section-header h2 { font-size: 22px; font-weight: 800; }
.section-header a { font-size: 14px; color: var(--accent); font-weight: 600; }

/* ── Cards ── */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: #3a4060; transform: translateY(-3px); }
.article-card.featured .card-title { font-size: 20px; }

.card-img-link { display: block; }
.card-img-wrap { position: relative; }
.cat-stripe { height: 4px; width: 100%; }
.card-img-wrap img { width: 100%; height: 200px; object-fit: cover; display: block; }
.img-placeholder { height: 180px; background: linear-gradient(135deg, var(--surface2), color-mix(in srgb, var(--c) 15%, var(--surface2))); display: flex; align-items: center; justify-content: center; font-size: 40px; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.brand-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.card-date { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.read-time { color: var(--text-dim); }
.read-more { color: var(--accent); font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* ── Single Article ── */
.article-hero { min-height: 420px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; }
.article-hero-overlay { background: linear-gradient(to top, rgba(13,15,20,.98) 0%, rgba(13,15,20,.7) 60%, rgba(13,15,20,.2) 100%); width: 100%; padding: 60px 0 40px; }
.article-hero-meta { display: flex; gap: 8px; margin-bottom: 16px; }
.article-title { font-size: clamp(26px, 4vw, 44px); font-weight: 900; line-height: 1.15; letter-spacing: -0.5px; max-width: 800px; margin-bottom: 16px; }
.article-byline { font-size: 14px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 48px 24px; }
.article-body { min-width: 0; }
.article-lead { font-size: 19px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); font-family: 'Merriweather', Georgia, serif; font-style: italic; }

.article-content { font-size: 16px; line-height: 1.8; color: #d0d4e0; }
.article-content h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; color: var(--text); letter-spacing: -0.3px; }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 16px 20px; background: var(--surface); margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-muted); }
.article-content .spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-content .spec-table th { background: var(--surface2); padding: 10px 16px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.article-content .spec-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.article-content .spec-table tr:last-child td { border-bottom: none; }
.article-content .callout { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.article-content .callout-title { font-weight: 700; margin-bottom: 8px; }

.affiliate-disclosure { margin-top: 40px; padding: 16px 20px; background: var(--surface); border-radius: 8px; font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); }

/* ── Sidebar ── */
.article-sidebar { }
.verdict-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; position: sticky; top: 80px; }
.verdict-header { padding: 12px 16px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.verdict-body { padding: 20px; }
.verdict-score { font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 12px; }
.verdict-score span { font-size: 22px; color: var(--text-muted); }
.verdict-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.pros-cons { list-style: none; margin: 12px 0; font-size: 13px; }
.pros-cons.pros li::before { content: '✓ '; color: #22c55e; font-weight: 700; }
.pros-cons.cons li::before { content: '✗ '; color: #ef4444; font-weight: 700; }
.pros-cons li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.pros-cons li:last-child { border-bottom: none; }
.buy-btn { display: block; margin-top: 16px; background: var(--accent); color: #fff; text-align: center; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: opacity .2s; }
.buy-btn:hover { opacity: .85; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.sidebar-widget h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--surface2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; font-size: 12px; color: var(--text-muted); }

/* ── Category Page ── */
.category-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 0; }
.category-hero h1 { font-size: 36px; font-weight: 900; }
.category-hero p { color: var(--text-muted); margin-top: 8px; }

/* ── Related ── */
.related-section { background: var(--surface); border-top: 1px solid var(--border); padding-bottom: 60px; }

/* ── Footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 0; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; font-size: 13px; color: var(--text-dim); }

/* ── Sources Page ── */
.sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
.source-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.source-card:hover { border-color: #3a4060; }
.source-card-header { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface2); }
.source-card-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.source-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-cat-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.source-link { font-size: 12px; color: var(--accent); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.source-link:hover { text-decoration: underline; }
.source-headlines { list-style: none; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.source-headlines li { font-size: 13px; line-height: 1.4; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.source-headlines li:last-child { border-bottom: none; padding-bottom: 0; }
.source-headlines a { color: var(--text-muted); transition: color .15s; }
.source-headlines a:hover { color: var(--text); }
.source-no-items { padding: 12px 16px; font-size: 13px; color: var(--text-dim); }

/* ── Suggest Section ── */
.suggest-section { background: var(--surface); border-top: 1px solid var(--border); margin-top: 60px; padding: 56px 0; }
.suggest-section-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.suggest-section-copy h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.suggest-section-copy p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.suggest-meta-points { display: flex; flex-direction: column; gap: 8px; }
.suggest-meta-points span { font-size: 13px; color: var(--text-muted); }
.suggest-meta-points span::before { color: #22c55e; margin-right: 2px; }
.suggest-form-wrap { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.suggest-form-row { display: flex; gap: 14px; margin-bottom: 0; }
.suggest-form-row .form-field { flex: 1; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; padding: 9px 12px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none; transition: border-color .2s; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field select option { background: var(--surface2); }
.suggest-btn { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 11px 24px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; }
.suggest-btn:hover { opacity: .85; }
.suggest-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); border-radius: 8px; padding: 16px; color: #22c55e; font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .suggest-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .suggest-form-row { flex-direction: column; gap: 0; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner, .article-layout, .footer-inner { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .site-nav { display: none; }
  .article-sidebar { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   HAMBURGER MENU
   ══════════════════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background .2s;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.hamburger:hover { background: var(--surface2); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════
   PUSH NOTIFICATION BANNER
   ══════════════════════════════════════════════════════════════════ */
.push-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.push-banner-actions { display: flex; gap: 10px; }
.push-enable-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: opacity .2s;
}
.push-enable-btn:hover { opacity: .85; }
.push-dismiss-btn {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: color .2s;
}
.push-dismiss-btn:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════════
   COMMENTS SECTION
   ══════════════════════════════════════════════════════════════════ */
.comments-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.comment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.comment-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.comment-meta strong { color: var(--text); }
.comment-date { color: var(--text-dim); }
.comment-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.comments-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 0;
}
.comment-form-wrap {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.comment-form-wrap h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════════
   PROJECTS / TASKS
   ══════════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .15s;
}
.project-card:hover { border-color: #3a4060; transform: translateY(-2px); }
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card-header h3 { font-size: 16px; font-weight: 700; }
.project-card-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }
.project-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 2px; transition: width .3s; }
.project-card-actions { display: flex; gap: 8px; }

/* ══════════════════════════════════════════════════════════════════
   MOBILE BREAKPOINTS (≤768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header — compact, hamburger visible */
  .header-inner { gap: 12px; height: 56px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Mobile nav dropdown */
  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-nav a:hover { background: var(--surface2); }

  /* Hero — single column, no image */
  .hero-section { padding: 36px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-img-wrap { display: none; }
  .hero-title { font-size: clamp(24px, 6vw, 36px); }
  .hero-excerpt { font-size: 16px; }

  /* Cards — single column */
  .featured-grid,
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-card { min-height: 44px; }
  .card-body { padding: 16px; }

  /* Article — single column */
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .article-sidebar { order: -1; }
  .verdict-box { position: static; }
  .article-hero { min-height: 280px; }
  .article-hero-overlay { padding: 40px 0 24px; }
  .article-title { font-size: clamp(22px, 5vw, 32px); }
  .article-lead { font-size: 16px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }

  /* Footer — single column */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Section spacing */
  .section-header { padding: 28px 0 16px; }
  .category-hero { padding: 32px 0; }
  .category-hero h1 { font-size: 28px; }

  /* Forms */
  .form-row { flex-direction: column; gap: 0; }
  .suggest-form-row { flex-direction: column; gap: 0; }

  /* Tap targets */
  .hero-btn,
  .suggest-btn,
  .read-more,
  .buy-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Push banner */
  .push-banner { flex-direction: column; gap: 10px; font-size: 13px; padding: 14px 16px; }

  /* Sources */
  .sources-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Comments form */
  .comment-form-wrap { padding: 16px; }
}

/* ══════════════════════════════════════════════════════════════════
   TABLET BREAKPOINTS (769px – 1024px)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner { gap: 28px; }
  .article-layout { grid-template-columns: 1fr 260px; gap: 32px; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════════
   STICKY HEADER — compact on scroll (mobile)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header {
    /* Keep header visually compact — already 56px, no further reduction needed */
  }
}
