/* =========================================================
   GP Bio Child — Blog Stylesheet (blog.css)
   Loaded ONLY on blog views (is_singular post, is_home,
   is_archive, is_search, Latest Posts page template).
   Bio pages stay completely unaffected.
   =========================================================

   Table of Contents:
   1. Blog Hero
   2. Post Grid & Cards
   3. Blog Sidebar
   4. Single Post Layout
   5. Table of Contents
   6. Author Box
   7. Post Navigation
   8. Share Buttons
   9. Tags
   10. Related Posts
   11. Comments
   12. AdSense Slots
   13. Responsive
   ========================================================= */

/* 1. Blog Hero
   ========================================================= */
.gpbio-blog-hero {
	background: linear-gradient( 120deg, var( --gpbio-grad-start ), var( --gpbio-grad-end ) );
	color: #fff;
	padding: 48px 0 40px;
}

.gpbio-blog-hero .gpbio-breadcrumbs { opacity: .85; }
.gpbio-blog-hero .gpbio-breadcrumbs a { color: #fff; }

.gpbio-blog-hero__title {
	font-size: clamp( 24px, 4.5vw, 38px );
	font-weight: 800;
	margin: 10px 0 8px;
}

.gpbio-blog-hero__sub { opacity: .9; font-size: 15px; max-width: 560px; margin: 0; }

/* 2. Post Grid & Cards
   ========================================================= */
.gpbio-blog-archive { padding: 50px 0; }

.gpbio-blog-archive__inner {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}

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

.gpbio-post-grid--3 { grid-template-columns: repeat( 3, 1fr ); }

.gpbio-post-card {
	background: #fff;
	border: 1px solid var( --gpbio-border );
	border-radius: var( --gpbio-radius );
	box-shadow: var( --gpbio-shadow );
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}

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

.gpbio-post-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.gpbio-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gpbio-post-card:hover .gpbio-post-card__thumb img { transform: scale( 1.04 ); }

.gpbio-post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.gpbio-post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; flex-wrap: wrap; }

.gpbio-post-card__cat {
	background: linear-gradient( 90deg, var( --gpbio-pink ), var( --gpbio-purple ) );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	text-decoration: none;
}
.gpbio-post-card__cat:hover { opacity: .85; }

.gpbio-post-card__date,
.gpbio-post-card__read { color: var( --gpbio-text-light ); }

.gpbio-post-card__title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.4; }
.gpbio-post-card__title a { color: var( --gpbio-text ); }
.gpbio-post-card__title a:hover { color: var( --gpbio-pink ); text-decoration: none; }

.gpbio-post-card__excerpt { font-size: 13px; color: var( --gpbio-text-light ); line-height: 1.6; margin: 0; flex: 1; }

.gpbio-post-card__more {
	font-size: 13px;
	font-weight: 700;
	color: var( --gpbio-pink );
	align-self: flex-start;
}
.gpbio-post-card__more:hover { text-decoration: underline; }

/* 3. Blog Sidebar
   ========================================================= */
.gpbio-blog-sidebar { position: sticky; top: 80px; }

.gpbio-blog-sidebar__widget {
	background: #fff;
	border: 1px solid var( --gpbio-border );
	border-radius: var( --gpbio-radius );
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: var( --gpbio-shadow );
}

.gpbio-blog-sidebar__widget h3 {
	font-size: 15px;
	margin: 0 0 14px;
	color: var( --gpbio-text );
}

.gpbio-blog-sidebar__widget ul { list-style: none; padding: 0; margin: 0; }
.gpbio-blog-sidebar__widget li { border-bottom: 1px solid var( --gpbio-border ); padding: 8px 0; font-size: 13px; }
.gpbio-blog-sidebar__widget li:last-child { border-bottom: none; }
.gpbio-blog-sidebar__widget a { color: var( --gpbio-text ); }
.gpbio-blog-sidebar__widget a:hover { color: var( --gpbio-pink ); }

