/**
 * Evesta content + title styles: breadcrumbs, the title hero / in-content
 * header, entry meta, featured images, tags, author box, related posts, post
 * navigation, archive headers and loop cards.
 */

/* ===================== TITLE ALIGN ===================== */
.evesta-title-align-left   { text-align: left; }
.evesta-title-align-center { text-align: center; }
.evesta-title-align-right  { text-align: right; }
.evesta-title-align-center .evesta-meta,
.evesta-title-align-center .evesta-title-cats,
.evesta-title-align-center .evesta-breadcrumb { justify-content: center; }
.evesta-title-align-right .evesta-meta,
.evesta-title-align-right .evesta-title-cats,
.evesta-title-align-right .evesta-breadcrumb { justify-content: flex-end; }

/* ===================== BREADCRUMBS ===================== */
.evesta-breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
	font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--evesta-color-text);
}
.evesta-breadcrumb a { color: inherit; opacity: 0.8; text-decoration: none; }
.evesta-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.evesta-breadcrumb__sep { opacity: 0.5; }
.evesta-breadcrumb__current { opacity: 0.65; }

/* ===================== HERO (above-content title) ===================== */
.evesta-hero {
	position: relative;
	padding: calc(var(--evesta-spacing) * 2.5) 0;
	background: var(--evesta-palette8, #f8fafc);
	margin-bottom: calc(var(--evesta-spacing) * 2);
}
.evesta-hero__inner { display: flex; flex-direction: column; gap: 0.5rem; }
.evesta-hero .evesta-entry__title,
.evesta-hero .evesta-archive-title { margin: 0; }
.evesta-hero.evesta-title-align-center .evesta-hero__inner { align-items: center; }
.evesta-hero.evesta-title-align-right .evesta-hero__inner { align-items: flex-end; }

/* ===================== IN-CONTENT ENTRY HEADER ===================== */
.evesta-entry__header { margin-bottom: calc(var(--evesta-spacing) * 1.25); }
.evesta-entry__title { margin: 0 0 0.5rem; }
.evesta-entry--single .evesta-entry__title { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.6rem); line-height: 1.15; }

/* Category pills above the title */
.evesta-title-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.evesta-title-cats a {
	display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
	text-transform: uppercase; text-decoration: none; padding: 0.25rem 0.6rem;
	border-radius: 999px; background: var(--evesta-palette2, #eef2ff); color: var(--evesta-palette1, #2563eb);
}

/* ===================== ENTRY META ===================== */
.evesta-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem;
	font-size: 0.875rem; opacity: 0.85;
}
.evesta-meta > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.evesta-meta a { color: inherit; text-decoration: none; }
.evesta-meta a:hover { text-decoration: underline; }
.evesta-meta__label { opacity: 0.7; }
.evesta-meta__avatar img { border-radius: 50%; display: block; width: 28px; height: 28px; }
.evesta-meta__author { gap: 0.45rem; }

/* ===================== FEATURED IMAGE ===================== */
.evesta-entry__feature { margin: 0 0 calc(var(--evesta-spacing) * 1.5); }
.evesta-entry__feature img { display: block; width: 100%; height: auto; border-radius: var(--evesta-radius); }
.evesta-entry__feature--above { margin-top: calc(var(--evesta-spacing) * -1); }

