/*
Theme Name:   LIP Child (GeneratePress)
Description:  Lightweight theme for lijekizprirode.com / lijekipriroda.com – old wp-clear321 look (green), modernised.
Template:     generatepress
Version:      1.0.0
Text Domain:  lip-child
*/

/* ---------- design tokens (colours from the old theme) ---------- */
:root {
	--lip-green-dark: #2c6700;   /* old nav bar */
	--lip-green: #006e00;        /* old titles + links */
	--lip-green-light: #e8f2e1;
	--lip-bg: #f0efeb;           /* old page background */
	--lip-header-bg: #ffffff;
	--lip-text: #222222;
	--lip-muted: #666666;
	--lip-border: #e3e1da;
	--lip-footer: #505962;       /* old footer */
	--lip-radius: 8px;
	--lip-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
	--lip-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	background: var(--lip-bg);
	color: var(--lip-text);
	font-family: var(--lip-font);
	font-size: 17px;
	line-height: 1.65;
}
a { color: var(--lip-green); }
a:hover, a:focus { color: var(--lip-green-dark); }
h1, h2, h3, h4, .entry-title { font-family: var(--lip-font); color: var(--lip-text); letter-spacing: -.01em; }

/* ---------- header ---------- */
.site-header { background: var(--lip-header-bg); border-bottom: 0; }
.inside-header { padding: 14px 20px; }
.site-logo img, .header-image { max-height: 74px; width: auto; }

