/*
Theme Name: BrightFolio Blog
Theme URI: https://brightfolio.online/blog
Author: BrightFolio
Description: Blog theme matching the main BrightFolio website header, footer, and orange/white brand styling.
Version: 1.0
Text Domain: brightfolio-blog
*/

/* Blog-specific layout — reuses --text, --muted, --line, --orange, --shadow, --radius
   variables that come from the main site's style.css (enqueued in functions.php) */

.blog-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #fff8f2, #fff);
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 { margin-bottom: 10px; }
.blog-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.blog-list { padding: 56px 0 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  display: flex; align-items: center; justify-content: center;
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .thumb-fallback {
  color: #fff; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem; opacity: .85;
}
.blog-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.blog-card h2 {
  font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3;
}
.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--orange); }
.blog-card p.excerpt { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-card .read-more {
  color: var(--orange); font-weight: 700; font-size: .9rem;
  font-family: 'Outfit', sans-serif;
}

.blog-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.blog-pagination a, .blog-pagination span {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  font-size: .9rem; color: var(--text); font-family: 'Outfit', sans-serif; font-weight: 600;
}
.blog-pagination a:hover { border-color: var(--orange); color: var(--orange); }
.blog-pagination .current { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── Single post ── */
.post-hero { padding: 52px 0 28px; background: linear-gradient(180deg, #fff8f2, #fff); border-bottom: 1px solid var(--line); }
.post-hero .post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.post-hero h1 { max-width: 820px; }
.post-body { padding: 48px 0 80px; }
.post-content { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 1.05rem; line-height: 1.85; }
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.post-content h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.post-content ul, .post-content ol { margin: 0 0 20px 22px; color: var(--text); }
.post-content blockquote {
  border-left: 4px solid var(--orange); padding: 6px 20px; color: var(--muted);
  font-style: italic; margin: 24px 0;
}
.post-back { max-width: 760px; margin: 0 auto 28px; }
.post-back a { color: var(--orange); font-weight: 700; font-family: 'Outfit', sans-serif; font-size: .92rem; }
