/*
 * ÇandName CSS modülü: Widget
 * Kenar çubuğu widget'ları.
 * Bu dosya diğer CSS dosyalarından bağımsızdır; hata yalnızca bu alanı etkiler.
 * Yükleme sırası: inc/assets.php
 */

/* ------------------------------------------------------------------
   8. Widgets
------------------------------------------------------------------ */
.widget { background: var(--surface); border-radius: 4px; padding: 10px; margin-bottom: 10px; }
.widget > :last-child, .widget li:last-child, .widget p:last-child { margin-bottom: 0; padding-bottom: 0; }
.widget li:first-child { padding-top: 0; }
/* Image widgets / image blocks: almost no frame. */
.widget_media_image, .widget:has(> .wp-block-image:only-child), .widget:has(> a:only-child > img) { padding: 4px; }
.widget img { display: block; width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 959px) { .widget { padding: 10px; margin-bottom: 10px; } .widget_media_image, .widget:has(> .wp-block-image:only-child), .widget:has(> a:only-child > img) { padding: 3px; } }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-family: var(--serif); font-weight: 700; font-size: calc(20px * var(--fs, 1)); padding-bottom: 12px; margin: 0; border-bottom: 2px solid var(--green); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { border-bottom: 0; }


/* Customizer-driven home sections */
.home-sidebar-only .sidebar { max-width: 420px; }

/* Sticky widgets: on wide screens the sidebar follows the page while scrolling (and stays put when the text column is longer). */
@media (min-width: 960px) {
	.sidebar { align-self: start; }
	.sidebar.is-sticky { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.admin-bar .sidebar.is-sticky { top: 52px; max-height: calc(100vh - 72px); }
}

/* Hidden by initSidebarFit() in theme.js so the sidebar is as tall as the posts column. */
.is-fit-hidden { display: none !important; }

/* "All authors" link at the bottom of an authors box (candname_authors_all_link()) */
.authors-all { margin: 14px 0 0; text-align: center; font-weight: 600; font-size: calc(15px * var(--fs, 1)); }
.authors-all a { color: var(--link, var(--green)); }
