/*
Theme Name: Yogi Auto Glow Blog
Theme URI: https://yogiautoglow.com/blog/
Description: Blog theme for Yogi Auto Glow. Reuses the main site's header, footer and styles.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: yogiautoglow-blog
*/

/* Blog-only styles. Base styles come from /assets/css/style.css (main site). */
.blog-hero { padding-bottom: 30px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg, 20px); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 12px 30px rgba(0,0,0,.08)); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .pc-meta { font-size: .82rem; color: var(--ink-secondary); font-weight: 600; }
.post-card h2 { font-size: 1.2rem; line-height: 1.35; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0; color: var(--ink-secondary); }
.post-card .card-link { margin-top: auto; }
.blog-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.blog-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.blog-pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

.post-wrap { max-width: 760px; margin: 0 auto; }
.post-header { text-align: left; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 10px 0 14px; }
.post-meta { color: var(--ink-secondary); font-size: .92rem; font-weight: 600; }
.post-featured { margin: 26px 0 0; border-radius: var(--radius-lg, 20px); overflow: hidden; }
.post-featured img { width: 100%; height: auto; display: block; }

.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 24px 0 8px; padding: 14px 18px; border-radius: 14px; background: var(--lavender-soft); border: 1px solid var(--lavender); }
.cta-strip span { font-weight: 700; color: var(--primary-dark); }
.cta-strip .cs-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-strip .cs-links a { font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 10px; text-decoration: none; background: var(--white); color: var(--primary-dark); border: 1px solid var(--lavender); }
.cta-strip .cs-links a.cs-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }

.entry-content { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.entry-content h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; line-height: 1.3; }
.entry-content h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .98rem; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--lavender-soft); }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--lavender-soft); border-radius: 0 12px 12px 0; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); }
.author-box .ab-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.author-box .ab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box b { display: block; font-size: 1.05rem; }
.author-box span { display: block; color: var(--ink-secondary); font-size: .9rem; margin-bottom: 6px; }
.author-box p { margin: 0; color: var(--ink-secondary); font-size: .95rem; }

.post-cta { margin-top: 40px; }
.related-posts { margin-top: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
