/* ================================
   BLOGS.HTML ARCHIVE STYLES
   ================================ */

/* Make the archive section span both columns of the page layout */
.layout .blog-archive {
  grid-column: 1 / -1;
}

/* Responsive multi-column grid */
.blog-archive .archive-grid {
  display: grid;
  /* auto-fill + minmax creates as many columns as fit */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  align-items: stretch; /* stretch cards to equal height */
}

/* Slightly tighter on medium screens */
@media (max-width: 1024px) {
  .blog-archive .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Single column only on small screens */
@media (max-width: 600px) {
  .blog-archive .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* Card styles */
.blog-archive .archive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #2a2f2f;
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 0 8px rgba(255,255,255,0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%; /* force equal height */
}

.blog-archive .archive-item:hover {
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.8),   /* bright golden core */
    0 0 24px rgba(255, 255, 150, 0.6), /* soft yellow aura */
    0 0 36px rgba(255, 255, 200, 0.4); /* faint magical haze */
  transform: translateY(-4px);
}

/* Square image */
.blog-archive .archive-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 3px solid #ffffff;
  margin-bottom: 1rem;
  overflow: hidden;
}

.blog-archive .archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.blog-archive .archive-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.4rem;
  width: 100%;
  flex-grow: 1; /* ensures text area expands to fill card */
}

.blog-archive .archive-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e6efe9;
  text-decoration: none;
}

.blog-archive .archive-title:hover {
  text-decoration: underline;
}

/* Tag + date row */
.blog-archive .archive-meta {
  margin-top: auto; /* push meta row to bottom */
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertically center tag + date */
  min-height: 1.5rem;  /* consistent height across cards */
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #9fc5b5;
  text-transform: lowercase;
}