/* ---------- navigation (green bar with categories + search) ---------- */
.main-navigation,
.main-navigation ul ul { background: var(--lip-green-dark); }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items { color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.main-navigation .main-nav ul li a { padding-left: 16px; padding-right: 16px; line-height: 48px; }
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { background: rgba(255, 255, 255, .14); color: #fff; }
.main-navigation .menu-bar-item > a { color: #fff; line-height: 48px; }
.navigation-search input[type="search"] { background: #fff; color: var(--lip-text); }
.main-navigation.toggled .main-nav ul li a { line-height: 44px; }

/* ---------- content boxes ---------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header,
.sidebar .widget {
	background: #fff;
	border-radius: var(--lip-radius);
	box-shadow: var(--lip-shadow);
}
.separate-containers .inside-article { padding: 28px 32px; }
.sidebar .widget { padding: 0 0 6px; overflow: hidden; }

/* ---------- single post ---------- */
.single .entry-title { font-size: 34px; line-height: 1.2; font-weight: 800; color: var(--lip-green); }
.entry-meta { font-size: 13px; color: var(--lip-muted); }
.entry-meta a { color: var(--lip-green); }
.single .entry-meta { margin-top: 8px; padding-bottom: 12px; border-bottom: 1px dotted #ddd; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 24px; margin-top: 1.4em; }
.entry-content h3 { font-size: 20px; }
.entry-content img { border-radius: 6px; }

/* responsive videos (replaces the old jquery.fitvids.js): fixed-size embeds fill the width, keep 16:9 */
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtube-nocookie.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="dailymotion.com"],
.entry-content iframe[src*="vimeo.com"],
.entry-content iframe[src*="rumble.com"] {
	display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; margin: 1em auto;
}
.entry-content iframe[src*="facebook.com/plugins/video"] { max-width: 100%; }

/* in-text image + "Foto: … / Pexels" caption */
.wp-caption, figure.wp-caption { max-width: 100%; margin: 1.2em auto 1.6em; text-align: center; }
.wp-caption img { display: block; margin: 0 auto; height: auto; }
.wp-caption-text, figcaption.wp-caption-text {
	font-size: 13px; line-height: 1.4; color: var(--lip-muted); font-style: italic;
	margin-top: 6px; text-align: center;
}

.lip-share { margin: 14px 0 18px; min-height: 28px; }
.lip-source { font-size: 14px; margin: 18px 0 6px; }
.lip-ad { margin: 22px 0; text-align: center; clear: both; }
.lip-ad-below { margin-top: 10px; }

/* related posts */
.lip-related { margin-top: 26px; }
.lip-related h3, .lip-home-section h2, .sidebar .widget-title {
	font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px;
	border-bottom: 3px solid var(--lip-green); color: var(--lip-text);
}
.sidebar .widget-title { font-size: 16px; padding: 12px 16px 8px; margin: 0; border-bottom-width: 3px; }

/* ---------- cards (home, related) ---------- */
.lip-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lip-grid.lip-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lip-card { display: block; text-decoration: none; color: var(--lip-text); }
.lip-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--lip-green-light); }
.lip-card .lip-card-title { display: block; margin-top: 8px; font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--lip-green); }
.lip-card:hover .lip-card-title { text-decoration: underline; }

/* ---------- home ---------- */
.lip-home-section { background: #fff; border-radius: var(--lip-radius); box-shadow: var(--lip-shadow); padding: 22px 24px; margin-bottom: 20px; }
.lip-home-section h2 { display: flex; justify-content: space-between; align-items: baseline; }
.lip-home-section h2 a { color: var(--lip-text); text-decoration: none; }
.lip-home-section h2 .lip-more { font-size: 13px; font-weight: 600; color: var(--lip-green); text-transform: none; }
.lip-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; }
.lip-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.lip-hero h1, .lip-hero .lip-hero-title { font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 0 10px; }
.lip-hero .lip-hero-title a { color: var(--lip-green); text-decoration: none; }
.lip-hero p { color: #444; font-size: 15px; }
.lip-button {
	display: inline-block; background: var(--lip-green-dark); color: #fff !important; text-decoration: none;
	padding: 8px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.lip-button:hover { background: var(--lip-green); }
.lip-hero-more { margin-top: 20px; }

/* archive / page titles (Zdravlje, Najnovije, search) */
.page-header .page-title, .inside-page-header .page-title { font-size: 26px; font-weight: 800; color: var(--lip-green); margin: 0; }
.separate-containers .page-header, .inside-page-header { padding: 18px 24px; }

/* ---------- archive lists (category, search, Najnovije) ---------- */
.archive .inside-article, .search .inside-article, .blog .inside-article, .page-template-default.lip-latest .inside-article { padding: 18px 20px; }
.lip-list-item { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.lip-list-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.lip-list-item .lip-list-title { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.lip-list-item .lip-list-title a { color: var(--lip-green); text-decoration: none; }
.lip-list-item p { font-size: 15px; color: #444; margin: 0; }
.lip-list-item .lip-list-meta { font-size: 13px; color: var(--lip-muted); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 22px; }

/* ---------- sidebar widgets ---------- */
.sidebar .widget ul { margin: 0; padding: 0 16px; list-style: none; }
.sidebar .widget ul li { padding: 9px 0; border-bottom: 1px solid #eee; font-size: 15px; line-height: 1.4; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul li a { color: var(--lip-green); text-decoration: none; }
.sidebar .widget ul li a:hover { text-decoration: underline; }
.lip-popular li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.lip-popular img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.lip-popular .lip-pop-title { font-weight: 700; display: block; }
.lip-popular .lip-pop-excerpt { font-size: 13px; color: var(--lip-muted); display: block; margin-top: 2px; }

/* ---------- pagination ---------- */
.paging-navigation .nav-links > * { padding: 6px 12px; border-radius: 6px; }
.paging-navigation .nav-links .current { background: var(--lip-green-dark); color: #fff; }

/* ---------- footer ---------- */
.site-info { background: var(--lip-footer); color: #fff; font-size: 14px; }
.site-info a { color: #fff; }
.lip-footer-links a { margin-right: 14px; }

/* ---------- cookie notice ---------- */
#lip-cookie {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99999; display: none;
	background: #222; color: #fff; padding: 14px 18px; border-radius: var(--lip-radius);
	font-size: 14px; line-height: 1.5; box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
	max-width: 980px; margin: 0 auto; align-items: center; gap: 16px;
}
#lip-cookie.lip-show { display: flex; }
#lip-cookie a { color: #9fd67a; }
#lip-cookie button { background: #f1d600; color: #000; border: 0; border-radius: 6px; padding: 8px 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 768px) {
	body { font-size: 17px; }
	.separate-containers .inside-article { padding: 18px 16px; }
	.single .entry-title { font-size: 26px; }
	.lip-hero { grid-template-columns: 1fr; gap: 14px; }
	.lip-hero > a { order: -1; }
	.lip-hero .lip-hero-title { font-size: 23px; }
	.lip-grid.lip-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lip-grid { gap: 14px; }
	.lip-card .lip-card-title { font-size: 15px; }
	.lip-home-section { padding: 16px; }
	.lip-list-item { grid-template-columns: 120px 1fr; gap: 12px; }
	.lip-list-item .lip-list-title { font-size: 17px; }
	.lip-list-item p { display: none; }
	.inside-header { padding: 10px 14px; }
	.site-logo img, .header-image { max-height: 54px; }
	#lip-cookie { flex-direction: column; align-items: stretch; text-align: center; }
}
