/*
Theme Name: Lovci Čurug
Theme URI: http://www.lovci-curug.org
Author: Udruženje lovaca Vojvodina Čurug
Description: Tema za internet prezentaciju Udruženja lovaca „Vojvodina“ Čurug, rađena po uzoru na stari sajt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: lovci-curug
*/

:root {
	--olive: #8aac1a;
	--olive-dark: #586e10;
	--forest: #1f2802;
	--moss: #355e3b;
	--ink: #222;
	--paper: #f7f3e8;
	--paper-deep: #efe6d2;
	--wood: #c4a574;
	--muted: #5c584e;
	--topbar: #1b1b1b;
	--white: #fff;
	--shadow: 0 10px 30px rgba(0, 0, 0, .28);
	--radius: 10px;
	--font: "Source Sans 3", "Segoe UI", sans-serif;
	--display: Cinzel, Cambria, Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	background-color: var(--moss);
	background-image: url("../../uploads/2017/04/Taraba.jpg");
	background-repeat: repeat;
}

img { max-width: 100%; height: auto; }

a { color: var(--olive-dark); text-decoration: none; }
a:hover { color: var(--forest); text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--display);
	letter-spacing: .02em;
	line-height: 1.25;
	color: var(--forest);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
}
.skip-link:focus {
	left: 12px;
	z-index: 99;
	background: #fff;
	padding: .4rem .8rem;
}

/* Top bar */
.site-topbar {
	background: var(--topbar);
	color: #ddd;
	font-size: .92rem;
}
.site-topbar a { color: #ddd; }
.site-topbar a:hover { color: #fff; text-decoration: none; }
.site-topbar .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 42px;
}
.menu-top {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Header / logo */
.site-header {
	background: linear-gradient(180deg, #2a3f12 0%, #1f2802 100%);
	border-bottom: 4px solid var(--olive);
	text-align: center;
	padding: 18px 16px 8px;
}
.site-logo img {
	max-height: 158px;
	width: auto;
	display: inline-block;
	filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}
.site-tagline {
	margin: .35rem 0 1rem;
	color: var(--wood);
	font-family: var(--display);
	font-size: .95rem;
}

/* Nav */
.nav-wrap {
	background: var(--olive);
	box-shadow: 0 4px 0 var(--olive-dark);
}
.nav-wrap .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.menu-toggle {
	display: none;
	background: var(--forest);
	color: #fff;
	border: 0;
	padding: .55rem .9rem;
	margin: .45rem;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}
.menu-primary,
.menu-primary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.menu-primary {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.menu-primary > li {
	position: relative;
}
.menu-primary > li > a {
	display: block;
	color: #fff;
	padding: .75rem .72rem;
	font-weight: 700;
	text-transform: uppercase;
	font-size: .78rem;
	letter-spacing: .03em;
	text-decoration: none;
}
.menu-primary > li > a:hover,
.menu-primary > li.current-menu-item > a,
.menu-primary > li.current-menu-ancestor > a {
	background: var(--olive-dark);
	color: #fff;
}
.menu-primary .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 260px;
	background: #efe6d2;
	box-shadow: var(--shadow);
	z-index: 20;
	padding: .4rem 0;
	text-align: left;
}
.menu-primary li:hover > .sub-menu,
.menu-primary li:focus-within > .sub-menu {
	display: block;
}
.menu-primary .sub-menu a {
	display: block;
	padding: .45rem 1rem;
	color: var(--forest);
	font-size: .92rem;
	text-decoration: none;
}
.menu-primary .sub-menu a:hover {
	background: var(--olive);
	color: #fff;
}

/* Layout */
.wrap {
	width: min(1180px, calc(100% - 28px));
	margin-inline: auto;
}

.hero {
	position: relative;
	overflow: hidden;
	background: #111;
	min-height: 320px;
}
.hero-slide {
	display: none;
	min-height: 420px;
	background-size: cover;
	background-position: center;
}
.hero-slide.is-active { display: block; }
.hero-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.4rem 1rem 1.6rem;
	background: linear-gradient(transparent, rgba(0,0,0,.72));
	color: #fff;
	text-align: center;
}
.hero-caption h1 {
	color: #fff;
	margin: 0 0 .35rem;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.hero-caption p { margin: 0; color: #f0e6c8; }
.hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,.45);
	color: #fff;
	border: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.4rem;
}
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }

.site-main {
	padding: 1.6rem 0 3rem;
}
.layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 1.4rem;
	align-items: start;
}

