/* Bočna traka: Najčitanije, Najtraženije, widgeti */

/* --- Bočna traka --- */
.sidebar { margin-top: 36px; align-self: stretch; }
.ad-slot--sidebar { position: sticky; top: 100px; }
.admin-bar .ad-slot--sidebar { top: 132px; }
.sidebar-box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sidebar-box .widget + .widget { margin-top: 26px; }
.sidebar-widgets { margin-top: 26px; }
.sidebar-widgets .widget + .widget { margin-top: 26px; }
.block-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; padding-bottom: 10px; position: relative; }
.block-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--brand); border-radius: 3px; }

.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rank-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 8px; padding: 11px 0; border-bottom: 1px solid #e6dfd8; }
.rank-list li:last-child { border-bottom: 0; }
.rank-num { font: 800 24px/1 var(--font-head); color: var(--brand); opacity: .9; }
.rank-list a { font-size: 14.5px; font-weight: 700; line-height: 1.38; }

/* Standardni widgeti (Kategorije, Najnoviji, Pretraga…) */
.sidebar-widgets .widget { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.sidebar-widgets .widget h2, .sidebar-widgets .wp-block-heading { font-size: 18px; font-weight: 800; margin: 0 0 12px; padding-bottom: 10px; position: relative; }
.sidebar-widgets .widget h2::after, .sidebar-widgets .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--brand); border-radius: 3px; }
.sidebar-widgets ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widgets li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.sidebar-widgets li:last-child { border-bottom: 0; }
.sidebar-widgets .wp-block-search__label { display: block; font-weight: 800; margin-bottom: 8px; }
.sidebar-widgets .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.sidebar-widgets .wp-block-search__input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sidebar-widgets .wp-block-search__button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.sidebar-widgets .wp-block-group__inner-container > * + * { margin-top: 0; }

/* Tablet uspravno / veliki mobitel (do 900 px) */
@media (max-width: 900px) {
	.sidebar { position: static; }
}

/* Naslovi u malim karticama najviše u 3 reda */
.sidebar .card-mini-title a {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Dugme "Pogledaj sve recepte" */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 12px 20px; border-radius: 8px; background: var(--brand); color: #fff;
	font-weight: 800; font-size: 15px; transition: filter .15s;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn-block { display: flex; width: 100%; margin-top: 22px; }
