﻿/*
Theme Name: Srbija Pobedjuje Portal
Theme URI: https://srbijapobedjuje.info/
Author: Codex
Description: WordPress news portal theme based on the generated Srbija Pobedjuje HTML preview.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: srbija-pobedjuje
*/

/* ==========================================================================
   SITE INPUT FIELDS
   --------------------------------------------------------------------------
   These are the places you will likely customize for the real website.

   INPUT: Logo image
   File path used by the theme: assets/img/logo.png
   Replace that file with your final logo, keeping the same filename, or upload
   a logo in WordPress Admin > Appearance > Customize > Site Identity.

   INPUT: Site title and subtitle
   Edit in WordPress Admin > Settings > General:
   - Site Title
   - Tagline

   INPUT: Main menu labels
   Edit in WordPress Admin > Appearance > Menus. Assign it to "Glavni meni".

   INPUT: Homepage content
   Edit posts in WordPress Admin > Posts. The newest post becomes the lead story.
   The built-in 12-section content is fallback/demo content in front-page.php.

   INPUT: Sidebar boxes
   Edit in WordPress Admin > Appearance > Widgets. Add widgets to "Sidebar".

   INPUT: Brand colors
   Change the CSS variables below if you want different red/blue/black values.
   ========================================================================== */

:root {
	--red: #d71920;
	--dark-red: #b31217;
	--blue: #173f8f;
	--ink: #171717;
	--text: #222;
	--muted: #747474;
	--light: #f4f4f4;
	--border: #e5e5e5;
	--white: #fff;
	--container: 1180px;
	--header-logo-max-width: 760px; /* INPUT: adjust if your final logo is wider/narrower. */
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--text);
	background: #eeeeee;
	line-height: 1.58;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: var(--red);
	color: var(--white);
	clip: auto;
}

.top-strip {
	background: #111;
	color: var(--white);
	font-size: 13px;
	border-bottom: 4px solid var(--red);
}

.top-strip-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 9px 16px;
	display: flex;
	gap: 14px;
	align-items: center;
	overflow: hidden;
	white-space: nowrap;
}

.breaking-label {
	background: var(--red);
	padding: 5px 9px;
	font-weight: 700;
	text-transform: uppercase;
	flex: 0 0 auto;
}

.ticker {
	overflow: hidden;
	text-overflow: ellipsis;
	color: #f1f1f1;
}

.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 26px 16px 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
}

.site-branding {
	display: inline-block;
	max-width: var(--header-logo-max-width);
}

.site-logo-img,
.custom-logo {
	display: block;
	width: min(100%, var(--header-logo-max-width));
	max-height: 160px;
	object-fit: contain;
}

.site-title-fallback {
	display: none;
	margin-top: 8px;
	font-size: 42px;
	line-height: 1.1;
	color: var(--red);
	font-weight: 900;
	text-transform: uppercase;
	text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(23, 63, 143, 0.2);
}

.site-logo-img:not([src]),
.site-logo-img[src=""] {
	display: none;
}

.logo-subtitle {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.search-box {
	display: flex;
	border: 1px solid var(--border);
	background: #fafafa;
	height: 38px;
	min-width: 260px;
}

.search-box input {
	border: 0;
	background: transparent;
	padding: 0 10px;
	min-width: 0;
	flex: 1;
	font: inherit;
}

.search-box button,
.read-more {
	border: 0;
	background: var(--red);
	color: var(--white);
	padding: 0 14px;
	font-weight: 700;
	cursor: pointer;
}

.read-more {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin-top: 10px;
}

.main-nav {
	background: var(--red);
	color: var(--white);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.nav-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
}

.menu,
.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
}

.menu a {
	display: block;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.menu a:hover,
.menu .current-menu-item > a {
	background: var(--dark-red);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--white);
	font: inherit;
	font-weight: 700;
	padding: 12px 0;
	cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
	display: inline-block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
	vertical-align: middle;
}

.menu-toggle span {
	margin-right: 8px;
	position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
	position: absolute;
	left: 0;
}

.menu-toggle span::before {
	top: -6px;
}

.menu-toggle span::after {
	top: 6px;
}

.page-wrap {
	max-width: var(--container);
	margin: 24px auto 36px;
	padding: 0 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	align-items: start;
}

.content-main,
.sidebar {
	min-width: 0;
}

.hero-card,
.sidebar-box,
.post-card,
.closing-box,
.archive-header {
	background: var(--white);
	border: 1px solid var(--border);
}

.hero-visual {
	position: relative;
	min-height: 330px;
	display: flex;
	align-items: end;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 18px, rgba(0, 0, 0, 0.12) 18px 36px),
		linear-gradient(120deg, #151515, var(--red));
	color: var(--white);
	overflow: hidden;
}

.hero-visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-visual.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.hero-overlay {
	position: relative;
	z-index: 1;
	padding: 34px;
}

