/* ════════════════════════════════════════════
   pregled.css — slogi strani Vse objave (pregled.html):
   hdr baner, iskalnik, filtri/chips, kartice, load-more
   Preneseno iz inline <style> bloka, 2026-06
   ════════════════════════════════════════════ */

/* ════════════════════════════════════════
   PREGLED — Vse objave
════════════════════════════════════════ */

/* Header banner */
.pregled-hdr {
	background: linear-gradient(160deg, #0a1e70 0%, #1535b0 50%, #1e4ace 100%);
	border-radius: 12px;
	padding: 2em 2.5em 1.8em;
	margin-bottom: 1.8em;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,80,0.22);
}
.pregled-hdr::after {
	content: "";
	position: absolute;
	top: -50px; right: -50px;
	width: 200px; height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(30,144,255,0.15) 0%, transparent 70%);
	pointer-events: none;
}
.pregled-hdr h1 {
	color: #fff; margin: 0 0 0.15em;
	font-size: 1.6em; border: none;
}
.pregled-hdr .subtitle {
	color: rgba(180,210,255,0.7);
	font-size: 0.85em; margin-bottom: 1.2em;
}
.pregled-hdr .subtitle strong { color: #7ab3f0; }

/* Search bar */
.search-wrap {
	position: relative; max-width: 520px;
}
.search-wrap input {
	width: 100%; padding: 0.7em 2.4em 0.7em 2.6em;
	border-radius: 8px;
	border: 1px solid rgba(30,144,255,0.4);
	background: rgba(255,255,255,0.08);
	color: #fff; font-size: 0.9em;
	outline: none;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.search-wrap input::placeholder { color: rgba(180,210,255,0.5); }
.search-wrap input[type="search"]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-wrap input:focus {
	border-color: dodgerblue;
	background: rgba(255,255,255,0.12);
}
.search-wrap .search-icon {
	position: absolute; left: 0.8em; top: 50%;
	transform: translateY(-50%);
	color: rgba(120,180,255,0.6); font-size: 0.9em;
}
.search-wrap .clear-search {
	position: absolute; right: 0.7em; top: 50%;
	transform: translateY(-50%);
	color: rgba(120,180,255,0.5); cursor: pointer;
	font-size: 0.85em; display: none;
	background: none !important; border: none !important;
	outline: none !important; box-shadow: none !important; padding: 0.2em;
}
.search-wrap .clear-search:hover { color: #fff; }

/* Filter section */
.pregled-filters {
	background: linear-gradient(135deg, #fff8d0 0%, #fff3a8 100%);
	border: 1px solid rgba(200,168,0,0.4);
	border-radius: 10px;
	padding: 1.2em 1.4em;
	margin-bottom: 1em;
	box-shadow: 0 2px 12px rgba(180,140,0,0.06);
}
.filter-row {
	display: flex; align-items: flex-start;
	gap: 0.8em; flex-wrap: wrap;
	margin-bottom: 0.7em;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
	font-size: 0.7em; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: #9a7000; white-space: nowrap;
	padding-top: 0.4em; min-width: 70px;
}
.chips-row {
	display: flex; flex-wrap: wrap; gap: 0.4em;
}

/* Chips — year (warm neutral) */
.chip {
	display: inline-flex; align-items: center; gap: 0.3em;
	padding: 0.3em 0.85em;
	border-radius: 20px;
	font-size: 0.73em; font-weight: 600;
	cursor: pointer;
	border: none;
	background: #ffffca; color: #2a5aa0;
	transition: all 0.15s;
	white-space: nowrap;
}
.chip:hover { color: #1a3a8f; background: #fbfbb0; }
.chip.active {
	background: #1a3a8f; color: #fff;
	border-color: #1a3a8f;
	box-shadow: 0 2px 8px rgba(26,58,143,0.3);
}
.chip.active::before {
	content: "\2713";
	font-weight: 900; font-size: 0.95em;
	margin-right: 0.1em;
}
.chip.active .chip-count { background: rgba(255,255,255,0.22); }
.chip.chip-all {
	background: #fff5e0; border: 1px dashed #d4a800;
	color: #8a6000; font-style: italic;
}
.chip.chip-all.active {
	background: #1a3a8f;
	border: 1px solid #1a3a8f !important;
	color: #fff; font-style: normal;
	box-shadow: 0 2px 8px rgba(26,58,143,0.3);
}
.chip .chip-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 1.5em; height: 1.5em;
	padding: 0 0.3em; box-sizing: border-box;
	background: rgba(0,0,0,0.1); color: inherit;
	border-radius: 50%;
	font-size: 0.78em; font-weight: 700;
	line-height: 1;
}
.chip.active .chip-count { background: rgba(255,255,255,0.25); }

/* Category chips — JS sets inline styles */
.chip-cat { font-size: 0.71em; border: none !important; }
.chip-cat:hover { filter: brightness(0.9); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; }
.chip-cat.active { filter: brightness(0.75) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important; transform: translateY(-1px); color: #fff !important; }
.chip-cat.chip-all { background: #fff5e0 !important; box-shadow: inset 0 0 0 1px #d4a800 !important; color: #8a6000 !important; font-style: italic; border: none !important; }
.chip-cat.chip-all.active { background: #1a3a8f !important; box-shadow: 0 2px 8px rgba(26,58,143,0.3) !important; color: #fff !important; font-style: normal !important; }

/* Status bar */
.pregled-status {
	display: flex; align-items: center;
	justify-content: space-between;
	margin-bottom: 1.2em; gap: 1em; flex-wrap: wrap;
}
.result-info {
	font-size: 0.82em; color: #666;
}
.result-info strong { color: #000053; }
.active-filters {
	display: flex; gap: 0.4em; flex-wrap: wrap;
}
.active-filter-tag {
	display: inline-flex; align-items: center; gap: 0.3em;
	background: #fff3e0; border: 1px solid #f0c040;
	color: #a07000; border-radius: 12px;
	padding: 0.2em 0.6em; font-size: 0.74em; font-weight: 600;
	cursor: pointer;
}
.active-filter-tag:hover { background: #ffe0b0; }
.btn-clear-all {
	display: inline-flex; align-items: center; gap: 0.35em;
	font-size: 0.74em; font-weight: 600;
	color: #b03030;
	background: #fff0f0;
	border: 1px solid #e0a0a0 !important;
	box-shadow: none !important;
	border-radius: 12px;
	padding: 0.2em 0.7em;
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
	line-height: 1.4;
}
.btn-clear-all:hover {
	background: #b03030;
	border-color: #b03030 !important;
	color: #fff;
}

/* Articles grid */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	margin-bottom: 1.5em;
}
@media (max-width: 1100px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .articles-grid { grid-template-columns: 1fr; } }

/* Article card */
.art-card {
	background: var(--art-bg, #fff);
	border: 1px solid var(--art-border, #e8e8e8);
	border-left: 4px solid var(--art-accent, #ccc);
	border-radius: 7px;
	padding: 1em 1.1em 0.9em;
	display: flex; flex-direction: column; gap: 0.3em;
	transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
	animation: fadeInCard 0.2s ease-out;
}
.art-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
	transform: translateY(-1px);
}
@keyframes fadeInCard {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.art-card .art-meta {
	display: flex; align-items: center;
	gap: 0.5em; flex-wrap: wrap;
}
.art-card .art-date {
	font-size: 0.72em; color: #999; font-weight: 500;
}
.art-card .art-cat {
	display: inline-flex; align-items: center; gap: 0.25em;
	font-size: 0.66em; font-weight: 700;
	letter-spacing: 0.05em; text-transform: uppercase;
	padding: 0.15em 0.55em; border-radius: 10px;
	white-space: nowrap;
}
.art-card h3 {
	margin: 0.15em 0 0.2em; font-size: 0.9em;
	line-height: 1.35; color: #000053;
}
.art-card h3 a { color: inherit; border-bottom: none !important; text-decoration: none !important; }
.art-card h3 a:hover { color: dodgerblue; }
.art-archive-tag {
	font-size: 1em; color: #8a7a50; font-style: italic;
}
.art-card .art-excerpt {
	font-size: 0.78em; color: #555; line-height: 1.45;
	margin: 0.2em 0 0.1em; flex: 1;
	display: -webkit-box; -webkit-line-clamp: 3;
	-webkit-box-orient: vertical; overflow: hidden;
}
.art-card .art-link {
	font-size: 0.75em; color: dodgerblue;
	border-bottom: none !important; text-decoration: none !important;
	margin-top: auto; padding-top: 0.4em;
	display: inline-flex; align-items: center; gap: 0.3em;
}
.art-card .art-link:hover { color: #000080; }

/* Empty state */
.empty-state {
	grid-column: 1 / -1;
	text-align: center; padding: 3em 2em;
	color: #999;
}
.empty-state i { font-size: 2.5em; margin-bottom: 0.5em; display: block; color: #ddd; }
.empty-state p { font-size: 0.9em; }

/* Load more */
.load-more-wrap {
	text-align: center; margin: 1em 0 2em;
}
.load-more-btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	background: dodgerblue; border: 1px solid dodgerblue;
	color: #fff !important; border-radius: 8px;
	padding: 0.6em 1.8em; font-size: 0.85em; font-weight: 600;
	cursor: pointer; transition: all 0.15s;
}
.load-more-btn:hover {
	background: #1565c0; border-color: #1565c0;
	box-shadow: 0 3px 12px rgba(30,144,255,0.3);
}
.load-more-info { font-size: 0.75em; color: #aaa; margin-top: 0.5em; }

/* Loading skeleton */
.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-loading 1.5s infinite;
	border-radius: 4px; height: 1em;
}
@keyframes skeleton-loading {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 600px) {
	.pregled-hdr { padding: 1.5em 1.2em; }
	.pregled-filters { padding: 1em; }
	.filter-row { flex-direction: column; gap: 0.4em; }
	.filter-label { min-width: auto; }
}
