/*
 * AC Cook Poetry — Front-end Styles
 *
 * Lavender palette for Aimee's poetry section.
 * All selectors use body .acp-poem- prefix for specificity.
 */

/* ── Custom Properties ────────────────────────────────────── */

:root {
	--acp-poem-primary: #3b3a36;
	--acp-poem-accent: #8b7bb5;
	--acp-poem-accent-hover: #7a6aa4;
	--acp-poem-muted: #9a948b;
	--acp-poem-card-bg: #faf8fd;
	--acp-poem-border: #ddd8e8;
	--acp-poem-bg-warm: #f5f2f8;
	--acp-poem-bg-blush: #efe8f5;
	--acp-poem-text: #3b3a36;
	--acp-poem-text-light: #7a756d;
	--acp-poem-radius: 4px;
	--acp-poem-radius-lg: 8px;
	--acp-poem-shadow: 0 2px 12px rgba(139, 123, 181, 0.06);
	--acp-poem-shadow-hover: 0 6px 24px rgba(139, 123, 181, 0.12);
	--acp-poem-container: 1240px;
	--acp-poem-gap: 28px;
	--acp-poem-transition: 0.25s ease;
}

/* ── Fonts ────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

/* ── Container ────────────────────────────────────────────── */

body .acp-poem-container {
	width: 100%;
	max-width: var(--acp-poem-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

body .acp-poem-listing {
	width: 100%;
	max-width: var(--acp-poem-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ── Filter Tabs ──────────────────────────────────────────── */

body .acp-poem-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--acp-poem-border);
}

body .acp-poem-filter-tabs .acp-poem-filter-tab {
	display: inline-block;
	padding: 8px 20px;
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--acp-poem-text-light);
	background: transparent;
	border: 1px solid var(--acp-poem-border);
	border-radius: 24px;
	transition: all var(--acp-poem-transition);
	cursor: pointer;
}

body .acp-poem-filter-tabs .acp-poem-filter-tab:hover {
	color: var(--acp-poem-accent);
	border-color: var(--acp-poem-accent);
	background: var(--acp-poem-bg-warm);
}

body .acp-poem-filter-tabs .acp-poem-filter-tab--active {
	background: var(--acp-poem-accent);
	color: #fff;
	border-color: var(--acp-poem-accent);
}

/* ── Card Grid ────────────────────────────────────────────── */

body .acp-poem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--acp-poem-gap);
	margin-bottom: 40px;
}

body .acp-poem-card {
	background: var(--acp-poem-card-bg);
	border-radius: var(--acp-poem-radius-lg);
	overflow: hidden;
	box-shadow: var(--acp-poem-shadow);
	transition: all var(--acp-poem-transition);
	border: 1px solid var(--acp-poem-border);
}

body .acp-poem-card:hover {
	box-shadow: var(--acp-poem-shadow-hover);
	transform: translateY(-3px);
}

body .acp-poem-card-image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16/10;
}

body .acp-poem-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--acp-poem-transition);
}

body .acp-poem-card:hover .acp-poem-card-image {
	transform: scale(1.03);
}

body .acp-poem-card--no-image .acp-poem-card-body {
	padding-top: 28px;
	border-top: 3px solid var(--acp-poem-accent);
}

body .acp-poem-card-body {
	padding: 20px 22px 22px;
}

body .acp-poem-card-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
}

body .acp-poem-card-title a {
	color: var(--acp-poem-text);
	text-decoration: none;
	transition: color var(--acp-poem-transition);
}

body .acp-poem-card-title a:hover {
	color: var(--acp-poem-accent);
}

body .acp-poem-card-meta {
	font-family: "Lato", sans-serif;
	font-size: 13px;
	color: var(--acp-poem-muted);
	margin: 0 0 8px;
	line-height: 1.4;
}

body .acp-poem-card-themes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

body .acp-poem-badge {
	display: inline-block;
	padding: 3px 12px;
	font-family: "Lato", sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--acp-poem-accent);
	background: var(--acp-poem-bg-blush);
	border-radius: 20px;
}

body .acp-poem-card-summary {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: var(--acp-poem-text-light);
	line-height: 1.6;
	margin: 0;
}

body .acp-poem-card-excerpt {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 15px;
	font-style: italic;
	color: var(--acp-poem-text-light);
	line-height: 1.7;
	margin: 8px 0 0;
}

