/* Loving Light Blog Pro — front-end styles */

:root {
	--llbp-gold: #c9973a;
	--llbp-gold-dark: #a87b28;
	--llbp-ink: #2b2620;
	--llbp-muted: #756c60;
	--llbp-bg: #fffdf9;
	--llbp-border: #ece3d3;
}

/* Hero banner — full-bleed regardless of the theme's content column width */
.llbp-hero {
	position: relative;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	margin-top: 0;
	margin-bottom: 2em;
	background-size: cover;
	background-position: center;
	background-color: #e5d5ab;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.llbp-hero-noimg {
	background-image: linear-gradient(135deg, #f1e6cf, #d9c299) !important;
}
.llbp-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,16,8,0.05) 0%, rgba(20,16,8,0.65) 100%);
}
.llbp-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px 40px;
	color: #fff;
}
.llbp-hero-badge {
	display: inline-block;
	background: var(--llbp-gold);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.llbp-hero-title {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	line-height: 1.2;
	margin: 0 0 10px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.llbp-hero-date {
	font-size: 0.85rem;
	opacity: 0.9;
}

/* Gallery scroll */
.llbp-gallery {
	margin: 0 0 2em;
}
.llbp-gallery-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.llbp-gallery-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	border: none;
	background: none;
	padding: 0;
	cursor: zoom-in;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
}
.llbp-gallery-item img {
	height: 190px;
	width: auto;
	display: block;
	border-radius: 10px;
	transition: transform 0.25s ease;
}
.llbp-gallery-item:hover img {
	transform: scale(1.03);
}

/* Lightbox */
.llbp-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10,8,4,0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 30px;
}
.llbp-lightbox.is-open {
	display: flex;
}
.llbp-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
}
.llbp-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
}

/* Reading time */
.llbp-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--llbp-muted);
	letter-spacing: 0.02em;
	margin: 0 0 1.25em;
	padding-bottom: 0.75em;
	border-bottom: 1px solid var(--llbp-border);
}

/* Social share */
.llbp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 2.5em 0 1em;
	padding-top: 1.5em;
	border-top: 1px solid var(--llbp-border);
}
.llbp-share-label {
	font-weight: 600;
	color: var(--llbp-ink);
	margin-right: 4px;
}
.llbp-share-btn {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: var(--llbp-gold);
	transition: background 0.2s ease, transform 0.15s ease;
}
.llbp-share-btn:hover {
	background: var(--llbp-gold-dark);
	transform: translateY(-1px);
	color: #fff;
}
.llbp-share-facebook  { background: #3b5998; }
.llbp-share-twitter   { background: #14171a; }
.llbp-share-whatsapp  { background: #25d366; }
.llbp-share-email     { background: var(--llbp-muted); }

/* Related posts + card grid */
.llbp-related-posts {
	margin-top: 3em;
}
.llbp-related-title {
	font-size: 1.15rem;
	margin-bottom: 1em;
	color: var(--llbp-ink);
}
.llbp-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.llbp-card-grid.llbp-columns-1 { grid-template-columns: 1fr; }
.llbp-card-grid.llbp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.llbp-card-grid.llbp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.llbp-card-grid.llbp-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 780px) {
	.llbp-card-grid,
	.llbp-card-grid.llbp-columns-2,
	.llbp-card-grid.llbp-columns-3,
	.llbp-card-grid.llbp-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.llbp-card-grid,
	.llbp-card-grid.llbp-columns-2,
	.llbp-card-grid.llbp-columns-3,
	.llbp-card-grid.llbp-columns-4 {
		grid-template-columns: 1fr;
	}
}

.llbp-card {
	display: flex;
	flex-direction: column;
	background: var(--llbp-bg);
	border: 1px solid var(--llbp-border);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.llbp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.10);
	color: inherit;
}
.llbp-card-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--llbp-border);
}
.llbp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.llbp-card:hover .llbp-card-thumb img {
	transform: scale(1.06);
}
.llbp-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1e6cf, #e5d5ab);
}
.llbp-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--llbp-gold);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
}
.llbp-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}
.llbp-card-title {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--llbp-ink);
}
.llbp-card-excerpt {
	font-size: 0.87rem;
	color: var(--llbp-muted);
	margin: 0;
	line-height: 1.5;
}
.llbp-card-meta {
	font-size: 0.75rem;
	color: var(--llbp-gold-dark);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-top: 4px;
}

/* Comments thread — styles WP core's default comment markup */
.llbp-comments {
	margin-top: 3em;
	padding-top: 2em;
	border-top: 1px solid var(--llbp-border);
}
.llbp-comments .comments-title,
.llbp-comments .comment-reply-title {
	font-size: 1.15rem;
	color: var(--llbp-ink);
	margin: 0 0 1em;
}
.llbp-comments ol.comment-list {
	list-style: none;
	margin: 0 0 2em;
	padding: 0;
}
.llbp-comments .comment {
	display: flex;
	gap: 14px;
	padding: 1.25em 0;
	border-bottom: 1px solid var(--llbp-border);
}
.llbp-comments .comment .avatar {
	border-radius: 50%;
	flex-shrink: 0;
}
.llbp-comments .comment-author .fn {
	font-weight: 700;
	font-style: normal;
	color: var(--llbp-ink);
	font-size: 0.92rem;
}
.llbp-comments .comment-metadata {
	font-size: 0.78rem;
	color: var(--llbp-muted);
	margin-bottom: 6px;
}
.llbp-comments .comment-metadata a {
	color: inherit;
}
.llbp-comments .comment-content p {
	margin: 0 0 0.6em;
	font-size: 0.92rem;
	color: var(--llbp-ink);
	line-height: 1.6;
}
.llbp-comments .comment-reply-link {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--llbp-gold-dark);
	text-decoration: none;
}
.llbp-comments ol.children {
	list-style: none;
	margin: 0 0 0 40px;
	padding: 0;
}
.llbp-comments #respond {
	margin-top: 1em;
}
.llbp-comments .comment-form p {
	margin: 0 0 12px;
}
.llbp-comments .comment-form label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--llbp-ink);
	margin-bottom: 4px;
}
.llbp-comments .comment-form input[type="text"],
.llbp-comments .comment-form input[type="email"],
.llbp-comments .comment-form input[type="url"],
.llbp-comments .comment-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 9px 12px;
	border: 1px solid var(--llbp-border);
	border-radius: 8px;
	font-size: 0.9rem;
	background: var(--llbp-bg);
	color: var(--llbp-ink);
}
.llbp-comments .comment-form textarea {
	max-width: 100%;
	min-height: 110px;
	resize: vertical;
}
.llbp-comments .form-submit input[type="submit"] {
	background: var(--llbp-gold);
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.llbp-comments .form-submit input[type="submit"]:hover {
	background: var(--llbp-gold-dark);
}
.llbp-comments .no-comments {
	color: var(--llbp-muted);
	font-style: italic;
}

.llbp-empty {
	color: var(--llbp-muted);
	font-style: italic;
}
