/* =========================================================
   sidebar.css — single.php sticky-sivupalkki & widgetit
   ========================================================= */

.vitv-sidebar__sticky {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.vitv-widget {
	background: #fff;
	border: 1px solid var(--vitv-border);
	border-radius: var(--vitv-radius);
	padding: 24px;
	box-shadow: var(--vitv-shadow);
}
.vitv-widget__title {
	font-size: 18px;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--vitv-green);
	display: inline-block;
}

/* Top 10 numeroitu lista (flex-asettelu, ei päällekkäisiä numeroita) */
.vitv-top10 { counter-reset: top10; list-style: none; margin: 0; padding: 0; }
.vitv-top10 li {
	counter-increment: top10;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid var(--vitv-border);
	line-height: 1.4;
}
.vitv-top10 li:last-child { border-bottom: none; }
.vitv-top10 li::before {
	content: counter(top10);
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	background: var(--vitv-hero-gradient);
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	font-family: var(--vitv-font-head);
	margin-top: 1px;
}
.vitv-top10 a { text-decoration: none; color: var(--vitv-text); font-size: 15px; }
.vitv-top10 a:hover { color: var(--vitv-green); }

/* Hakukenttä */
.vitv-widget .search-form { display: flex; gap: 8px; }
.vitv-widget .search-field {
	flex: 1; padding: 10px 14px; border: 1px solid var(--vitv-border);
	border-radius: 50px; font-size: 15px; min-width: 0;
}
.vitv-widget .search-submit {
	background: var(--vitv-green); color: #fff; border: none;
	border-radius: 50px; padding: 10px 18px; cursor: pointer; font-weight: 700;
}
.vitv-widget .search-submit:hover { background: var(--vitv-green-dark); }

/* Kategorialista */
.vitv-cat-list { list-style: none; margin: 0; padding: 0; }
.vitv-cat-list li { border-bottom: 1px solid var(--vitv-border); }
.vitv-cat-list li:last-child { border-bottom: none; }
.vitv-cat-list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 0; text-decoration: none; color: var(--vitv-text); font-weight: 600;
}
.vitv-cat-list a:hover { color: var(--vitv-green); }

/* Affiliate-banneri */
.vitv-widget--affiliate { background: var(--vitv-bg); text-align: center; }
.vitv-affiliate-banner {
	display: block; margin-top: 12px; background: var(--vitv-hero-gradient);
	color: #fff; border-radius: var(--vitv-radius); padding: 24px; text-decoration: none;
	transition: transform .3s ease, box-shadow .3s ease;
}
.vitv-affiliate-banner:hover { transform: translateY(-4px); box-shadow: var(--vitv-shadow-lg); }
.vitv-affiliate-banner__leaf { font-size: 40px; display: block; margin-bottom: 8px; }
.vitv-affiliate-banner__text { display: block; line-height: 1.5; }
.vitv-affiliate-banner__cta { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.2); padding: 8px 18px; border-radius: 50px; font-weight: 700; }

/* Uutiskirje sivupalkissa */
.vitv-widget--newsletter { background: var(--vitv-green-dark); color: #fff; }
.vitv-widget--newsletter .vitv-widget__title { color: #fff; border-color: var(--vitv-yellow); }
.vitv-widget--newsletter p { opacity: .9; font-size: 15px; }
.vitv-newsletter__form--compact { flex-direction: column; gap: 10px; }
.vitv-newsletter__form--compact input { padding: 12px 16px; border-radius: 50px; border: none; width: 100%; box-sizing: border-box; }

@media (max-width: 980px) {
	.vitv-sidebar__sticky { position: static; }
}
