/**
 * Blog Sidebar Stilleri
 * Tüm blog sayfalarında kullanılır
 */

/* ===================== */
/* SIDEBAR CONTAINER */
/* ===================== */
.blog-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* ===================== */
/* WIDGET */
/* ===================== */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-widget-title {
    padding: 16px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid var(--gray-100);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ===================== */
/* ARAMA */
/* ===================== */
.search-widget-content {
    padding: 16px 20px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--gray-50);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-clear {
    position: absolute;
    right: 10px;
    color: var(--gray-400);
    padding: 4px;
    cursor: pointer;
}

.search-clear:hover {
    color: var(--gray-600);
}

.search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ===================== */
/* KATEGORİ LİSTESİ */
/* ===================== */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--gray-100);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: all 0.15s;
    text-decoration: none;
}

.category-list a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.category-list a.active {
    background: var(--gray-50);
    color: var(--primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}

.cat-count {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.category-list a:hover .cat-count,
.category-list a.active .cat-count {
    background: var(--primary);
    color: #fff;
}

/* ===================== */
/* SON YAZILAR */
/* ===================== */
.recent-posts {
    padding: 8px 0;
}

.recent-post {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
    text-decoration: none;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post:hover {
    background: var(--gray-50);
}

.recent-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 20px;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post:hover .recent-post-title {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ===================== */
/* ETİKET BULUTU */
/* ===================== */
.tag-cloud {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.15s;
    text-decoration: none;
}

.tag-item:hover,
.tag-item.active {
    background: var(--primary);
    color: #fff;
}