/* Author archive card */
.gpbio-author-card { display: flex; align-items: center; gap: 20px; }
.gpbio-author-card__avatar { border-radius: 50%; width: 80px; height: 80px; }
.gpbio-author-card__name { font-size: 24px; margin: 0 0 8px; }
.gpbio-author-card__bio { opacity: .9; font-size: 14px; margin: 0; }

/* Featured image — content width, after TOC */
.gpbio-single-post__featured-img {
	margin: 24px 0 28px;
	border-radius: 12px;
	overflow: hidden;
}

.gpbio-single-post__featured-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
}

.gpbio-single-post__featured-img figcaption {
	font-size: 12px;
	color: var( --gpbio-text-light );
	text-align: center;
	margin-top: 8px;
	font-style: italic;
}

/* 4. Single Post Layout
   ========================================================= */
.gpbio-single-post { padding: 0 0 60px; }
.gpbio-single-post__inner { max-width: 780px; }

.gpbio-single-post__header { margin: 24px 0; }

.gpbio-single-post__title {
	font-size: clamp( 24px, 4vw, 36px );
	font-weight: 800;
	line-height: 1.25;
	margin: 10px 0 14px;
}

.gpbio-single-post__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var( --gpbio-text-light );
	flex-wrap: wrap;
}

.gpbio-single-post__avatar { border-radius: 50%; width: 32px; height: 32px; }
.gpbio-single-post__author a { color: var( --gpbio-text ); font-weight: 600; }
.gpbio-single-post__sep { opacity: .4; }

/* Post Content */
.gpbio-entry-content {
	font-size: 16px;
	line-height: 1.85;
	color: var( --gpbio-text );
}

.gpbio-entry-content h2,
.gpbio-entry-content h3 { margin-top: 1.6em; margin-bottom: .5em; }

.gpbio-entry-content h2 { font-size: 22px; }
.gpbio-entry-content h3 { font-size: 18px; }

.gpbio-entry-content p { margin-bottom: 1.2em; }

.gpbio-entry-content ul,
.gpbio-entry-content ol { padding-left: 22px; margin-bottom: 1.2em; }

.gpbio-entry-content li { margin-bottom: .4em; }

.gpbio-entry-content a { color: var( --gpbio-pink ); }
.gpbio-entry-content a:hover { opacity: .8; }

.gpbio-entry-content blockquote {
	border-left: 4px solid var( --gpbio-pink );
	padding: 14px 20px;
	margin: 24px 0;
	background: var( --gpbio-bg );
	border-radius: 0 10px 10px 0;
	font-style: italic;
	color: var( --gpbio-text-light );
}

.gpbio-entry-content img { border-radius: 10px; margin: 20px 0; }

.gpbio-entry-content pre {
	background: #1e1e2e;
	color: #cdd6f4;
	padding: 20px;
	border-radius: 10px;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}

/* 5. Table of Contents
   ========================================================= */
.gpbio-toc {
	background: var( --gpbio-bg );
	border: 1px solid var( --gpbio-border );
	border-radius: var( --gpbio-radius );
	padding: 20px 24px;
	margin: 24px 0;
}

.gpbio-toc__title {
	font-weight: 800;
	margin: 0 0 12px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var( --gpbio-purple );
}

.gpbio-toc ul { list-style: none; padding: 0; margin: 0; }
.gpbio-toc__item { margin-bottom: 6px; }
.gpbio-toc__item a { font-size: 14px; color: var( --gpbio-text ); }
.gpbio-toc__item a:hover { color: var( --gpbio-pink ); }
.gpbio-toc__item--h3 { padding-left: 18px; }
.gpbio-toc__item--h3 a { font-size: 13px; color: var( --gpbio-text-light ); }

/* 6. Author Box
   ========================================================= */
.gpbio-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: var( --gpbio-bg );
	border: 1px solid var( --gpbio-border );
	border-radius: var( --gpbio-radius );
	padding: 24px;
	margin: 36px 0;
}

