/* ==========================================================================
   SaveInDrive — Official Blog & Journal Stylesheet (Theme Matched)
   Designed exclusively for SaveInDrive's light luminous design system
   incorporating Electric Blue (#2563EB), Golden Amber (#F59E0B), Emerald Green (#10B981)
   ========================================================================== */

/* ── Blog Hub Hero ────────────────────────────────────────────────────────── */
.blog-hub-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
  position: relative;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.blog-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.blog-hero-title .brand-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-sub {
  font-size: 16px;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto 24px auto;
  max-width: 680px;
}

.blog-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.blog-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.blog-stat-item strong {
  color: #0f172a;
  font-weight: 700;
}

.blog-stat-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

/* ── Search & Filter Controls ─────────────────────────────────────────────── */
.blog-search-box {
  display: flex;
  max-width: 520px;
  margin: 0 auto 20px auto;
  position: relative;
}

.blog-search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s;
}

.blog-search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.blog-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.blog-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.blog-filter-pill:hover,
.blog-filter-pill.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

/* ── Featured Cornerstone Article Card ────────────────────────────────────── */
.blog-featured-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  position: relative;
}

.blog-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  border-color: #2563eb;
}

.blog-featured-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.blog-featured-content {
  padding: 56px 36px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-featured-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.blog-featured-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  transition: gap 0.2s ease;
}

.blog-featured-card:hover .blog-featured-cta {
  gap: 10px;
}

.blog-featured-visual {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-featured-thumb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.05);
}

.blog-featured-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.blog-featured-overlay-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 1.5s infinite;
}

/* ── 3-Column Blog Cards Grid ─────────────────────────────────────────────── */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
}

.blog-card-top {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.blog-card:hover .blog-card-thumb-img {
  transform: scale(1.07);
}

.blog-card-thumb-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 2;
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-thumb-icon {
  transform: scale(1.15) rotate(6deg);
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.card-theme-blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-bottom: 1px solid #bfdbfe; }
.card-theme-amber  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-bottom: 1px solid #fde68a; }
.card-theme-emerald{ background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-bottom: 1px solid #a7f3d0; }
.card-theme-purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-bottom: 1px solid #e9d5ff; }
.card-theme-rose   { background: linear-gradient(135deg, #fff1f2, #ffe4e6); border-bottom: 1px solid #fecdd3; }
.card-theme-cyan   { background: linear-gradient(135deg, #ecfeff, #cffafe); border-bottom: 1px solid #a5f3fc; }

.blog-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-amber   { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-purple  { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.badge-rose    { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-cyan    { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

.blog-card-time {
  font-size: 12px;
  color: #64748b;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.blog-card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.blog-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s ease;
}

.blog-card:hover .blog-card-footer span {
  gap: 8px;
}

/* ── Article Detail Page Enhancements ─────────────────────────────────────── */
.article-lead-box {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0 36px 0;
}

.article-lead-title {
  margin: 0 0 8px 0;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-lead-text {
  margin: 0;
  line-height: 1.65;
  font-size: 15px;
  color: #334155;
}

/* Responsive */
@media (max-width: 960px) {
  .blog-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-visual {
    border-left: none;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 20px;
  }
  .blog-featured-thumb-wrap { min-height: 200px; max-height: 260px; }
}

@media (max-width: 640px) {
  .blog-cards-grid { grid-template-columns: 1fr; }
  .blog-stats-bar { flex-direction: column; gap: 8px; border-radius: 16px; }
  .blog-stat-divider { display: none; }
  .blog-featured-content { padding: 48px 20px 24px 20px; }
  .blog-hero-title { font-size: 2rem; }
  .blog-card-top { height: 150px; }
}
