/* blog.css
   Sondra's Diary – responsive, elegant, dark theme
   Designed to pair with Bootstrap 5
*/

/* =======================================================
   Section + Header
======================================================= */
.blog-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.blog-header h1 {
  letter-spacing: .4px;
}

.text-gold {
  color: #d8b35a;
}

.text-magpie {
  color: #6fb7ff;
}

/* =======================================================
   Card Layout
======================================================= */
.blog-card {
  background: #151821;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,.40);
}

/* Hero Image */
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

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

/* =======================================================
   Card Body
======================================================= */
.blog-card .card-body {
  padding: 1.2rem 1.2rem;
}

.blog-title {
  font-weight: 600;
  margin-bottom: .4rem;
}

.blog-meta {
  font-size: .85rem;
  color: rgba(232,236,242,.55);
}

.blog-excerpt {
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(232,236,242,.80);
}

/* =======================================================
   Read Button
======================================================= */
.blog-read-btn {
  border-radius: 999px;
  font-size: .8rem;
  padding: .35rem .9rem;
  border: 1px solid #d8b35a;
  color: #d8b35a;
  transition: background .2s ease, color .2s ease;
}

.blog-read-btn:hover {
  background: #d8b35a;
  color: #0e0f12;
}

/* =======================================================
   Empty State
======================================================= */
.blog-empty {
  padding: 4rem 0;
  color: rgba(232,236,242,.55);
}

/* =======================================================
   Responsive Tweaks
======================================================= */
@media (max-width: 991.98px) {
  .blog-card {
    border-radius: 14px;
  }
}

@media (max-width: 575.98px) {
  .blog-card .card-body {
    padding: 1rem;
  }

  .blog-title {
    font-size: 1rem;
  }
}

/* =======================================================
   Optional subtle background gradient
======================================================= */
.blog-background {
  background: linear-gradient(
    180deg,
    #0e0f12 0%,
    #12151d 100%
  );
}