/* ── Article Cards ─────────────────────────────────────────── */
.articles-grid { display: grid; gap: 20px; }
.article-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--t);
  display: grid; grid-template-columns: 180px 1fr;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #dbeafe; }
.article-card-img {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px; position: relative; overflow: hidden;
}
.article-card-img svg { width: 60px; height: 60px; opacity: .45; }
.card-img-1 { background: linear-gradient(135deg, #0f172a, #1e40af); }
.card-img-2 { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.card-img-3 { background: linear-gradient(135deg, #042f2e, #134e4a); }
.card-img-4 { background: linear-gradient(135deg, #1c1917, #292524); }
.card-img-5 { background: linear-gradient(135deg, #0c1445, #1e3a5f); }
.card-img-6 { background: linear-gradient(135deg, #14532d, #052e16); }
.article-card-body { padding: 18px 22px; display: flex; flex-direction: column; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.article-card-title { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt {
  color: var(--text-muted); font-size: .83rem; line-height: 1.6;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 7px; }
.article-author .av-init { width: 26px; height: 26px; font-size: .65rem; }
.article-author-name { font-size: .74rem; font-weight: 600; color: var(--text-muted); }
.article-meta-right { display: flex; align-items: center; gap: 10px; }
.article-stat { display: flex; align-items: center; gap: 4px; color: var(--text-light); font-size: .74rem; }
.article-stat svg { width: 12px; height: 12px; }
.reading-now {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #16a34a; font-size: .68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
}
.reading-now::before {
  content: ''; width: 5px; height: 5px; background: var(--online);
  border-radius: 50%; animation: pulse 1.5s ease-in-out infinite;
}
@media (max-width: 600px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { min-height: 100px; }
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) { .sidebar { display: none; } }
.sidebar-widget {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden;
}
.widget-header {
  padding: 13px 18px 11px; border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
}
.widget-header svg { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }

/* Online Widget */
.online-widget-body { padding: 16px 18px; }
.online-count-display { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.online-number { font-size: 2.4rem; font-weight: 700; color: var(--text); line-height: 1; }
.online-label { color: var(--text-muted); font-size: .76rem; line-height: 1.5; }
.online-label strong { display: block; color: var(--online); font-size: .8rem; }
.online-avatars { display: flex; margin-bottom: 12px; }
.online-avatars .av {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid white; margin-left: -7px;
  font-size: .62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: white;
}
.online-avatars .av:first-child { margin-left: 0; }
.av-more { background: var(--primary) !important; }
.online-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.online-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--online), #86efac);
  border-radius: 2px; transition: width 1s ease;
}

/* Activity Feed */
.activity-list { padding: 4px 0; }
.activity-item {
  display: flex; gap: 10px; padding: 9px 18px;
  transition: var(--t); border-left: 3px solid transparent;
}
.activity-item:hover { background: var(--bg); }
.activity-item.new-activity {
  border-left-color: var(--primary); background: #eff6ff;
  animation: slide-in .4s ease;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.activity-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: white;
}
.activity-text { font-size: .77rem; line-height: 1.4; flex: 1; }
.activity-text b { color: var(--text); font-weight: 600; }
.activity-text a { color: var(--primary); font-weight: 500; }
.activity-time { display: block; color: var(--text-light); font-size: .68rem; margin-top: 2px; }

/* Popular Posts */
.popular-list { padding: 4px 0; }
.popular-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 18px; transition: var(--t); }
.popular-item:hover { background: var(--bg); }
.popular-num { font-size: 1.3rem; font-weight: 800; color: var(--border); line-height: 1; width: 22px; flex-shrink: 0; }
.popular-title { font-size: .79rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.popular-title a:hover { color: var(--primary); }
.popular-views { font-size: .7rem; color: var(--text-light); display: flex; align-items: center; gap: 3px; }
.popular-views svg { width: 10px; height: 10px; }

/* Tags Cloud */
.tags-cloud { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 20px; font-size: .76rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); transition: var(--t);
}
.tag-link:hover { background: var(--primary); color: white; border-color: var(--primary); }
.tag-count { font-size: .65rem; opacity: .7; }

/* ── About Page ────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,.25) 0%, transparent 60%);
}
.about-hero-inner { position: relative; z-index: 1; }
.about-hero h1 { color: white; margin-bottom: 16px; }
.about-hero p { color: #94a3b8; font-size: .95rem; max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
@media (max-width: 768px) { .about-stats { grid-template-columns: repeat(2,1fr); } }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: .82rem; margin-top: 6px; }
.about-section { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 36px 40px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.about-section h2 { font-size: 1.35rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.about-section p { color: #334155; line-height: 1.8; }
.authors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.author-card {
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 20px;
  display: flex; gap: 14px; align-items: flex-start; transition: var(--t);
}
.author-card:hover { border-color: #dbeafe; box-shadow: var(--shadow); }
.author-card .av-init { width: 50px; height: 50px; font-size: .9rem; flex-shrink: 0; }
.author-card-name { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.author-card-role { color: var(--text-muted); font-size: .78rem; margin-bottom: 8px; }
.author-card-bio { color: #334155; font-size: .8rem; line-height: 1.55; margin: 0; }
