/* Custom styles for SimplePod theme - minimal overrides to Pico CSS */

/* Logo in navigation */
.podcast-logo {
	width: 80px;
	height: 80px;
	/* contain keeps a non-square logo, such as a wordmark, from being
	   stretched to fill the box. */
	object-fit: contain;
	border-radius: 8px;
	vertical-align: middle;
	margin-right: 0.5rem;
}

/* Call to action section */
.call-to-action {
	text-align: center;
	margin: 1rem 0;
}

/* Hero section on homepage */
.hero-section {
	text-align: center;
	margin: 2rem 0;
}

.hero-logo {
	width: 200px;
	height: 200px;
	object-fit: contain;
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-bottom: 1.5rem;
}

/* Episode styling */
.episode-preview,
.episode-item,
.episode-full {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--pico-muted-border-color);
}

.episode-meta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	color: var(--pico-muted-color);
	font-size: 0.9rem;
	margin: 0.5rem 0 1rem 0;
}

/* Audio player */
audio {
	width: 100%;
	margin: 1rem 0;
}

.audio-player {
	background: var(--pico-card-background-color);
	padding: 1.5rem;
	border-radius: var(--pico-border-radius);
	margin: 2rem 0;
}

.download-links {
	margin-top: 1rem;
	font-size: 0.9rem;
}

.download-links a {
	margin-right: 1rem;
}

/* Show notes */
.show-notes {
	background: var(--pico-card-background-color);
	padding: 1.5rem;
	border-radius: var(--pico-border-radius);
	margin: 2rem 0;
}

.show-notes h2 {
	margin-top: 0;
}

/* Tags */
.tags {
	margin: 2rem 0;
}

.tags ul {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.tags li {
	display: inline;
}

/* Episode navigation */
.episode-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--pico-muted-border-color);
}

.episode-navigation a {
	max-width: 45%;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin: 3rem 0;
}

/* Podcast description */
.podcast-description {
	font-size: 1.1rem;
	margin: 2rem 0;
	line-height: 1.6;
}

/* Heading anchors */
.zola-anchor {
	color: inherit;
	text-decoration: none;
}

.zola-anchor:hover {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 0.2em;
}

/* Blockquotes */
blockquote,
blockquote p {
	font-style: italic !important;
}

article blockquote,
article blockquote p {
	font-style: italic !important;
}

/* Search */
#search-input {
	width: 100%;
	font-size: 1.1rem;
}

.search-syntax {
	margin: 0.5rem 0 1.5rem;
	font-size: 0.95rem;
	color: var(--pico-muted-color);
}

.search-syntax > summary {
	cursor: pointer;
	font-weight: 500;
	color: var(--pico-primary);
	width: fit-content;
}

.search-syntax dl {
	margin: 1rem 0 0;
}

.search-syntax dt {
	font-weight: 600;
	color: var(--pico-color);
	margin-top: 0.75rem;
}

.search-syntax dd {
	margin: 0.25rem 0 0 1rem;
}

.search-syntax code {
	font-size: 0.9em;
}

.search-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.5rem 0 1rem;
	min-height: 2rem;
}

.search-status {
	color: var(--pico-muted-color);
	font-size: 0.9rem;
}

.search-copy {
	width: auto;
	padding: 0.25rem 0.75rem;
	font-size: 0.85rem;
	margin: 0;
}

.search-result {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--pico-muted-border-color);
}

.search-result h3 {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.search-snippet {
	margin: 0;
	color: var(--pico-muted-color);
	font-size: 0.95rem;
}

.search-snippet mark {
	background: var(--pico-mark-background-color, #ffe28a);
	color: inherit;
	padding: 0 0.1em;
}

/* Footer adjustments */
footer {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--pico-muted-border-color);
	text-align: center;
}

footer p {
	margin: 0.5rem 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.episode-meta {
		flex-direction: column;
		gap: 0.25rem;
	}

	.episode-navigation {
		flex-direction: column;
		gap: 1rem;
	}

	.episode-navigation a {
		max-width: 100%;
	}
}
