/* ==========================================================================
   Blog Listing Page — Dark Navy Theme
   blog.css — Orilyt Design System
   ========================================================================== */

/* ---------- Page background ---------- */

body {
  background: var(--navy);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ---------- Dark topbar for blog ---------- */

.topbar { background: var(--navy) !important; border-bottom: 1px solid var(--border-soft); box-shadow: none; }

/* Logo: hide light, show dark */
.topbar .brand-logo--light { display: none !important; }
.topbar .brand-logo--dark  { display: inline !important; }

/* Nav links — brighter for readability on dark bg */
.topbar, .topbar a, .topbar .nav-item { color: #93B4D8 !important; }
.topbar .nav-item.is-active { color: var(--text-primary) !important; background: rgba(37,99,235,0.08) !important; }
.topbar .nav-item:hover { color: var(--text-primary) !important; background: rgba(255,255,255,0.04) !important; }

/* Language selector — dark theme */
.topbar .lang-trigger {
  background: var(--navy-card) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
.topbar .lang-trigger:hover {
  background: var(--navy-card2) !important;
  border-color: var(--blue-light, #3B82F6) !important;
}
.topbar .lang-menu {
  background: var(--navy-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.5) !important;
}
.topbar .lang-option {
  color: var(--text-muted) !important;
}
.topbar .lang-option:hover,
.topbar .lang-option.is-current {
  background: var(--blue-dim) !important;
  color: var(--text-primary) !important;
}

/* User indicator (login/account button) — dark theme */
.topbar .topbar-user-indicator {
  background: var(--navy-card) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
.topbar .topbar-user-indicator:hover {
  background: var(--navy-card2) !important;
  border-color: var(--blue-light, #3B82F6) !important;
}
.topbar .topbar-user-indicator.is-logged::after {
  width: 7px !important;
  height: 7px !important;
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 1.5px var(--navy) !important;
}

/* User dropdown menu — dark theme */
.topbar .topbar-user-menu {
  background: var(--navy-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.5) !important;
}
.topbar .topbar-user-menu-item,
.topbar .topbar-user-menu-btn {
  color: var(--text-muted) !important;
}
.topbar .topbar-user-menu-item:hover,
.topbar .topbar-user-menu-btn:hover {
  background: var(--blue-dim) !important;
  color: var(--text-primary) !important;
}

/* Mobile hamburger */
.topbar .topbar-menu-toggle span { background: var(--text-muted) !important; }

/* ---------- Dark footer for blog ---------- */

.orilyt-footer {
  background: var(--navy-mid) !important;
  border-top-color: var(--border-soft) !important;
}
.orilyt-footer-brand { color: var(--text-primary) !important; }
.orilyt-footer-left  { color: var(--text-muted) !important; }
.orilyt-footer-link  { color: var(--text-muted) !important; }
.orilyt-footer-link:hover { color: var(--blue-light) !important; }
.orilyt-footer-sep   { color: var(--text-muted2) !important; }
.orilyt-footer .orilyt-footer-copy { color: var(--text-muted2) !important; }

/* ---------- Hero Section ---------- */

.blog-hero {
  background: var(--navy);
  padding: calc(72px + 80px) 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero eyebrow / kicker */
.blog-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 12px;
}

/* Hero title — Fraunces */
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -2px;
}
.blog-hero h1 .text-blue {
  color: var(--blue-light);
}

/* Hero lead text */
.blog-hero-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Stats */
.blog-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.blog-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.blog-stat strong {
  color: var(--blue-light);
  font-size: 20px;
}

/* ---------- Main Content ---------- */

.blog-wrap {
  padding: 40px 0 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Featured Article ---------- */

.blog-featured {
  margin-bottom: 48px;
}
.blog-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue-light, #3B82F6) 0%, var(--blue-light) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.blog-featured-card {
  background: var(--navy-card);
  border: 1px solid var(--blue-light, #3B82F6);
  box-shadow: 0 0 0 1px var(--blue-light, #3B82F6), 0 16px 48px rgba(37,99,235,.15);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--blue-light), 0 24px 56px rgba(37,99,235,.2);
}
.blog-featured-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-featured-icon svg {
  width: 40px;
  height: 40px;
  color: var(--blue-light);
}
.blog-featured-illustration {
  width: 350px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.blog-featured-illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}
.blog-featured-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-featured-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
}
.blog-featured-content h2 a:hover {
  color: var(--blue-light);
}
.blog-featured-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted2);
  margin-bottom: 20px;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Articles Grid ---------- */

.blog-grid-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-grid-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Blog Card ---------- */

.blog-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  height: 100%;
  padding: 24px;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-light, #3B82F6);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.blog-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.blog-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-light);
}
.blog-card-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(37,99,235,.12);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.25);
  border-radius: var(--r-md);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--blue-light);
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted2);
}
.blog-card-btn {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.blog-card-btn:hover {
  gap: 10px;
}
.blog-card-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Pagination ---------- */

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.blog-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--navy-card);
  color: var(--text-muted);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.blog-pagination-btn:hover {
  border-color: var(--blue-light, #3B82F6);
  color: var(--blue-light);
  background: var(--blue-dim);
}
.blog-pagination-btn.is-disabled {
  pointer-events: none;
  color: var(--text-muted2);
  border-color: var(--border-soft);
  background: var(--navy-mid);
}
.blog-pagination-btn svg { width: 16px; height: 16px; }
.blog-pagination-info {
  font-size: 13px;
  color: var(--text-muted2);
  padding: 0 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .blog-hero h1 { font-size: 2.25rem; }
  .blog-featured-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .blog-featured-icon { width: 60px; height: 60px; }
  .blog-featured-icon svg { width: 32px; height: 32px; }
  .blog-featured-illustration { width: 100%; max-width: 360px; }
  .blog-featured-content h2 { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-hero { padding: calc(72px + 48px) 0 30px; }
  .blog-hero::before { display: none; }
  .blog-hero h1 { font-size: 1.75rem; }
  .blog-hero-lead { font-size: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-card { padding: 20px; }
  .blog-card { padding: 20px; }
  .blog-wrap { padding: 24px 0 40px; }
}
