/*
Theme Name: Check My Entry Blog
Theme URI: https://checkmyentry.com/blog
Author: Check My Entry
Description: Minimal blog theme matching the checkmyentry.com marketing site's branding, fonts, header, and footer.
Version: 1.0
Requires PHP: 7.4
Text Domain: checkmyentry-blog
*/

/* Blog-specific additions on top of the main site's own indexstyles.css
   (enqueued separately in functions.php) — post listing cards, single-post
   typography, and pagination that the marketing site's stylesheet has no
   need for. */

.blog-hero {
  padding: 64px 0 32px;
}

.post-list {
  display: grid;
  gap: 28px;
  padding: 0 0 64px;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card .post-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 320px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--action);
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.post-card .excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.read-more {
  color: var(--action);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 0 64px;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.pagination a:hover {
  border-color: var(--action);
  color: var(--action);
}

.pagination .current {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

/* Single post */
.single-post {
  padding: 48px 0 64px;
}

.single-post .post-featured {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0 32px;
}

.single-post .entry-content {
  line-height: 1.75;
  color: var(--text);
}

.single-post .entry-content p {
  margin: 0 0 1.2em;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.single-post .entry-content blockquote {
  border-left: 4px solid var(--action);
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
  margin-top: 1.5em;
}

.back-to-blog {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.back-to-blog:hover {
  color: var(--action);
}

.no-posts {
  text-align: center;
  padding: 64px 0;
  color: var(--muted);
}
