/**
 * Frontend styles for Poems plugin
 */

/* Archive Page Styles */
.poems-archive {
	padding: 20px 0;
}

.poems-archive .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Page Template: Poems Archive */
.page-template-poems-archive .poems-archive {
	padding: 20px 0;
}

.page-template-poems-archive .poems-archive .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Body class targeting for page template */
body.page-template-poems-archive .poems-archive {
	padding: 20px 0;
}

/* Main Archive Banner */
.poems-archive-main-banner {
	position: relative;
	width: 100%;
	margin: 30px 0;
	overflow: hidden;
	min-height: 300px;
}

.poems-archive-banner-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.poems-archive-banner-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.poems-archive-banner-content {
	position: relative;
	z-index: 10;
	padding: 60px 40px;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background: rgba(0, 0, 0, 0.4);
}

.poems-archive-banner-title {
	font-size: 3em;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #fff;
	line-height: 1.2;
	/* text-transform: uppercase; */
	letter-spacing: 2px;
}

.poems-archive-banner-description {
	font-size: 1.3em;
	line-height: 1.6;
	color: #fff;
	max-width: 800px;
}

.poems-archive-banner-description p {
	margin-bottom: 15px;
	color: #fff;
}

.poems-archive-banner-description p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.poems-archive-main-banner {
		min-height: 250px;
	}
	
	.poems-archive-banner-content {
		padding: 40px 25px;
		min-height: 250px;
	}
	
	.poems-archive-banner-title {
		font-size: 2em;
		margin-bottom: 15px;
	}
	
	.poems-archive-banner-description {
		font-size: 1.1em;
	}
}

.poems-archive .page-header {
	margin-bottom: 40px;
	text-align: center;
}

.poems-archive .page-title {
	font-size: 2.5em;
	margin-bottom: 10px;
}

.poems-archive .archive-description {
	font-size: 1.1em;
	color: #666;
}

.poems-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.poem-item {
	background: #fff;
	border: 1px solid #000;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poem-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.poem-thumbnail {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.poem-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.poem-item:hover .poem-thumbnail img {
	transform: scale(1.05);
}

.poem-content {
	padding: 20px;
}

.poem-title {
	margin: 0 0 10px 0;
	font-size: 1.5em;
}

.poem-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.poem-title a:hover {
	color: #000;
}

.poem-english-title {
	font-size: 1.1em;
	color: #666;
	font-style: italic;
	margin: 5px 0;
}

.poem-date {
	font-size: 0.9em;
	color: #999;
	margin: 10px 0;
}

.poem-excerpt {
	margin: 15px 0;
	color: #555;
	line-height: 1.6;
}

.poem-read-more {
	display: inline-block;
	margin-top: 15px;
	padding: 8px 20px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.3s ease;
	border: 1px solid #000;
}

.poem-read-more:hover {
	background: #333;
	border-color: #333;
}

.no-poems {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

/* Single Poem Page Styles */
.poem-single {
	padding: 40px 0;
}

.poem-single .container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

.poem-single-content {
	background: #fff;
	padding: 40px;
	border-radius: 0;
	border: 0px solid #000;
	box-shadow: none;
}

.poem-header {
	margin-bottom: 30px;
	text-align: center;
	/* border-bottom: 2px solid #e0e0e0; */
	padding-bottom: 20px;
}

.poem-single .poem-title {
	font-size: 2.5em;
	margin-bottom: 15px;
	color: #333;
}

.poem-single .poem-english-title {
	font-size: 1.5em;
	color: #666;
	margin: 10px 0;
	font-style: italic;
}

.poem-single .poem-date {
	font-size: 1em;
	color: #999;
	margin-top: 10px;
}

.poem-featured-image {
	margin: 30px 0;
	text-align: center;
}

.poem-featured-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.poem-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
	border: 1px solid #000;
	box-shadow: none;
}

/* Breadcrumbs and Language Switcher Row */
.poem-breadcrumbs-language-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 30px 0;
	padding: 15px 0;
	border-bottom: 1px solid #e0e0e0;
}

/* Breadcrumbs */
.poem-breadcrumbs {
	margin: 0;
	padding: 0;
	border-bottom: none;
	flex: 1;
}

.poem-breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.poem-breadcrumb-link:hover {
	color: #000;
	text-decoration: underline;
}

