/**
 * Gicell Academy — Blog (índice + entrada individual) monocromo luxury.
 * TODO scopeado bajo .gicell-blog. Depende de gicell-tokens.css (global).
 * Cargar solo en el blog: is_home() || is_single() || is_archive() || is_category().
 */

/* Fondo paper en las vistas de blog (el CSS solo carga aquí). */
body.blog,
body.single-post,
body.archive,
body.category {
	background: var(--paper);
}

.gicell-blog {
	font-family: var(--font-body);
	color: var(--ink);
}

.gicell-blog__container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 20px 80px;
}

/* Íconos de línea (no hay .ic global fuera del chrome). */
.gicell-blog .ic {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* ═══════════ Cabecera de archivo ═══════════ */
.gicell-blog-head {
	margin-bottom: 40px;
}

.gicell-blog-eyebrow {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 10px;
}

.gicell-blog-title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 42px;
	line-height: 1.1;
	margin: 0 0 12px;
	color: var(--ink);
}

.gicell-blog-intro {
	max-width: 620px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* ═══════════ Grid de cards ═══════════ */
.gicell-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px 24px;
}

.gicell-blog-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gicell-blog-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gicell-blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--paper-2);
	overflow: hidden;
}

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

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

/* Placeholder tipográfico (sin featured image). */
.gicell-blog-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--gold-soft), var(--gold));
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 64px;
	line-height: 1;
	color: #14110a;
}

.gicell-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 18px 16px;
}

.gicell-blog-card__cat {
	align-self: flex-start;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	text-decoration: none;
	margin-bottom: 10px;
}

.gicell-blog-card__cat:hover {
	color: var(--ink);
}

.gicell-blog-card__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 10px;
}

.gicell-blog-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.gicell-blog-card__title a:hover {
	color: var(--gold);
}

.gicell-blog-card__excerpt {
	margin: 0 0 18px;
}

.gicell-blog-card__excerpt p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gicell-blog-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.gicell-blog-card__date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--muted);
}

.gicell-blog-card__date .ic {
	width: 14px;
	height: 14px;
	color: var(--gold);
}

.gicell-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.gicell-blog-card__more .ic {
	width: 15px;
	height: 15px;
	transition: transform 0.25s ease;
}

.gicell-blog-card__more:hover {
	color: var(--gold);
}

.gicell-blog-card__more:hover .ic {
	transform: translateX(3px);
}

/* ═══════════ Empty state ═══════════ */
.gicell-blog-empty {
	text-align: center;
	max-width: 460px;
	margin: 40px auto 24px;
	padding: 56px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.gicell-blog-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--gold);
	margin-bottom: 20px;
}

.gicell-blog-empty__icon .ic {
	width: 26px;
	height: 26px;
}

.gicell-blog-empty__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 24px;
	margin: 0 0 10px;
	color: var(--ink);
}

.gicell-blog-empty__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
}

/* ═══════════ Paginación ═══════════ */
.gicell-blog-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.gicell-blog-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gicell-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gicell-blog-pagination .page-numbers .ic {
	width: 16px;
	height: 16px;
}

.gicell-blog-pagination .page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.gicell-blog-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--white);
}

.gicell-blog-pagination .page-numbers.dots {
	border: none;
	color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
 * ENTRADA INDIVIDUAL (single)
 * ═══════════════════════════════════════════════════════════════ */
.gicell-blog--single .gicell-blog__container {
	max-width: 760px;
}

.gicell-post__head {
	margin-bottom: 28px;
}

.gicell-post__cat {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	text-decoration: none;
	margin-bottom: 16px;
}

.gicell-post__cat:hover {
	color: var(--ink);
}

.gicell-post__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 40px;
	line-height: 1.12;
	margin: 0 0 20px;
	color: var(--ink);
}

.gicell-post__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: var(--muted);
}

.gicell-post__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.gicell-post__meta-item .ic {
	width: 15px;
	height: 15px;
	color: var(--gold);
}

.gicell-post__meta-sep {
	width: 1px;
	height: 14px;
	background: var(--line);
}

.gicell-post__cover {
	margin: 0 0 36px;
	border-radius: var(--radius);
	overflow: hidden;
}

.gicell-post__cover-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ═══════════ Prosa de lectura ═══════════ */
.gicell-prose {
	font-size: 17px;
	line-height: 1.8;
	color: var(--ink);
}

.gicell-prose > *:first-child {
	margin-top: 0;
}

.gicell-prose p {
	margin: 0 0 22px;
}

.gicell-prose h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.25;
	color: var(--ink);
	margin: 44px 0 16px;
}

.gicell-prose h3 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.3;
	color: var(--ink);
	margin: 34px 0 14px;
}

.gicell-prose a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color 0.15s ease;
}

.gicell-prose a:hover {
	color: var(--ink);
}

.gicell-prose strong {
	font-weight: 600;
	color: var(--ink);
}

.gicell-prose ul,
.gicell-prose ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.gicell-prose li {
	margin-bottom: 10px;
	padding-left: 4px;
}

.gicell-prose ul li::marker {
	color: var(--gold);
}

.gicell-prose ol li::marker {
	color: var(--gold);
	font-family: var(--font-display);
}

.gicell-prose blockquote {
	margin: 30px 0;
	padding: 6px 0 6px 24px;
	border-left: 3px solid var(--gold);
	background: var(--paper-2);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 20px 24px;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-2);
}

.gicell-prose blockquote p:last-child {
	margin-bottom: 0;
}

.gicell-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	display: block;
	margin: 30px 0;
}

.gicell-prose figure {
	margin: 30px 0;
}

.gicell-prose figure img {
	margin: 0;
}

.gicell-prose figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

.gicell-prose hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 40px 0;
}

.gicell-prose code {
	font-family: "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.88em;
	background: var(--paper-2);
	padding: 2px 6px;
	border-radius: 5px;
}

/* ═══════════ Pie del post ═══════════ */
.gicell-post__foot {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.gicell-post__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.gicell-post__back .ic {
	width: 16px;
	height: 16px;
	color: var(--gold);
	transition: transform 0.25s ease;
}

.gicell-post__back:hover {
	color: var(--gold);
}

.gicell-post__back:hover .ic {
	transform: translateX(-3px);
}

/* Navegación anterior/siguiente. */
.gicell-blog .post-navigation {
	margin-top: 28px;
}

.gicell-blog .post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gicell-blog .post-navigation .nav-previous,
.gicell-blog .post-navigation .nav-next {
	flex: 1 1 240px;
	min-width: 0;
}

.gicell-blog .post-navigation .nav-next {
	text-align: right;
}

.gicell-blog .post-navigation a {
	display: block;
	padding: 16px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gicell-blog .post-navigation a:hover {
	border-color: var(--gold);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.gicell-postnav__dir {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 6px;
}

.gicell-postnav__title {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.3;
	color: var(--ink);
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 600px) {
	.gicell-blog__container {
		padding: 36px 18px 64px;
	}

	.gicell-blog-grid {
		grid-template-columns: 1fr;
	}

	.gicell-blog-title {
		font-size: 32px;
	}

	.gicell-post__title {
		font-size: 30px;
	}

	.gicell-prose {
		font-size: 16px;
	}

	.gicell-prose h2 {
		font-size: 24px;
	}

	.gicell-prose blockquote {
		font-size: 18px;
	}

	.gicell-blog .post-navigation .nav-next {
		text-align: left;
	}
}