.content-area,
.sidebar {
	background: var(--paper);
	border: 1px solid rgba(31, 40, 2, .12);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
}
.content-area { padding: 1.6rem 1.8rem 2rem; }
.sidebar { padding: 1.2rem; }

.page-title,
.entry-title {
	margin-top: 0;
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.entry-meta {
	color: var(--muted);
	font-size: .9rem;
	margin-bottom: 1rem;
}
.entry-content p { margin: 0 0 1rem; }
.entry-content h2, .entry-content h3 { margin: 1.4rem 0 .6rem; }
.entry-content img {
	border-radius: 6px;
	margin: .4rem .6rem .8rem 0;
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: .95rem;
}
.entry-content th,
.entry-content td {
	border: 1px solid #d9d0ba;
	padding: .45rem .6rem;
}

.post-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #e0d6bf;
}
.post-card:last-child { border-bottom: 0; }
.post-card h2 {
	margin: 0 0 .35rem;
	font-size: 1.25rem;
}
.post-card h2 a { color: var(--forest); text-decoration: none; }
.post-card h2 a:hover { color: var(--olive-dark); }
.post-thumb {
	display: block;
	min-height: 140px;
	background: #d7c7a4 center/cover no-repeat;
	border-radius: 8px;
}
.more-link {
	display: inline-block;
	margin-top: .4rem;
	background: var(--olive);
	color: #fff !important;
	padding: .35rem .8rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: .88rem;
	text-decoration: none !important;
}
.more-link:hover { background: var(--olive-dark); }

.widget { margin-bottom: 1.4rem; }
.widget-title {
	font-size: 1.05rem;
	background: var(--forest);
	color: #fff;
	padding: .45rem .7rem;
	margin: 0 0 .7rem;
	border-radius: 4px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
	padding: .4rem 0;
	border-bottom: 1px dashed #d8ceb6;
}
.widget li span {
	display: block;
	color: var(--muted);
	font-size: .8rem;
}

.lovci-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin: 1rem 0;
}
.lovci-gallery img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.entry-content a:has(img) {
	cursor: zoom-in;
}
.entry-content img {
	cursor: zoom-in;
}

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.88);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	overflow: auto;
}
.lightbox.is-open { display: flex; }
.lightbox img {
	max-height: 94vh;
	max-width: 94vw;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	color: #fff;
	font-size: 2rem;
	background: none;
	border: 0;
	cursor: pointer;
}

.site-footer {
	background: var(--forest);
	color: #d7d3c4;
	padding: 2rem 0 1.2rem;
	margin-top: 1rem;
}
.site-footer a { color: var(--olive); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.4rem;
}
.site-footer h2 {
	color: var(--wood);
	font-size: 1.05rem;
	margin: 0 0 .6rem;
}
.copy {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 1rem;
	font-size: .88rem;
	text-align: center;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.comments-area { margin-top: 2rem; }
.comment-list { list-style: none; padding: 0; }

.searchform {
	display: flex;
	gap: 0;
}
.searchform input[type="search"] {
	flex: 1;
	border: 1px solid #444;
	background: #111;
	color: #fff;
	padding: .35rem .55rem;
	border-radius: 4px 0 0 4px;
}
.searchform button {
	background: var(--olive);
	border: 0;
	color: #fff;
	padding: .35rem .7rem;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	font-weight: 700;
}

@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { order: 2; }
	.post-card { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.menu-toggle { display: inline-block; }
	.nav-wrap .wrap { flex-wrap: wrap; }
	.menu-primary {
		display: none;
		flex-direction: column;
		width: 100%;
		background: var(--olive-dark);
	}
	.menu-primary.is-open { display: flex; }
	.menu-primary .sub-menu {
		position: static;
		display: block;
		background: #efe6d2;
		box-shadow: none;
		min-width: 0;
	}
	.hero-slide { min-height: 240px; }
}