.poem-breadcrumb-icon {
	font-size: 18px;
	font-weight: normal;
}

.poem-breadcrumb-text {
	font-weight: normal;
}

.poem-body {
	margin: 40px 0;
	/* line-height: 0em; */
	font-size: 1.1em;
	color: #333;
}

.poem-body br {
	/* display: none; */
}
.single-poem .poem-content {
/* .poem-content { */
	white-space: pre-wrap;
	word-wrap: break-word;
}

.archive .poem-content {
	white-space: initial !important;
}

.archive article.poem {
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-direction: column;
}

.poem-content p {
	margin-bottom: 0px;
	line-height: 1.3em;
}

/* Audio Recordings */
.poem-audio-recordings {
	margin: 30px 0;
	padding: 30px 0;
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
}

.poem-audio-item {
	margin-bottom: 30px;
}

.poem-audio-item:last-child {
	margin-bottom: 0;
}

.poem-audio-title {
	font-size: 1.2em;
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #000;
}

.poem-audio-player {
	width: 100%;
	max-width: 600px;
	height: 54px;
	border: 1px solid #000;
	border-radius: 0;
	background: #4a4a4a;
}

.poem-audio-player::-webkit-media-controls-panel {
	background-color: #000;
}

.poem-audio-player::-webkit-media-controls-play-button,
.poem-audio-player::-webkit-media-controls-volume-slider,
.poem-audio-player::-webkit-media-controls-timeline {
	filter: invert(1);
}

/* Tab Styles */
.poem-tabs {
	margin: 30px 0;
}

.poem-tab-nav {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 30px;
	gap: 0;
}

.poem-tab-button {
	flex: 1;
	padding: 15px 25px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 1.1em;
	font-weight: 600;
	color: #666;
	transition: all 0.3s ease;
	text-align: center;
}

.poem-tab-button:hover {
	color: #333;
	background-color: #f9f9f9;
}

.poem-tab-button.active {
	color: #000;
	border-bottom-color: #000;
	background-color: #fff;
}

