/*
Theme Name: The 90s Retro Theme Blog Grid Fix
Theme URI: https://example.com/
Description: Child theme to turn blog/archive pages into a 3-column retro grid with thumbnails, excerpts, and dates.
Author: OpenAI
Version: 1.1.0
Template: 90s-retro-master
Text Domain: retro-blog-grid-fix
*/

.blog-archive-wrap {
  padding: 24px 12px 48px;
  background: transparent;
}

.blog-archive-container {
  max-width: 1280px;
  margin: 0 auto;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  background: #c0c0c0;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080, 6px 6px 0 rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform .18s steps(2, end), box-shadow .18s steps(2, end);
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080, 10px 10px 0 rgba(0,0,0,0.24);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid #000;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
  color: #111;
}

.post-card-meta {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #111;
  text-transform: uppercase;
}

.post-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.post-card-title a {
  color: #0000cc;
  text-decoration: underline;
}

.post-card-title a:hover {
  color: #ff00ff;
}

.post-card-excerpt {
  flex: 1;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #111;
}

.post-card-excerpt p {
  margin: 0;
}

.post-card-more {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 12px;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
  font-size: 13px;
  line-height: 1;
}

.post-card-more:hover {
  color: #000;
  background: #d4d0c8;
}

.pagination-wrap {
  margin-top: 28px;
  text-align: center;
}

.pagination-wrap .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 92px;
  min-width: 92px;
  height: 36px;
  padding: 0 8px;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
  font-size: 13px;
  white-space: nowrap;
}

.pagination-wrap .page-numbers.prev,
.pagination-wrap .page-numbers.next {
  width: 110px;
  min-width: 110px;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: #000080;
  color: #fff;
  box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #fff;
}

.pagination-wrap .dots {
  width: auto;
  min-width: 36px;
  box-shadow: none;
  border: 0;
  background: transparent;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-archive-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card-title {
    font-size: 20px;
  }

  .pagination-wrap .page-numbers,
  .pagination-wrap .page-numbers.prev,
  .pagination-wrap .page-numbers.next {
    width: auto;
    min-width: 72px;
  }
}
