/* ============================================================
   ARTICLES SECTION
   LinkedIn articles grid — glassmorphism cards
   ============================================================ */

/* ── Section heading ─────────────────────────────────────── */
.articles-heading {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}
.articles-heading em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}
[data-theme="light"] .articles-heading       { color: #111d30; }
[data-theme="light"] .articles-heading em    { color: var(--accent); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* ── Card ─────────────────────────────────────────────────── */
.article-card {
  background: rgba(9, 27, 55, 0.60);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 170, 255, 0.38);
  box-shadow: 0 14px 44px rgba(0, 100, 255, 0.14);
}

/* ── Cover area ───────────────────────────────────────────── */
.article-cover {
  height: 180px;
  background: #060e1e;
  flex-shrink: 0;
  overflow: hidden;
}
.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body ─────────────────────────────────────────────────── */
.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.3rem 1.1rem;
  gap: 0.55rem;
}

/* Meta row: tag + number */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.article-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.22);
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  line-height: 1;
}

.article-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.05em;
}

.article-title {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease;
}

.article-card:hover .article-title {
  color: var(--accent);
}

.article-excerpt {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Footer row ───────────────────────────────────────────── */
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.055);
  margin-top: auto;
}

.article-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.07em;
}
.article-date svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.article-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
}
.article-time svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.article-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 120, 255, 0.10);
  border: 1px solid rgba(0, 170, 255, 0.22);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  flex-shrink: 0;
}
.article-link:hover {
  background: rgba(0, 120, 255, 0.26);
  border-color: rgba(0, 170, 255, 0.55);
  transform: scale(1.12);
}

/* ── View all CTA ─────────────────────────────────────────── */
.articles-cta {
  margin-top: 2.8rem;
  display: flex;
  justify-content: center;
}
.articles-cta-rows {
  width: 100%;
  max-width: 500px;
}

/* ── Light theme ──────────────────────────────────────────── */
[data-theme="light"] .article-card {
  background: rgba(210, 228, 255, 0.52);
  border-color: rgba(100, 160, 220, 0.28);
}
[data-theme="light"] .article-title   { color: #111d30; }
[data-theme="light"] .article-card:hover .article-title { color: var(--accent); }
[data-theme="light"] .article-excerpt { color: #4a5e78; }
[data-theme="light"] .article-footer  { border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .article-cover   { background: #c8d8ee; }
[data-theme="light"] .article-num     { color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] .article-date    { color: rgba(0, 0, 0, 0.35); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
}
