/**
 * blog.css — Estilos para el Blog, Bitácora y Lectura de Artículos de Pablo Kuti
 *
 * @package PabloKuti
 */

.blog-page,
.single-post-page {
	min-height: 100vh;
	background: #07060a;
	color: #ffffff;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	position: relative;
	overflow-x: hidden;
}

.blog-bg {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
		radial-gradient(circle at 10% 40%, rgba(147, 51, 234, 0.07) 0%, transparent 50%),
		radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
		#07060a;
	z-index: 0;
	pointer-events: none;
}

.blog-content {
	position: relative;
	z-index: 1;
	width: min(100% - 2.5rem, 1180px);
	margin: 0 auto;
	padding: 1.5rem 1rem 5rem;
}

/* Topbar */
.blog-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 3rem;
}

.blog-topbar__brand {
	font-family: 'Outfit', sans-serif;
	font-size: 0.88rem;
	letter-spacing: 0.18em;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-topbar__brand:hover {
	color: #d4af37;
}

.blog-topbar__tag {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #d4af37;
	font-weight: 500;
}

.blog-topbar__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.15rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.04);
	color: #f1ede6;
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	backdrop-filter: blur(8px);
	transition: all 0.25s ease;
}

.blog-topbar__back:hover {
	background: rgba(212, 175, 55, 0.15);
	border-color: rgba(212, 175, 55, 0.4);
	color: #fbbf24;
	transform: translateX(-3px);
}

/* Header */
.blog-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 3rem;
}

.blog-header__emblem {
	width: 58px;
	height: 58px;
	margin: 0 auto 1.25rem;
	border-radius: 16px;
	background: rgba(212, 175, 55, 0.12);
	border: 1px solid rgba(212, 175, 55, 0.35);
	color: #fbbf24;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.blog-header__emblem svg {
	width: 28px;
	height: 28px;
}

.blog-header__title {
	font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	font-weight: 300;
	color: #ffffff;
	margin: 0 0 1rem;
	line-height: 1.15;
}

.blog-header__sub {
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: rgba(241, 207, 156, 0.88);
	line-height: 1.6;
	margin: 0;
}

/* Grilla de Artículos */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin-bottom: 4rem;
}

.blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	background: #0f0d15;
	border: 1px solid rgba(212, 175, 55, 0.22);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(12px);
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
	            border-color 0.3s ease,
	            box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-6px);
	border-color: rgba(212, 175, 55, 0.5);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
}

.blog-card__visual {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #14111c;
}

.blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__img {
	transform: scale(1.05);
}

.blog-card__visual-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(15, 13, 21, 0.95) 100%);
	pointer-events: none;
}

.blog-card__body {
	padding: 1.5rem 1.75rem 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.74rem;
	color: #d4af37;
	margin-bottom: 0.85rem;
	letter-spacing: 0.05em;
}

.blog-card__badge {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.25rem 0.65rem;
	border-radius: 9999px;
	background: rgba(212, 175, 55, 0.12);
	border: 1px solid rgba(212, 175, 55, 0.25);
}

.blog-card__read-time {
	color: rgba(255, 255, 255, 0.55);
}

.blog-card__title {
	font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
	font-size: 1.25rem;
	font-weight: 400;
	color: #ffffff;
	margin: 0 0 0.85rem;
	line-height: 1.35;
}

.blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-card__title a:hover {
	color: #fbbf24;
}

.blog-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(230, 222, 210, 0.8);
	margin: 0 0 1.5rem;
	flex: 1;
}

.blog-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: #fbbf24;
	text-decoration: none;
	letter-spacing: 0.06em;
	transition: gap 0.2s ease, color 0.2s ease;
	margin-top: auto;
}

.blog-card__btn:hover {
	color: #ffffff;
	gap: 0.75rem;
}

/* ==========================================================================
   LECTURA INDIVIDUAL DE ARTÍCULO (SINGLE POST)
   ========================================================================== */
.single-article {
	max-width: 820px;
	margin: 0 auto;
}

.single-article__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.single-article__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.8rem;
	color: #d4af37;
	margin-bottom: 1.25rem;
}

.single-article__title {
	font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 300;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.single-article__lead {
	font-size: clamp(1.05rem, 1.4vw, 1.22rem);
	line-height: 1.7;
	color: rgba(241, 207, 156, 0.9);
	margin: 0;
}

.single-article__featured {
	position: relative;
	width: 100%;
	border-radius: 18px;
	overflow: hidden;
	margin-bottom: 3rem;
	border: 1px solid rgba(212, 175, 55, 0.3);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.single-article__featured img {
	width: 100%;
	height: auto;
	display: block;
}

.single-article__body {
	font-size: 1.08rem;
	line-height: 1.95;
	color: rgba(241, 237, 230, 0.92);
	margin-bottom: 3.5rem;
}

.single-article__body p {
	margin-bottom: 1.8rem;
}

.single-article__body h2,
.single-article__body h3 {
	font-family: 'Outfit', sans-serif;
	color: #f1cf9c;
	margin: 2.5rem 0 1rem;
	font-weight: 400;
}

.single-article__body blockquote {
	border-left: 3px solid #d4af37;
	padding-left: 1.5rem;
	margin: 2rem 0;
	color: #fbbf24;
	font-style: italic;
	font-size: 1.15rem;
}

/* Autor Box */
.single-author-card {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem;
	border-radius: 18px;
	background: #0f0d15;
	border: 1px solid rgba(212, 175, 55, 0.3);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
	margin-top: 3.5rem;
}

.single-author-card__photo {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #d4af37;
	flex-shrink: 0;
}

.single-author-card__name {
	font-family: 'Outfit', sans-serif;
	font-size: 1.15rem;
	color: #ffffff;
	margin: 0 0 0.3rem;
}

.single-author-card__bio {
	font-size: 0.88rem;
	line-height: 1.6;
	color: rgba(230, 222, 210, 0.8);
	margin: 0 0 0.75rem;
}

.single-author-card__links {
	display: flex;
	gap: 1rem;
}

.single-author-card__links a {
	color: #fbbf24;
	font-size: 0.8rem;
	text-decoration: none;
	letter-spacing: 0.05em;
}

.single-author-card__links a:hover {
	text-decoration: underline;
}

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

@media (max-width: 640px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
	.single-author-card {
		flex-direction: column;
		text-align: center;
	}
	.single-author-card__links {
		justify-content: center;
	}
}