/* ===================== SINGLE CONTENT ===================== */
.evesta-entry--single .evesta-entry__content > * { margin-bottom: 1.2em; }
.evesta-page-links { margin: 1.5rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Tags + edit link */
.evesta-entry__footer { margin-top: calc(var(--evesta-spacing) * 1.5); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.evesta-tags a { display: inline-block; font-size: 0.8rem; text-decoration: none; margin-right: 0.4rem; opacity: 0.85; }
.evesta-tags a:hover { opacity: 1; text-decoration: underline; }
.evesta-tags__label { font-weight: 600; margin-right: 0.3rem; }
.evesta-edit-link a { font-size: 0.8rem; }

/* ===================== AUTHOR BOX ===================== */
.evesta-author-box {
	display: flex; gap: 1.25rem; align-items: flex-start;
	margin: calc(var(--evesta-spacing) * 2) 0;
	padding: calc(var(--evesta-spacing) * 1.5);
	background: var(--evesta-palette8, #f8fafc); border-radius: var(--evesta-radius);
}
.evesta-author-box__avatar img { border-radius: 50%; display: block; width: 72px; height: 72px; }
.evesta-author-box__name { margin: 0 0 0.3rem; font-size: 1.2rem; }
.evesta-author-box__name a { text-decoration: none; color: inherit; }
.evesta-author-box__bio { margin: 0; opacity: 0.85; }

/* ===================== POST NAVIGATION ===================== */
.evesta-post-nav { margin: calc(var(--evesta-spacing) * 2) 0; }
.evesta-post-nav .nav-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.evesta-post-nav a { text-decoration: none; display: block; }
.evesta-post-nav .nav-next { text-align: right; margin-left: auto; }
.evesta-post-nav__dir { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; }
.evesta-post-nav__title { font-weight: 600; }

/* ===================== RELATED POSTS ===================== */
.evesta-related { margin: calc(var(--evesta-spacing) * 2.5) 0; }
.evesta-related__title { margin: 0 0 1.25rem; font-size: 1.4rem; }
.evesta-related__grid { display: grid; gap: calc(var(--evesta-spacing) * 1.5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.evesta-related__thumb { display: block; margin-bottom: 0.6rem; }
.evesta-related__thumb img { display: block; width: 100%; height: auto; border-radius: var(--evesta-radius); aspect-ratio: 16 / 10; object-fit: cover; }
.evesta-related__item-title { margin: 0 0 0.3rem; font-size: 1.05rem; line-height: 1.3; }
.evesta-related__item-title a { text-decoration: none; color: inherit; }
.evesta-related__item-title a:hover { color: var(--evesta-color-link); }
.evesta-related__date { font-size: 0.8rem; opacity: 0.7; }

/* ===================== ARCHIVE HEADER + CARDS ===================== */
.evesta-archive-header { margin-bottom: calc(var(--evesta-spacing) * 2); }
.evesta-archive-title { margin: 0 0 0.5rem; }
.evesta-archive-description { opacity: 0.85; }
.evesta-archive-search { margin-top: 1rem; max-width: 420px; }
.evesta-title-align-center .evesta-archive-search { margin-left: auto; margin-right: auto; }

/* Blog / archive loop card - an elevated surface with the feature image
   flush at the top and the text in a padded body (Kadence-style). */
.evesta-entry--card {
	margin-bottom: calc(var(--evesta-spacing) * 2);
	background: var(--evesta-color-bg);
	border: 1px solid var(--evesta-color-border);
	border-radius: var(--evesta-radius);
	box-shadow: var(--evesta-shadow);
	overflow: hidden;
}
.evesta-entry--card .evesta-entry__thumb { display: block; margin: 0; }
.evesta-entry--card .evesta-entry__thumb img { display: block; width: 100%; height: auto; border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.evesta-entry--card:hover .evesta-entry__thumb img { transform: scale(1.03); }
.evesta-entry--card .evesta-entry__card-body { padding: calc(var(--evesta-spacing) * 1.5); }
.evesta-entry--card .evesta-entry__header { margin-bottom: 0.75rem; }
.evesta-entry--card .evesta-entry__title { font-size: 1.5rem; }
.evesta-entry--card .evesta-entry__title a { text-decoration: none; color: inherit; }
.evesta-entry--card .evesta-entry__title a:hover { color: var(--evesta-color-link); }
.evesta-entry--card .evesta-entry__excerpt { margin: 0.75rem 0; opacity: 0.9; }
.evesta-entry--card .evesta-entry__footer { margin-top: 1rem; }
.evesta-read-more { font-weight: 600; text-decoration: none; }
.evesta-read-more:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
	.evesta-author-box { flex-direction: column; }
	.evesta-post-nav .nav-links { flex-direction: column; }
	.evesta-post-nav .nav-next { text-align: left; margin-left: 0; }
}
