/* ============================================================
   BLOG / JOURNAL LISTING (page-templates/page-blog.php)
   Only what theme.css doesn't already supply: the search box,
   category filter chips, the featured-post layout tweak and the
   blog card meta row. .glass, .grad-border, .blog-art, .blog-glyph,
   .cards/.card, .page-head/.page-lede/.crumb, .btn* and .entry-content
   all already exist in theme.css and are reused as-is.
============================================================ */

/* ---- Search box (hero) ---- */
.blog-search { position: relative; max-width: 28rem; margin: 2rem auto 0; }
.blog-search i {
	position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
	color: #F4C542; font-size: .9rem; pointer-events: none;
}
.blog-search input {
	width: 100%; background: rgba(21,13,58,.6); border: 1px solid rgba(198,168,255,.3);
	border-radius: 100px; padding: .85rem 1.2rem .85rem 3rem; color: #F3EEFF;
	font-family: 'Outfit', sans-serif; font-size: .95rem; outline: none;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.blog-search input::placeholder { color: rgba(220,214,255,.45); }
.blog-search input:focus { border-color: #F4C542; box-shadow: 0 0 0 3px rgba(244,197,66,.15); }

/* ---- Category filter chips ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 2.5rem 0; }
.chip {
	font-family: 'Outfit', sans-serif; font-size: .82rem; letter-spacing: .03em;
	padding: .55rem 1.15rem; border-radius: 100px; border: 1px solid rgba(198,168,255,.3);
	color: rgba(198,168,255,.9); background: rgba(110,63,243,.08); cursor: pointer;
	transition: all .25s ease; white-space: nowrap;
}
.chip:hover { border-color: #F4C542; color: #F4C542; }
.chip.active {
	background: linear-gradient(180deg,#FBE6A2,#F4C542); color: #2A1E00;
	border-color: transparent; box-shadow: 0 6px 20px rgba(244,197,66,.3);
}

/* ---- Featured post ---- */
.featured-post { display: grid; overflow: hidden; }
.featured-post .blog-art { height: 100%; min-height: 240px; }
.featured-post-body { padding: clamp(1.75rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .featured-post { grid-template-columns: 1fr 1fr; } }

/* ---- Blog card meta row ---- */
.blog-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .76rem; color: rgba(220,214,255,.6); }
.blog-meta i { color: #F4C542; margin-right: .3rem; }
.blog-card-title {
	font-family: 'Cinzel', serif; font-size: 1.12rem; line-height: 1.4; margin: .8rem 0 0;
	color: #FFF6E4; transition: color .25s ease;
}
.blog-card:hover .blog-card-title { color: #F4C542; }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.blog-card-foot .date { font-size: .74rem; color: rgba(220,214,255,.55); }
.blog-card-foot .date i { color: #F4C542; margin-right: .3rem; }
.blog-read-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: #F4C542; }
.blog-read-link i { font-size: .68rem; transition: transform .25s ease; }
.blog-card:hover .blog-read-link i { transform: translateX(3px); }

/* card body padding (the base .card rule already gives 1.5rem; the blog
   card needs its own body wrapper since .blog-art bleeds to the edges) */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card-body { padding: 1.5rem; }

.blog-empty { display: none; text-align: center; color: rgba(220,214,255,.7); margin-top: 2.5rem; }
.blog-empty.is-visible { display: block; }

.blog-load-more-wrap { text-align: center; margin-top: 3rem; }
[data-blog-card].is-hidden-filter,
[data-blog-card].is-hidden-page { display: none !important; }

/* ---- Newsletter ---- */
.newsletter-panel {
	padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center;
	background:
		radial-gradient(circle at 50% 120%, rgba(110,63,243,.4), transparent 60%),
		linear-gradient(160deg, rgba(110,63,243,.1), rgba(10,17,71,.4));
}
.newsletter-form {
	margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem;
	max-width: 26rem; margin-inline: auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input[type="email"] {
	flex: 1; background: rgba(42,28,107,.6); border: 1px solid rgba(198,168,255,.3);
	border-radius: 100px; padding: .8rem 1.25rem; font-size: .9rem; color: #F3EEFF;
	outline: none; transition: border-color .25s ease;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(220,214,255,.45); }
.newsletter-form input[type="email"]:focus { border-color: #F4C542; }
.newsletter-msg { margin-top: .9rem; font-size: .85rem; color: #F4C542; min-height: 1.2rem; }