.gpbio-author-box__avatar { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; }
.gpbio-author-box__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var( --gpbio-text-light ); margin: 0 0 4px; }
.gpbio-author-box__name { font-size: 17px; margin: 0 0 8px; }
.gpbio-author-box__name a { color: var( --gpbio-text ); }
.gpbio-author-box__name a:hover { color: var( --gpbio-pink ); }
.gpbio-author-box__bio { font-size: 13px; color: var( --gpbio-text-light ); line-height: 1.6; margin: 0; }

/* 7. Post Navigation
   ========================================================= */
.gpbio-single-post__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 36px 0;
}

.gpbio-single-post__nav-prev,
.gpbio-single-post__nav-next {
	background: #fff;
	border: 1px solid var( --gpbio-border );
	border-radius: var( --gpbio-radius );
	padding: 16px;
	transition: border-color .2s ease;
}
.gpbio-single-post__nav-prev:hover,
.gpbio-single-post__nav-next:hover { border-color: var( --gpbio-pink ); }
.gpbio-single-post__nav-next { text-align: right; }

.gpbio-single-post__nav a { color: var( --gpbio-text ); display: block; text-decoration: none; }
.gpbio-single-post__nav a:hover { text-decoration: none; }
.gpbio-single-post__nav span { display: block; font-size: 11px; color: var( --gpbio-text-light ); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.gpbio-single-post__nav strong { font-size: 14px; line-height: 1.4; }

/* 8. Share Buttons
   ========================================================= */
.gpbio-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 30px 0;
}

.gpbio-share__label { font-size: 13px; font-weight: 700; color: var( --gpbio-text-light ); }

.gpbio-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: opacity .2s ease, transform .15s ease;
}
.gpbio-share__btn:hover { opacity: .85; transform: translateY( -1px ); text-decoration: none; }

.gpbio-share__btn--native { background: #8b2fc9; color: #fff; }
.gpbio-share__btn--fb     { background: #1877f2; color: #fff; }
.gpbio-share__btn--tw     { background: #1da1f2; color: #fff; }
.gpbio-share__btn--wa     { background: #25d366; color: #fff; }
.gpbio-share__btn--copy   { background: var( --gpbio-bg ); color: var( --gpbio-text ); border: 1px solid var( --gpbio-border ); }
.gpbio-share__btn--copy.is-copied { background: #21c07a; color: #fff; border-color: #21c07a; }

/* 9. Tags
   ========================================================= */
.gpbio-single-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0;
	font-size: 13px;
	color: var( --gpbio-text-light );
}

.gpbio-tag-pill {
	background: var( --gpbio-bg );
	border: 1px solid var( --gpbio-border );
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	color: var( --gpbio-text );
	text-decoration: none;
}
.gpbio-tag-pill:hover { border-color: var( --gpbio-pink ); color: var( --gpbio-pink ); }

/* 10. Related Posts
   ========================================================= */
.gpbio-related { margin: 40px 0 0; }

/* 11. Comments
   ========================================================= */
.gpbio-comments { margin-top: 40px; }
.gpbio-comments .comment-form-comment textarea { width: 100%; border-radius: 10px; border: 1px solid var( --gpbio-border ); padding: 12px; font-size: 14px; }

/* 12. AdSense Slots (empty, wire up your ad code later)
   ========================================================= */
.gpbio-ad { min-height: 0; margin: 20px 0; text-align: center; }
.gpbio-ad--top { min-height: 0; }
.gpbio-ad--bottom { min-height: 0; }

/* 13. Responsive
   ========================================================= */
@media ( max-width: 1020px ) {
	.gpbio-blog-archive__inner { grid-template-columns: 1fr; }
	.gpbio-blog-sidebar { display: none; } /* hide sidebar on tablet */
	.gpbio-post-grid { grid-template-columns: repeat( 2, 1fr ); }
}

@media ( max-width: 640px ) {
	.gpbio-post-grid,
	.gpbio-post-grid--3 { grid-template-columns: 1fr; }
	.gpbio-single-post__nav { grid-template-columns: 1fr; }
	.gpbio-author-box { flex-direction: column; align-items: center; text-align: center; }
	.gpbio-toc { padding: 16px; }
}
