/*
Theme Name: curvasrb
Description: Tamna tema po uzoru na stari curvasrb.weebly.com – meni levo, blog u sredini, bočna kolona desno.
Version: 1.0
Author: curvasrb
Text Domain: curvasrb
*/

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #1e1e1e;
	color: #7b7b7b;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
a { color: #898989; text-decoration: none; }
a:hover { color: #d2d2d2; }
img { max-width: 100%; height: auto; border: 0; }
iframe, embed, object, video { max-width: 100%; }
h1, h2, h3, h4 { font-family: "Montserrat", "PT Sans", Arial, sans-serif; color: #d5d5d5; font-weight: 400; line-height: 1.25; }
blockquote { font-style: italic; border-left: 4px solid #333; margin: 10px 0; padding-left: 20px; color: #777; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- raspored (kao na starom sajtu: 950 px) ---------- */
#container { width: 950px; max-width: 100%; margin: 0 auto; }

#header {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 90px; padding: 0 0 0 22px;
	border-bottom: 1px solid #2d2d2d; margin-bottom: 26px;
}
#logo img { display: block; margin-top: 6px; }
#logo .site-title { font-family: "Montserrat", sans-serif; font-size: 40px; color: #fff; }
#menu-toggle { display: none; }

#main-wrap { display: flex; align-items: flex-start; }

/* levi meni */
#avmenu { flex: 0 0 241px; width: 241px; }
#avmenu ul { list-style: none; margin: 0; padding: 0; }
#avmenu li a {
	display: block; padding: 11px 5px 11px 22px;
	border-bottom: 1px solid #2a2a2a;
	color: #7b7b7b; font-size: 14px; letter-spacing: .5px;
	text-transform: uppercase;
}
#avmenu ul > li:last-child > a { border-bottom: none; }
#avmenu li.current-menu-item > a,
#avmenu li.current-cat > a,
#avmenu li.current-parent > a,
#avmenu a:hover { color: #b1b1b1; background: #141414; }
#avmenu ul ul a { padding-left: 38px; font-size: 13px; text-transform: none; }

/* sredina + bočna kolona */
#main { flex: 1 1 auto; min-width: 0; padding-left: 9px; display: flex; align-items: flex-start; }
#content { flex: 1 1 auto; min-width: 0; padding: 0 18px 25px 0; }
#blog-sidebar { flex: 0 0 200px; width: 200px; padding: 0 0 25px 0; }

/* ---------- objave ---------- */
.blog-post { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #2d2d2d; }
.blog-title { margin: 0 0 2px; font-family: "PT Sans", Arial, sans-serif; font-size: 18px; line-height: 22px; font-weight: 700; }
.blog-title a { color: #d5d5d5; }
.blog-title a:hover { color: #fff; }
.blog-meta { font-size: 12px; color: #626262; margin-bottom: 10px; }
.blog-meta a { color: #626262; }
.blog-meta a:hover { color: #d2d2d2; }
.blog-content { color: #d5d5d5; overflow-wrap: break-word; }
.blog-content p, .blog-content div.paragraph { margin: 0; padding: .5em 0; color: #d5d5d5; }
.blog-content a { color: #898989; text-decoration: underline; }
.blog-content .wsite-image { text-align: center; }
.blog-content .wsite-image img { max-width: 100% !important; height: auto; }
.blog-content .wsite-multicol-table { width: 100%; table-layout: fixed; }
.blog-content .wsite-youtube-container, .blog-content .wsite-video-container { position: relative; }
.blog-content iframe[src*="youtube"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.blog-footer-links { margin-top: 10px; font-size: 12px; }
.blog-footer-links a { color: #626262; }

/* galerije (prebačene sa Weebly-ja) */
.blog-content .wp-block-gallery {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
	margin: 10px 0; padding: 0;
}
.blog-content .wp-block-gallery figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #141414; }
.blog-content .wp-block-gallery figure a { display: block; height: 100%; text-decoration: none; }
.blog-content .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-content .wp-block-gallery img:hover { opacity: .85; }

/* straničenje */
.pagination { display: flex; justify-content: space-between; padding: 10px 0 20px; font-size: 13px; }
.pagination a { color: #898989; }
.archive-title { font-size: 20px; margin: 0 0 18px; color: #d5d5d5; }

/* ---------- bočna kolona ---------- */
#blog-sidebar .widget { margin-bottom: 18px; }
#blog-sidebar h2, #blog-sidebar .widget-title {
	font-size: 15px; color: #a1a1a1; margin: 0 0 6px; padding: 0; font-family: "PT Sans", Arial, sans-serif;
}
#blog-sidebar a { color: #626262; }
#blog-sidebar a:hover { color: #d2d2d2; }
#blog-sidebar ul { list-style: none; margin: 0; padding: 0; }
#blog-sidebar li { padding: 1px 0; }
#blog-sidebar .banner { display: block; margin: 0 0 10px; text-align: center; }
#blog-sidebar .banner img { display: block; margin: 0 auto; }
#blog-sidebar .kontakt { font-size: 12px; line-height: 1.5; color: #a1a1a1; }
#blog-sidebar .arhiva { max-height: 360px; overflow-y: auto; }
.search-form { display: flex; margin-bottom: 14px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: 6px 8px; background: #141414; color: #d5d5d5;
	border: 1px solid #2d2d2d; font: inherit;
}
.search-form button { background: #2a2a2a; color: #b1b1b1; border: 1px solid #2d2d2d; padding: 0 10px; cursor: pointer; }

/* ---------- komentari ---------- */
#comments { margin-top: 20px; color: #b1b1b1; }
#comments .comment-list { list-style: none; padding: 0; }
#comments .comment-body { border-bottom: 1px solid #2d2d2d; padding: 10px 0; }
#comments input[type="text"], #comments input[type="email"], #comments input[type="url"], #comments textarea {
	width: 100%; background: #141414; color: #d5d5d5; border: 1px solid #2d2d2d; padding: 6px; font: inherit;
}
#comments input[type="submit"] { background: #2a2a2a; color: #d5d5d5; border: 1px solid #3a3a3a; padding: 6px 14px; cursor: pointer; }

/* ---------- podnožje ---------- */
#footer {
	clear: both; border-top: 1px solid #2d2d2d;
	padding: 40px 22px 45px 0; text-align: right; font-size: 12px; color: #7b7b7b;
}

/* ---------- telefon / tablet ---------- */
@media (max-width: 960px) {
	#header { padding: 0 12px; margin-bottom: 12px; }
	#menu-toggle {
		display: block; background: none; border: 1px solid #3a3a3a; color: #b1b1b1;
		font-size: 22px; line-height: 1; padding: 6px 10px; cursor: pointer;
	}
	#main-wrap { flex-direction: column; }
	#avmenu { width: 100%; flex: none; display: none; border-bottom: 1px solid #2d2d2d; margin-bottom: 12px; }
	#avmenu.open { display: block; }
	#main { flex-direction: column; padding: 0 12px; width: 100%; }
	#content { padding-right: 0; width: 100%; }
	#blog-sidebar { width: 100%; flex: none; border-top: 1px solid #2d2d2d; padding-top: 18px; }
	#blog-sidebar .banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
	#blog-sidebar .banner { margin: 0; }
	#footer { text-align: center; padding: 25px 12px; }
}
@media (max-width: 520px) {
	.blog-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
	.blog-title { font-size: 17px; }
}