.hero-overlay h1,
.page-title-block h1,
.archive-header h1 {
	margin: 0;
	font-size: clamp(32px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: uppercase;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 22px 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.category-badge {
	color: var(--white);
	background: var(--red);
	padding: 3px 8px;
}

.article-body {
	padding: 22px;
	font-size: 17px;
	background: var(--white);
}

.article-body > :first-child {
	margin-top: 0;
}

.article-body > :last-child {
	margin-bottom: 0;
}

.lead {
	font-size: 19px;
	color: #333;
	font-weight: 700;
}

.section-heading {
	margin: 28px 0 14px;
	padding-bottom: 10px;
	border-bottom: 4px solid var(--red);
}

.section-heading h2 {
	margin: 0;
	font-size: 28px;
}

.section-heading p {
	margin: 4px 0 0;
	color: var(--muted);
}

.accordion-list {
	display: grid;
	gap: 10px;
}

.accordion-item {
	background: var(--white);
	border: 1px solid var(--border);
}

.accordion-item summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 24px;
	gap: 12px;
	align-items: center;
	padding: 15px 18px;
	font-weight: 800;
}

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

.num {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: var(--blue);
	color: var(--white);
	font-weight: 800;
}

.plus {
	width: 16px;
	height: 16px;
	position: relative;
}

.plus::before,
.plus::after {
	content: "";
	position: absolute;
	background: var(--red);
	inset: 7px 0 auto;
	height: 2px;
}

.plus::after {
	transform: rotate(90deg);
}

details[open] .plus::after {
	display: none;
}

.dropdown-content {
	padding: 0 18px 18px 76px;
	color: #333;
}

.source-link {
	color: var(--blue);
	font-weight: 700;
	text-decoration: underline;
}

.closing-box,
.archive-header {
	margin-top: 24px;
	padding: 22px;
}

.closing-box h2 {
	margin-top: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.post-card {
	overflow: hidden;
}

.post-card-media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(120deg, var(--blue), var(--red));
	color: var(--white);
	font-weight: 800;
	text-align: center;
	padding: 18px;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	padding: 18px;
}

.post-card .article-meta {
	padding: 0 0 10px;
}

.post-card h2 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.18;
}

.post-card p {
	margin: 0;
	color: #444;
}

.page-title-block {
	padding: 28px 22px 0;
}

.sidebar {
	display: grid;
	gap: 18px;
}

.sidebar-box {
	padding: 0;
}

.sidebar-title {
	margin: 0;
	padding: 13px 16px;
	background: var(--ink);
	color: var(--white);
	font-size: 16px;
	text-transform: uppercase;
	border-bottom: 4px solid var(--red);
}

.sidebar-content,
.sidebar-box > ul,
.sidebar-box > div,
.ad-box {
	padding: 16px;
}

.sidebar .widget_search .wp-block-search,
.sidebar .widget_search form {
	padding: 16px;
}

.sidebar .wp-block-search__inside-wrapper,
.sidebar .search-form {
	display: flex;
	gap: 8px;
}

.sidebar input[type="search"],
.sidebar .wp-block-search__input {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--border);
	padding: 10px;
	font: inherit;
}

.sidebar button,
.sidebar .wp-block-search__button,
.form-submit input {
	border: 0;
	background: var(--red);
	color: var(--white);
	padding: 10px 14px;
	font-weight: 700;
	cursor: pointer;
}

.sidebar ul,
.sidebar ol {
	margin: 0;
	padding-left: 20px;
}

.sidebar li + li {
	margin-top: 9px;
}

.news-list {
	margin: 0;
	padding-left: 20px;
}

.news-list li + li {
	margin-top: 10px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-cloud a {
	display: inline-block;
	border: 1px solid var(--border);
	background: #fafafa;
	padding: 6px 9px;
	font-weight: 700;
	color: var(--blue);
}

.ad-box {
	min-height: 190px;
	display: grid;
	place-items: center;
	background: repeating-linear-gradient(45deg, #f7f7f7, #f7f7f7 10px, #ededed 10px, #ededed 20px);
	color: var(--muted);
	font-weight: 800;
	text-transform: uppercase;
}

.navigation,
.pagination,
.post-navigation {
	margin-top: 22px;
}

.nav-links,
.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers,
.post-navigation a {
	background: var(--white);
	border: 1px solid var(--border);
	padding: 8px 10px;
	font-weight: 700;
}

.comment-respond,
.comments-area,
.comment-navigation {
	margin-top: 22px;
	background: var(--white);
	border: 1px solid var(--border);
	padding: 22px;
}

.comment-respond h3 {
	margin-top: 0;
	font-size: 24px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--border);
	padding: 10px;
	font: inherit;
}

.footer {
	background: #111;
	color: var(--white);
	border-top: 4px solid var(--red);
}

.footer-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px 16px;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer-links a {
	color: #e6e6e6;
	margin-left: 14px;
	font-weight: 700;
}

@media (max-width: 900px) {
	.header-inner,
	.page-wrap {
		grid-template-columns: 1fr;
	}

	.search-box {
		min-width: 0;
		width: 100%;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
	}

	.nav-inner {
		display: block;
	}

	.menu {
		display: none;
		padding-bottom: 8px;
	}

	.menu.is-open {
		display: block;
	}

	.menu a {
		padding-left: 0;
	}

	.hero-visual {
		min-height: 250px;
	}

	.hero-overlay {
		padding: 22px;
	}

	.hero-overlay h1,
	.page-title-block h1,
	.archive-header h1 {
		font-size: 32px;
	}

	.dropdown-content {
		padding-left: 18px;
	}

	.accordion-item summary {
		grid-template-columns: 38px minmax(0, 1fr) 20px;
	}

	.footer-inner {
		display: block;
	}

	.footer-links a {
		display: inline-block;
		margin: 8px 12px 0 0;
	}
}


