/* NewsBul - Red & White theme */
/* Place as assets/css/style.css */

:root{
  --red: #cc0b0b;
  --red-dark: #a00a0a;
  --white: #ffffff;
  --muted: #6b6b6b;
  --bg: #fafafa;
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-sans);
  background:var(--bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
}

.container{ max-width:var(--max-width); margin:0 auto; padding:20px; }

/* Header */
.site-header{ background:var(--white); border-bottom:4px solid rgba(204,11,11,0.06); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:22px 20px; gap:12px; max-width:var(--max-width); margin:0 auto; }
.brand{ font-family:var(--font-serif); font-weight:800; color:var(--red); font-size:26px; letter-spacing:1px; }
.header-actions .search{ display:flex; gap:8px; align-items:center; }
.header-actions input[type="search"]{ padding:10px 12px; border-radius:8px; border:1px solid #eee; min-width:220px; }
.header-actions button{ background:var(--red); color:var(--white); border:0; padding:10px 12px; border-radius:8px; cursor:pointer; }

/* Category bar (below header) */
.category-bar{ background:transparent; padding:10px 0; }
.category-inner{ display:flex; gap:10px; align-items:center; overflow-x:auto; padding:6px 10px; }
.cat-pill{ display:inline-flex; align-items:center; gap:10px; padding:8px 12px; background:var(--white); border-radius:999px; text-decoration:none; color:var(--muted); border:1px solid #f0f0f0; white-space:nowrap; transition:all .12s ease; }
.cat-pill:hover{ transform:translateY(-4px); color:#111; box-shadow:var(--shadow); }
.cat-emoji{ font-size:18px; }

/* Hero / featured */
.hero{ display:flex; gap:20px; align-items:center; background:var(--white); border-radius:12px; box-shadow:var(--shadow); text-decoration:none; color:inherit; overflow:hidden; margin-bottom:18px; max-width:var(--max-width); margin-left:auto; margin-right:auto; }
.hero-media img{ width:420px; height:260px; object-fit:cover; display:block; }
.hero-body{ padding:24px; }
.hero-title{ font-family:var(--font-serif); font-size:24px; margin:0 0 10px; color:var(--red-dark); }
.hero-excerpt{ color:var(--muted); margin:0; }

/* Cards grid */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card{ background:var(--white); border-radius:10px; overflow:hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.04); display:flex; flex-direction:column; }
.card-link{ color:inherit; text-decoration:none; display:flex; flex-direction:column; height:100%; }
.card-thumb img{ width:100%; height:160px; object-fit:cover; display:block; }
.card-body{ padding:14px; flex:1 1 auto; }
.card-title{ font-size:16px; margin:0 0 8px; color:#111; }
.card-desc{ color:var(--muted); margin:0 0 10px; }

/* Article page */
.article{ background:var(--white); padding:22px; border-radius:12px; box-shadow:var(--shadow); }
.article-title{ font-family:var(--font-serif); font-size:26px; margin:0 0 12px; color:var(--red-dark); }
.article-meta.muted{ color:var(--muted); font-size:13px; margin-bottom:10px; }
.article-media img{ width:100%; max-height:420px; object-fit:cover; border-radius:8px; margin-bottom:12px; }
.article-content p{ line-height:1.75; color:#222; margin-bottom:12px; }
.source{ margin-top:16px; font-size:14px; }

/* Related */
.related{ margin-top:18px; }
.related-list{ display:flex; gap:12px; margin-top:8px; }
.related-card{ display:flex; gap:10px; align-items:center; text-decoration:none; background:var(--white); padding:8px; border-radius:8px; border:1px solid #f3f3f3; color:inherit; }
.related-card img{ width:88px; height:56px; object-fit:cover; border-radius:6px; }

/* Pagination */
.pagination{ display:flex; gap:8px; justify-content:center; padding:18px 0; }
.page-btn{ display:inline-block; padding:8px 12px; border-radius:8px; background:#fff; border:1px solid #eee; color:#111; text-decoration:none; }
.page-btn.active{ background:var(--red); color:#fff; border-color:var(--red); }

/* Notices */
.notice{ padding:18px; border-radius:10px; background:#fff; box-shadow:var(--shadow); }
.notice.error{ border-left:6px solid #ff6b6b; }

/* Footer */
.site-footer{ margin-top:28px; padding:18px 0; background:var(--white); border-top:1px solid #f3f3f3; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:10px; max-width:var(--max-width); margin:0 auto; padding:0 20px; }
.footer-links a{ margin-left:12px; text-decoration:none; color:var(--muted); }

/* Responsive */
@media (max-width:1024px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .hero-media img{ width:320px; height:200px; }
}
@media (max-width:640px){
  .header-inner{ padding:14px; }
  .hero{ flex-direction:column; }
  .hero-media img{ width:100%; height:200px; }
  .cards{ grid-template-columns: 1fr; }
  .category-inner{ padding:6px; gap:8px; }
}