.poem-tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.poem-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.poem-footer {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.poem-meta {
	margin-bottom: 30px;
}

.poem-meta span {
	display: block;
	margin-bottom: 10px;
	font-size: 0.95em;
}

.poem-meta strong {
	color: #333;
	margin-right: 5px;
}

.poem-meta a {
	color: #000;
	text-decoration: none;
}

.poem-meta a:hover {
	text-decoration: underline;
}

.poem-other-poems {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.other-poems-title {
	font-size: 1.5em;
	margin: 0 0 20px 0;
	color: #333;
	font-weight: 600;
}

.other-poems-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.other-poem-item {
	width: 100%;
}

.other-poem-item a {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: #fff;
	border-radius: 0;
	text-decoration: none;
	color: #000;
	transition: all 0.3s ease;
	border: 1px solid #000;
}

.other-poem-item a:hover {
	background: #000;
	color: #fff;
	border-color: #000;
	box-shadow: none;
	transform: translateX(5px);
}

.other-poem-item a:hover .other-poem-title {
	color: white !important;
}

.other-poem-thumbnail {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	overflow: hidden;
	border-radius: 0;
	background: #000;
	border: 1px solid #000;
}

.other-poem-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.other-poem-content {
	flex: 1;
	min-width: 0;
}

.other-poem-title {
	display: block;
	font-weight: 600;
	color: #333;
	font-size: 1em;
	margin-bottom: 5px;
	line-height: 1.3;
}

.other-poem-english-title {
	display: block;
	font-size: 0.9em;
	color: #666;
	font-style: italic;
	line-height: 1.3;
}

/* Related Poems | Essays Section */
.related-poems {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid #e0e0e0;
}

.related-poems-title {
	font-size: 2em;
	margin-bottom: 30px;
	color: #333;
	text-align: center;
}

.related-poems-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 25px;
	margin-top: 30px;
}

.related-poem-item {
	background: #fff;
	border: 1px solid #000;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-poem-item:hover {
	transform: translateY(-3px);
	box-shadow: none;
	border-color: #000;
}

.related-poem-thumbnail {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.related-poem-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.related-poem-item:hover .related-poem-thumbnail img {
	transform: scale(1.05);
}

.related-poem-content {
	padding: 20px;
}

.related-poem-title {
	margin: 0 0 10px 0;
	font-size: 1.3em;
}

.related-poem-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.related-poem-title a:hover {
	color: #000;
}

.related-poem-english-title {
	font-size: 0.95em;
	color: #666;
	font-style: italic;
	margin: 5px 0;
}

.related-poem-date {
	font-size: 0.85em;
	color: #999;
	margin: 10px 0;
}

.related-poem-link {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 16px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid #000;
	font-size: 0.9em;
	transition: background 0.3s ease;
}

.related-poem-link:hover {
	background: #333;
	border-color: #333;
}

/* Language Switcher */
.poems-language-switcher {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	border-bottom: none;
	flex-shrink: 0;
}

.poems-lang-flag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	background: #fff;
	border: 1px solid #000;
	border-radius: 0;
	text-decoration: none;
	color: #000;
	font-size: 0.9em;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.poems-lang-flag:hover {
	background: #000;
	border-color: #000;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: none;
}

.poems-lang-flag.active {
	background: #000;
	border-color: #000;
	color: #fff;
}

.poems-lang-flag.active:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.poems-lang-flag .flag-icon {
	display: inline-block;
	width: 24px;
	height: 18px;
	background-size: cover;
	background-position: center;
	border-radius: 0;
	border: 1px solid #000;
}

.poems-lang-flag.active .flag-icon {
	border-color: #fff;
}

.flag-icon-gr {
	background-image: url("flag-gr.svg");
	background-size: cover;
	background-position: center;
}

.flag-icon-gb {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect fill='%23012169' width='900' height='600'/%3E%3Cpath fill='%23FFFFFF' d='M0 0l900 600M900 0L0 600' stroke='%23FFFFFF' stroke-width='120'/%3E%3Cpath fill='%23C8102E' d='M0 0l900 600M900 0L0 600' stroke='%23C8102E' stroke-width='80'/%3E%3Cpath fill='%23FFFFFF' d='M450 0v600M0 300h900' stroke='%23FFFFFF' stroke-width='200'/%3E%3Cpath fill='%23C8102E' d='M450 0v600M0 300h900' stroke='%23C8102E' stroke-width='120'/%3E%3C/svg%3E");
}

.poems-lang-flag .lang-label {
	font-size: 0.9em;
}

/* Language-specific styles */
.poems-lang-el .poem-content {
	direction: ltr;
	text-align: left;
}

.poems-lang-en .poem-content {
	direction: ltr;
	text-align: left;
}

/* Banner Styles */
.poems-banner-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin: 20px 0;
	min-height: 500px;
	display: block;
}

.poems-banner-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.poems-banner-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.poems-banner-content {
	position: relative;
	z-index: 10;
	padding: 80px 60px;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	min-height: 500px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	pointer-events: auto;
}

.poems-banner-languages {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	width: 100%;
	max-width: 1200px;
}

.poems-banner-language {
	background: rgba(0, 0, 0, 0.7);
	padding: 30px;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(5px);
}

.poems-banner-language-title {
	font-size: 0.9em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 15px;
	color: rgba(255, 255, 255, 0.8);
	border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	padding-bottom: 10px;
}

.poems-banner-title {
	font-size: 2.5em;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #fff;
	line-height: 1.2;
}

.poems-banner-description {
	font-size: 1.2em;
	line-height: 1.6;
	margin-bottom: 25px;
	color: #fff;
}

.poems-banner-description p {
	margin-bottom: 15px;
	color: #fff;
}

.poems-banner-description p:last-child {
	margin-bottom: 0;
}

.poems-banner-link {
	display: inline-block;
	padding: 12px 30px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid #000;
	font-weight: 600;
	font-size: 1.1em;
	transition: all 0.3s ease;
	box-shadow: none;
	margin-top: 10px;
}

.poems-banner-link:hover {
	background: #333;
	border-color: #333;
	transform: translateY(-2px);
	box-shadow: none;
	color: #fff;
}

/* Desktop: Landscape banner */
@media (min-width: 769px) {
	.poems-banner-container {
		aspect-ratio: 16 / 9;
		/* Landscape */
		min-height: 500px;
		position: relative;
	}

	.poems-banner-background {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
	}

	.poems-banner-content {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		padding: 0px 0px;
	}

	.poems-banner-languages {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

/* Mobile: Square banner */
@media (max-width: 768px) {
	.poems-banner-container {
		aspect-ratio: 1 / 1;
		/* Square */
		min-height: 1000px;
		position: relative;
	}

	.poems-banner-background {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
	}

	.poems-banner-content {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		padding: 0px 0px;
	}

	.poems-banner-languages {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.poems-banner-language {
		padding: 25px 20px;
	}

	.poems-banner-title {
		font-size: 1.8em;
		margin-bottom: 15px;
	}

	.poems-banner-description {
		font-size: 1em;
		margin-bottom: 20px;
	}

	.poems-banner-link {
		padding: 10px 24px;
		font-size: 1em;
	}
}

/* Dokimia Section */
.poems-dokimia-section {
	margin: 40px 0;
}

.poems-dokimia-header {
	margin-bottom: 30px;
	text-align: center;
}

.poems-dokimia-section-title {
	font-size: 2.5em;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #000;
	/* text-transform: uppercase; */
	letter-spacing: 2px;
}

.poems-dokimia-section-description {
	font-size: 1.1em;
	line-height: 1.6;
	color: #333;
	max-width: 800px;
	margin: 0 auto;
}

.poems-dokimia-section-description p {
	margin-bottom: 10px;
}

.poems-dokimia-section-description p:last-child {
	margin-bottom: 0;
}

/* Dokimia Banner Grid Layout (Columns) */
.poems-dokimia-banner-container {
	width: 100%;
	margin: 30px 0;
}

.poems-dokimia-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 0;
	padding: 0;
}

.poems-dokimia-item {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e0e0e0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poems-dokimia-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.poems-dokimia-item-background {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.poems-dokimia-item-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.poems-dokimia-item:hover .poems-dokimia-item-background img {
	transform: scale(1.05);
}

.poems-dokimia-item-content {
	padding: 25px;
	background: #fff;
}

.poems-dokimia-item-title {
	font-size: 1.4em;
	font-weight: normal;
	margin: 0 0 15px 0;
	line-height: 1.3;
}

.poems-dokimia-item-title a {
	color: #000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.poems-dokimia-item-title a:hover {
	color: #333;
	text-decoration: underline;
}

.poems-dokimia-item-subtitle {
	font-size: 1em;
	line-height: 1.5;
	margin-bottom: 20px;
	color: #666;
}

.poems-dokimia-item-link {
	display: inline-block;
	padding: 10px 25px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid #000;
	font-weight: normal;
	font-size: 0.95em;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.poems-dokimia-item-link:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Responsive Grid */
@media (min-width: 1024px) {
	.poems-dokimia-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {
	.poems-dokimia-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}

@media (max-width: 768px) {
	.poems-dokimia-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.poems-dokimia-item-background {
		height: 200px;
	}
	
	.poems-dokimia-item-content {
		padding: 20px;
	}
	
	.poems-dokimia-item-title {
		font-size: 1.2em;
	}
	
	.poems-dokimia-item-subtitle {
		font-size: 0.9em;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.poem-breadcrumbs-language-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.poem-breadcrumbs {
		width: 100%;
	}
	
	.poems-language-switcher {
		justify-content: flex-start;
		margin-bottom: 0;
		width: 100%;
	}

	.poems-lang-flag {
		padding: 6px 12px;
		font-size: 0.85em;
	}

	.poems-lang-flag .lang-label {
		display: none;
	}

	.poems-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.related-poems-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.poem-single-content {
		padding: 20px;
	}

	.poem-single .poem-title {
		font-size: 2em;
	}

	.poem-nav-links {
		flex-direction: column;
	}

	.related-poems-title {
		font-size: 1.5em;
	}
}

/* Poems Search */
.poems-search-container {
	margin: 30px 0;
	width: 100%;
}

.poems-search-in-single {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #000;
}

.poems-search-in-archive {
	margin-bottom: 30px;
	padding-bottom: 0px;
	/* border-bottom: 1px solid #000; */
}

.poems-search-wrapper {
	position: relative;
	max-width: 600px;
	margin: 0 auto;
}

.poems-search-input {
	width: 100%;
	padding: 12px 20px;
	font-size: 1.1em;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	outline: none;
	transition: border-color 0.3s ease;
}

.poems-search-input:focus {
	border-color: #000;
	background: #fff;
}

.poems-search-input::placeholder {
	color: #666;
}

.poems-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #000;
	border-top: none;
	border-radius: 0;
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	box-shadow: none;
}

.poems-search-results.active {
	display: block;
}

.poems-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.poems-search-list li {
	border-bottom: 1px solid #000;
}

.poems-search-list li:last-child {
	border-bottom: none;
}

.poems-search-list li a {
	display: block;
	padding: 12px 20px;
	color: #000;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.poems-search-list li a:hover {
	background: #000;
	color: #fff;
}

.poems-search-loading,
.poems-search-no-results,
.poems-search-error {
	padding: 20px;
	text-align: center;
	color: #000;
}

.poems-search-error {
	color: #000;
}

/* Responsive search */
@media (max-width: 768px) {
	.poems-search-wrapper {
		max-width: 100%;
	}

	.poems-search-input {
		font-size: 1em;
		padding: 10px 15px;
	}

	.poems-search-results {
		max-height: 300px;
	}

	.poems-search-list li a {
		padding: 10px 15px;
		font-size: 0.95em;
	}
}

/* Essays Shortcode */
.poems-essays-shortcode {
	margin: 40px 0;
}

.poems-essays-shortcode .poems-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.poems-essays-shortcode.poems-columns-1 .poems-grid {
	grid-template-columns: 1fr;
}

.poems-essays-shortcode.poems-columns-2 .poems-grid {
	grid-template-columns: repeat(2, 1fr);
}

.poems-essays-shortcode.poems-columns-3 .poems-grid {
	grid-template-columns: repeat(3, 1fr);
}

.poems-essays-shortcode.poems-columns-4 .poems-grid {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
	.poems-essays-shortcode .poems-grid {
		grid-template-columns: 1fr;
	}
}

/* Load More Button */
.poems-load-more-wrapper {
	text-align: center;
	margin: 40px 0;
	padding: 20px 0;
}

.poems-load-more-btn {
	background-color: #000;
	color: #fff;
	border: none;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: normal;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.poems-load-more-btn:hover {
	background-color: #333;
	transform: translateY(-2px);
}

.poems-load-more-btn:active {
	transform: translateY(0);
}

.poems-load-more-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
}

.poems-load-more-spinner {
	display: inline-block;
	margin-left: 15px;
	color: #666;
	font-style: italic;
}

/* Footer Text */
.poems-footer-text {
	margin-top: 60px;
	padding: 30px 0;
	border-top: 1px solid #e0e0e0;
	background: #f9f9f9;
}

.poems-footer-text .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.poems-footer-text p {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.6;
	color: #666;
}

/* All Poets/Artists List */
.poems-all-artists {
	margin-top: 40px;
	padding: 30px 0;
	border-top: 1px solid #e0e0e0;
}

.poems-all-artists .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.poems-artists-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 400px;
	max-height: 50vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 10px;
}

/* Custom Scrollbar Styling */
.poems-artists-list::-webkit-scrollbar {
	width: 8px;
}

.poems-artists-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.poems-artists-list::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
	transition: background 0.3s ease;
}

.poems-artists-list::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Firefox Scrollbar */
.poems-artists-list {
	scrollbar-width: thin;
	scrollbar-color: #888 #f1f1f1;
}

.poems-artists-greek,
.poems-artists-english {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 15px;
	line-height: 1.4;
}

.poem-artist-name {
	font-size: 0.85em;
	color: #666;
	text-transform: lowercase;
	text-decoration: none;
	transition: color 0.3s ease;
}

.poem-artist-name:hover {
	color: #000;
	text-decoration: underline;
}

.poem-artist-name::after {
	content: ' |';
	margin-left: 0;
	color: #666;
}

.poem-artist-name:last-child::after {
	content: '';
}

@media (max-width: 768px) {
	.poems-footer-text {
		margin-top: 40px;
		padding: 20px 0;
	}
	
	.poems-footer-text p {
		font-size: 0.85em;
	}
	
	.poems-all-artists {
		margin-top: 30px;
		padding: 20px 0;
	}
	
	.poems-artists-list {
		height: 300px;
		max-height: 40vh;
	}
	
	.poem-artist-name {
		font-size: 0.8em;
	}
}