/* ── Single Poem ──────────────────────────────────────────── */

body .acp-poem-single {
	max-width: 740px;
	margin: 48px auto 60px;
}

body .acp-poem-header {
	text-align: center;
	margin-bottom: 40px;
}

body .acp-poem-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--acp-poem-text);
	margin: 0 0 16px;
	letter-spacing: -0.5px;
}

body .acp-poem-meta {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: var(--acp-poem-muted);
	margin: 0 0 20px;
}

body .acp-poem-meta-sep {
	margin: 0 8px;
	color: var(--acp-poem-border);
}

body .acp-poem-theme-link {
	color: var(--acp-poem-accent);
	text-decoration: none;
}

body .acp-poem-theme-link:hover {
	color: var(--acp-poem-accent-hover);
	text-decoration: underline;
}

body .acp-poem-external-link {
	display: inline-block;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--acp-poem-accent);
	text-decoration: none;
	padding: 10px 24px;
	border: 1.5px solid var(--acp-poem-accent);
	border-radius: 24px;
	transition: all var(--acp-poem-transition);
}

body .acp-poem-external-link:hover {
	background: var(--acp-poem-accent);
	color: #fff;
}

body .acp-poem-arrow {
	margin-left: 4px;
}

/* ── Background Image ─────────────────────────────────────── */

body .acp-poem-hero {
	margin-bottom: 36px;
	border-radius: var(--acp-poem-radius-lg);
	overflow: hidden;
}

body .acp-poem-hero img {
	width: 100%;
	height: auto;
	display: block;
}

body .acp-poem-hero figcaption {
	font-family: "Lato", sans-serif;
	font-size: 12px;
	color: var(--acp-poem-muted);
	text-align: center;
	padding: 8px 0;
}

/* ── Poem Body ────────────────────────────────────────────── */

body .acp-poem-body {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 20px;
	line-height: 1.9;
	color: var(--acp-poem-text);
	text-align: center;
	padding: 32px 20px;
	margin-bottom: 32px;
	background: var(--acp-poem-bg-warm);
	border-radius: var(--acp-poem-radius-lg);
	border-left: 3px solid var(--acp-poem-accent);
	border-right: 3px solid var(--acp-poem-accent);
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* ── Image Poem ──────────────────────────────────────────── */

body .acp-poem-body--image {
	background: none;
	border-left: none;
	border-right: none;
	padding: 16px 0;
	text-align: center;
	white-space: normal;
}

body .acp-poem-content-image {
	max-width: 100%;
	height: auto;
	border-radius: var(--acp-poem-radius-lg);
	box-shadow: var(--acp-poem-shadow);
	cursor: pointer;
	transition: transform var(--acp-poem-transition), box-shadow var(--acp-poem-transition);
}

body .acp-poem-content-image:hover {
	transform: scale(1.01);
	box-shadow: var(--acp-poem-shadow-hover);
}

body .acp-poem-body--image a {
	display: inline-block;
	text-decoration: none;
}

/* ── Audio Player ─────────────────────────────────────────── */

body .acp-poem-audio {
	margin: 24px 0;
	text-align: center;
}

body .acp-poem-audio-label {
	display: block;
	font-family: "Lato", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--acp-poem-muted);
	margin-bottom: 10px;
}

body .acp-poem-audio audio {
	width: 100%;
	max-width: 500px;
	border-radius: 24px;
}

body .acp-poem-audio figcaption {
	font-family: "Lato", sans-serif;
	font-size: 12px;
	color: var(--acp-poem-muted);
	margin-top: 6px;
}

/* ── Gallery ──────────────────────────────────────────────── */

body .acp-poem-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 24px 0;
}

body .acp-poem-gallery-figure {
	border-radius: var(--acp-poem-radius);
	overflow: hidden;
}

body .acp-poem-gallery-figure img {
	width: 100%;
	height: auto;
	display: block;
}

body .acp-poem-gallery-figure figcaption {
	font-family: "Lato", sans-serif;
	font-size: 12px;
	color: var(--acp-poem-muted);
	padding: 6px 0;
}

/* ── Footer ───────────────────────────────────────────────── */

body .acp-poem-footer {
	text-align: center;
	padding-top: 32px;
	margin-top: 40px;
	border-top: 1px solid var(--acp-poem-border);
}

