/* =================================================================
   Article — single post prikaz, TCI estetika
================================================================= */

/* ---- Container (single post wrapper) ------------------------ */
.container {
	max-width: 680px;
}

/* ---- Single header ------------------------------------------ */
.single-header {
	margin-bottom: 2rem;
}

.single-type-badge {
	display: inline-block;
	padding: 2px 4px;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
}

.single-title {
	font-size: 1.375rem;
	font-weight: bold;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	max-width: 65ch;
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-size: 0.875rem;
	opacity: 0.75;
}

.single-meta a {
	text-decoration: underline dotted;
}

.single-meta a:hover {
	text-decoration-style: solid;
}

/* ---- Featured image ----------------------------------------- */
.single-thumbnail {
	margin-bottom: 2rem;
	border: 1px dotted var(--border-color);
}

.single-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 520px;
	object-fit: cover;
}

/* ---- Sadržaj ------------------------------------------------ */
.single-content {
	max-width: 65ch;
	line-height: 1.6;
}

.single-content h2 {
	font-size: 1.125rem;
	font-weight: bold;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.single-content h3 {
	font-weight: bold;
	margin-top: 1.5rem;
	margin-bottom: 0.25rem;
}

.single-content blockquote {
	border-left: 2px solid var(--border-color);
	margin-left: 0;
	padding-left: 1rem;
	opacity: 0.75;
}

.single-content a {
	text-decoration: underline dotted;
}

.single-content a:hover {
	text-decoration-style: solid;
}

/* ---- Galerija ----------------------------------------------- */
.single-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	margin: 2rem 0;
}

.single-gallery a {
	display: block;
	width: var(--card-size);
	height: var(--card-size);
	border: 1px dotted var(--border-color);
	overflow: hidden;
	text-decoration: none;
}

.single-gallery a:hover {
	border-style: solid;
}

.single-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Video -------------------------------------------------- */
.single-video {
	margin: 2rem 0;
	border: 1px dotted var(--border-color);
	padding: var(--gap);
}

.single-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
}

/* ---- PDF link ----------------------------------------------- */
.single-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6875rem;
	border: 1px dotted var(--border-color);
	text-decoration: none;
	margin: 1rem 0;
	font-size: 0.875rem;
}

.single-pdf-link:hover {
	border-style: solid;
	background-color: yellow;
	color: black;
}

.single-pdf-link::before {
	content: '↓';
}

/* ---- Autor bio blok ----------------------------------------- */
.autor-bio {
	display: grid;
	grid-template-columns: 111px 1fr;
	gap: 1rem;
	margin: 2rem 0;
	border: 1px dotted var(--border-color);
	padding: 1rem;
}

.autor-bio__foto {
	width: 111px;
	height: 111px;
	object-fit: cover;
	display: block;
}

.autor-bio__info {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Kad nema fotografije, info span celu širinu */
.autor-bio__info:first-child {
	grid-column: 1 / -1;
}

/* ---- Related sekcija ---------------------------------------- */
.related-section {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px dotted var(--border-color);
}

.related-section > h2 {
	font-weight: bold;
	text-decoration: underline;
	margin-bottom: 1rem;
}

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

.related-list li {
	margin: 0;
	padding: 0.375rem 0;
	border-bottom: 1px dotted var(--border-color);
}

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

.related-list a {
	text-decoration: underline dotted;
}

.related-list a:hover {
	text-decoration-style: solid;
}

.related-meta {
	opacity: 0.6;
	font-size: 0.875rem;
}

/* ---- Tagovi ------------------------------------------------- */
.tag-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.tag-list li {
	margin: 0;
}

.tag-list a {
	display: inline-block;
	padding: 2px 6px;
	border: 1px dotted var(--border-color);
	text-decoration: none;
	font-size: 0.875rem;
}

.tag-list a:hover {
	border-style: solid;
	background-color: yellow;
	color: black;
}

/* ---- Accordion ---------------------------------------------- */
.accordion {
	border: 1px dotted var(--border-color);
	margin-bottom: var(--gap);
}

.accordion summary {
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--color);
	color: var(--background-color);
	-webkit-user-select: none;
	user-select: none;
}

.accordion summary::-webkit-details-marker {
	display: none;
}

.accordion summary::after {
	content: '▶';
	font-size: 0.7rem;
	transition: transform 0.2s ease;
}

.accordion[open] summary::after {
	transform: rotate(90deg);
}

.accordion__body {
	padding: 1rem;
	border-top: 1px dotted var(--border-color);
}

.accordion__body ul {
	padding-left: 1rem;
	margin: 0;
}

.accordion__body li {
	padding: 0.25rem 0;
}
