/*
Theme Name: Astra Child - Prema Festivalis
Template: astra
Description: Astra child theme for premafestivalis.lt with custom blog post styling.
Version: 1.0.0
Author: Prema Festivalis
Text Domain: astra-child
*/

/* ==========================================================================
   Single Blog Post — Modern Clean Layout
   ========================================================================== */

/* ---- Featured Image ---- */
.ast-single-post .post-thumb-img-content img,
.ast-single-post .ast-blog-featured-section img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 16px;
	margin-bottom: 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---- Entry Header (Title & Meta area) ---- */
.ast-single-post .entry-header {
	text-align: center;
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e8e8e8;
}

.ast-single-post .entry-header .entry-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
	color: #1a1a2e;
}

/* ---- Post Meta (date, author, etc.) ---- */
.ast-single-post .entry-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.9rem;
	color: #6b7280;
	margin-top: 0.75rem;
}

.ast-single-post .entry-meta a {
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ast-single-post .entry-meta a:hover {
	color: #1a1a2e;
}

.ast-single-post .entry-meta .posted-on,
.ast-single-post .entry-meta .byline {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* Separator between meta items */
.ast-single-post .entry-meta > span + span::before {
	content: "·";
	margin-right: 0.15rem;
	color: #d1d5db;
	font-weight: 700;
}

/* ---- Hide Categories (everywhere on single post) ---- */
.ast-single-post .cat-links,
.ast-single-post .ast-taxonomy-container.cat-links,
body.single-post .cat-links {
	display: none !important;
}

/* ---- Content Area ---- */
.ast-single-post .entry-content {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.075rem;
	line-height: 1.85;
	color: #374151;
}

.ast-single-post .entry-content p {
	margin-bottom: 1.5em;
}

.ast-single-post .entry-content h2 {
	font-size: 1.65rem;
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: #1a1a2e;
}

.ast-single-post .entry-content h3 {
	font-size: 1.35rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: #1a1a2e;
}

.ast-single-post .entry-content img {
	border-radius: 12px;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.ast-single-post .entry-content blockquote {
	border-left: 4px solid #6366f1;
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	background: #f9fafb;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #4b5563;
}

.ast-single-post .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ---- Tags ---- */
.ast-single-post .tags-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid #e8e8e8;
}

.ast-single-post .tags-links a {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	background: #f3f4f6;
	color: #4b5563;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ast-single-post .tags-links a:hover {
	background: #6366f1;
	color: #fff;
}

/* ---- Post Navigation ---- */
.ast-single-post .post-navigation {
	max-width: 780px;
	margin: 3rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid #e8e8e8;
}

.ast-single-post .post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.ast-single-post .post-navigation .nav-previous,
.ast-single-post .post-navigation .nav-next {
	flex: 1;
}

.ast-single-post .post-navigation a {
	text-decoration: none;
	color: #1a1a2e;
	font-weight: 500;
	transition: color 0.2s ease;
}

.ast-single-post .post-navigation a:hover {
	color: #6366f1;
}

/* ---- Author Box (if Astra outputs one) ---- */
.ast-single-post .ast-author-box {
	max-width: 780px;
	margin: 3rem auto;
	padding: 2rem;
	background: #f9fafb;
	border-radius: 16px;
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.ast-single-post .ast-author-box .ast-author-avatar img {
	border-radius: 50%;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

/* ---- Comments Section ---- */
.ast-single-post .comments-area {
	max-width: 780px;
	margin: 3rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid #e8e8e8;
}

.ast-single-post .comments-area .comments-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #1a1a2e;
}

.ast-single-post .comments-area .comment-respond {
	margin-top: 2rem;
}

.ast-single-post .comments-area textarea,
.ast-single-post .comments-area input[type="text"],
.ast-single-post .comments-area input[type="email"],
.ast-single-post .comments-area input[type="url"] {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	transition: border-color 0.2s ease;
}

.ast-single-post .comments-area textarea:focus,
.ast-single-post .comments-area input:focus {
	border-color: #6366f1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ---- Related Posts Section ---- */
.ast-single-related-posts-container {
	margin-top: 3rem !important;
}

.ast-single-related-posts-container .entry-title {
	font-size: 1.1rem !important;
}

/* ---- Responsive Tweaks (Single Post) ---- */
@media (max-width: 768px) {
	.ast-single-post .entry-header {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ast-single-post .entry-content {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ast-single-post .post-navigation .nav-links {
		flex-direction: column;
		gap: 1rem;
	}

	.ast-single-post .ast-author-box {
		flex-direction: column;
		text-align: center;
	}
}


/* ==========================================================================
   Blog Archive / Listing Page — Modern Card Layout
   ========================================================================== */

/* ---- Hide Categories on Blog Listing ---- */
.blog .cat-links,
.archive .cat-links,
.home.blog .cat-links {
	display: none !important;
}

/* ---- Blog Grid Container ---- */
.blog .ast-row,
.home.blog .ast-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 2rem;
}

/* ---- Post Card ---- */
.blog .ast-article-post,
.home.blog .ast-article-post {
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.blog .ast-article-inner,
.home.blog .ast-article-inner {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog .ast-article-inner:hover,
.home.blog .ast-article-inner:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---- Card Featured Image ---- */
.blog .ast-blog-featured-section,
.home.blog .ast-blog-featured-section {
	margin: 0 !important;
	overflow: hidden;
}

.blog .ast-blog-featured-section img,
.home.blog .ast-blog-featured-section img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.blog .ast-article-inner:hover .ast-blog-featured-section img,
.home.blog .ast-article-inner:hover .ast-blog-featured-section img {
	transform: scale(1.05);
}

/* ---- Card Content Area ---- */
.blog .post-content,
.home.blog .post-content {
	padding: 1.25rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ---- Card Title ---- */
.blog .entry-title,
.home.blog .entry-title {
	font-size: 1.2rem !important;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 0.5rem;
	color: #1a1a2e;
}

.blog .entry-title a,
.home.blog .entry-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog .entry-title a:hover,
.home.blog .entry-title a:hover {
	color: #6366f1;
}

/* ---- Card Meta ---- */
.blog .entry-meta,
.home.blog .entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	font-size: 0.8rem;
	color: #9ca3af;
	margin-bottom: 0.75rem;
	order: -1;
}

.blog .entry-meta a,
.home.blog .entry-meta a {
	color: #9ca3af;
	text-decoration: none;
}

.blog .entry-meta a:hover,
.home.blog .entry-meta a:hover {
	color: #6366f1;
}

/* ---- Card Excerpt ---- */
.blog .ast-excerpt-container,
.home.blog .ast-excerpt-container {
	font-size: 0.925rem;
	line-height: 1.65;
	color: #6b7280;
	margin-bottom: 1rem;
	flex: 1;
}

.blog .ast-excerpt-container p,
.home.blog .ast-excerpt-container p {
	margin-bottom: 0;
}

/* ---- Read More Link ---- */
.blog .read-more a,
.home.blog .read-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #6366f1;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.blog .read-more a:hover,
.home.blog .read-more a:hover {
	gap: 0.6rem;
}

/* ---- Blog Page Title / Archive Header ---- */
.blog .ast-archive-description,
.home.blog .ast-archive-description {
	text-align: center;
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e8e8e8;
}

.blog .ast-archive-description .page-title,
.home.blog .ast-archive-description .page-title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: -0.02em;
}

/* ---- Pagination ---- */
.blog .ast-pagination,
.home.blog .ast-pagination {
	margin-top: 3rem;
	text-align: center;
}

.blog .ast-pagination .page-numbers,
.home.blog .ast-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	margin: 0 0.25rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #6b7280;
	background: #f3f4f6;
	text-decoration: none;
	transition: all 0.2s ease;
}

.blog .ast-pagination .page-numbers:hover,
.home.blog .ast-pagination .page-numbers:hover {
	background: #6366f1;
	color: #fff;
}

.blog .ast-pagination .page-numbers.current,
.home.blog .ast-pagination .page-numbers.current {
	background: #6366f1;
	color: #fff;
	font-weight: 700;
}

/* ---- Responsive (Blog Archive) ---- */
@media (max-width: 768px) {
	.blog .ast-row,
	.home.blog .ast-row {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.blog .ast-blog-featured-section img,
	.home.blog .ast-blog-featured-section img {
		height: 200px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.blog .ast-row,
	.home.blog .ast-row {
		grid-template-columns: repeat(2, 1fr);
	}
}