body .acp-poem-back-link {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--acp-poem-accent);
	text-decoration: none;
	transition: color var(--acp-poem-transition);
}

body .acp-poem-back-link:hover {
	color: var(--acp-poem-accent-hover);
}

/* ── Archive Header ───────────────────────────────────────── */

body .acp-poem-archive-header {
	text-align: center;
	padding: 40px 0 32px;
}

body .acp-poem-archive-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 36px;
	font-weight: 600;
	color: var(--acp-poem-text);
	margin: 0 0 10px;
}

body .acp-poem-archive-desc {
	font-family: "Lato", sans-serif;
	font-size: 16px;
	color: var(--acp-poem-muted);
	margin: 0;
}

/* ── Inline Single (Shortcode) ────────────────────────────── */

body .acp-poem-inline-single {
	max-width: 700px;
	margin: 24px auto;
	padding: 32px;
	background: var(--acp-poem-bg-warm);
	border-radius: var(--acp-poem-radius-lg);
	border: 1px solid var(--acp-poem-border);
}

body .acp-poem-inline-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 12px;
	text-align: center;
}

body .acp-poem-inline-title a {
	color: var(--acp-poem-text);
	text-decoration: none;
}

body .acp-poem-inline-title a:hover {
	color: var(--acp-poem-accent);
}

body .acp-poem-inline-body {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 18px;
	line-height: 1.8;
	text-align: center;
	color: var(--acp-poem-text);
	white-space: pre-wrap;
	word-wrap: break-word;
	margin: 20px 0;
}

body .acp-poem-inline-summary {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: var(--acp-poem-text-light);
	text-align: center;
}

/* ── Featured Grid ────────────────────────────────────────── */

body .acp-poem-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--acp-poem-gap);
	margin: 24px 0;
}

body .acp-poem-featured-card {
	background: var(--acp-poem-card-bg);
	border-radius: var(--acp-poem-radius-lg);
	overflow: hidden;
	box-shadow: var(--acp-poem-shadow);
	transition: all var(--acp-poem-transition);
	border: 1px solid var(--acp-poem-border);
}

body .acp-poem-featured-card:hover {
	box-shadow: var(--acp-poem-shadow-hover);
	transform: translateY(-3px);
}

body .acp-poem-featured-card-link {
	display: block;
	text-decoration: none;
	color: var(--acp-poem-text);
}

body .acp-poem-featured-card-link:hover {
	text-decoration: none;
	color: var(--acp-poem-text);
}

body .acp-poem-featured-card-image {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
}

body .acp-poem-featured-card-body {
	padding: 18px 20px 22px;
}

body .acp-poem-featured-card-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.3;
}

body .acp-poem-featured-card-pub {
	font-family: "Lato", sans-serif;
	font-size: 13px;
	color: var(--acp-poem-muted);
	margin: 0 0 6px;
}

body .acp-poem-featured-card-summary {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: var(--acp-poem-text-light);
	line-height: 1.5;
	margin: 0;
}

body .acp-poem-featured-card--no-image .acp-poem-featured-card-body {
	border-top: 3px solid var(--acp-poem-accent);
}

/* ── Pagination ───────────────────────────────────────────── */

body .acp-poem-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 24px 0 48px;
}

body .acp-poem-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--acp-poem-text-light);
	background: var(--acp-poem-card-bg);
	border: 1px solid var(--acp-poem-border);
	border-radius: var(--acp-poem-radius);
	text-decoration: none;
	transition: all var(--acp-poem-transition);
}

body .acp-poem-page-num:hover {
	border-color: var(--acp-poem-accent);
	color: var(--acp-poem-accent);
}

body .acp-poem-page-num--current {
	background: var(--acp-poem-accent);
	color: #fff;
	border-color: var(--acp-poem-accent);
}

body .acp-poem-no-items {
	text-align: center;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	color: var(--acp-poem-muted);
	padding: 48px 0;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
	body .acp-poem-grid,
	body .acp-poem-featured-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	body .acp-poem-grid,
	body .acp-poem-featured-grid {
		grid-template-columns: 1fr;
	}

	body .acp-poem-title {
		font-size: 32px;
	}

	body .acp-poem-body {
		font-size: 18px;
		padding: 24px 16px;
	}

	body .acp-poem-gallery {
		grid-template-columns: 1fr;
	}
}
