/* ===================================
   SIDEBAR STYLES
   =================================== */

/* Genel Sidebar ve Widget Yapısı */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--bg-medium); /* İkinci dosyadan */
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px; /* İlk dosyadan eklendi, genel widget boşluğu için */
}

.widget-title {
    background-color: var(--bg-light); /* İkinci dosyadan */
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light); /* İkinci dosyadan (var kullanıldı) */
    margin: 0;
    border-bottom: 2px solid var(--primary-color); /* İkinci dosyadan */
    letter-spacing: 0.5px; /* İlk dosyadan eklendi */
}

.widget-content {
    padding: 20px; /* Her iki dosyada da vardı, ikinci dosyadaki spesifik olanlar aşağıda */
}

/* Search Widget (İlk dosyadan eklendi) */
.sidebar-search-form .form-group {
    position: relative;
}

.sidebar-search-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a1a1a; /* İlk dosyadan renk */
    border: none;
    border-radius: 5px;
    color: #fff; /* İlk dosyadan renk */
    font-size: 14px;
}

.sidebar-search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: var(--primary-color); /* İlk dosyadan (var kullanıldı) */
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    color: #fff; /* İlk dosyadan renk */
    font-size: 14px;
    transition: background 0.2s ease;
}

.sidebar-search-form button:hover {
    background-color: #6340c4; /* İlk dosyadan renk */
}


/* Popular Posts Widget (İkinci dosyadan stiller öncelikli) */
.widget-post {
    display: flex;
    margin-bottom: 20px; /* İkinci dosyadan */
}

.widget-post:last-child {
    margin-bottom: 0;
}

.widget-post .post-thumb {
    width: 90px; /* İkinci dosyadan */
    height: 70px; /* İkinci dosyadan */
    margin-right: 15px; /* İkinci dosyadan */
    border-radius: 5px; /* İkinci dosyadan */
    overflow: hidden;
    flex-shrink: 0;
}

.widget-post .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-post:hover .post-thumb img {
    transform: scale(1.08); /* İkinci dosyadan */
}

.widget-post .post-content {
    flex: 1;
}

.widget-post .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px; /* İkinci dosyadan */
}

.widget-post .post-title a {
    color: var(--text-light); /* İkinci dosyadan */
}

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

.widget-post .post-meta {
    font-size: 12px;
    color: var(--text-dark); /* İkinci dosyadan */
}

/* Categories Widget (İkinci dosyadan stiller öncelikli) */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #333; /* İkinci dosyadan */
}

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

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center; /* İlk dosyadan eklendi */
    /* ---- DEĞİŞİKLİK BURADA: Dikey boşluk azaltıldı ---- */
    padding: 6px 0; /* 12px yerine 6px (veya istediğiniz başka bir değer) */
    /* ---- DEĞİŞİKLİK SONU ---- */
    color: var(--text-medium); /* İkinci dosyadan */
    text-decoration: none; /* İlk dosyadan eklendi */
    transition: color 0.2s ease;
}

.categories-list a:hover {
    color: var(--primary-color);
}

.categories-list .count {
    background-color: var(--bg-light); /* İkinci dosyadan */
    padding: 2px 8px; /* İkinci dosyadan */
    border-radius: 10px; /* İkinci dosyadan */
    font-size: 12px;
    color: var(--text-dark); /* İkinci dosyadan */
}

/* Latest Reviews Widget (İkinci dosyadan stiller öncelikli) */
.widget.latest-reviews .widget-content {
    padding: 15px; /* İkinci dosyadan */
}

.widget-review {
    margin-bottom: 20px; /* İkinci dosyadan */
}

.widget-review:last-child {
    margin-bottom: 0;
}

.widget-review .post-thumb {
    position: relative;
    height: 140px; /* İkinci dosyadan */
    margin-bottom: 15px; /* İkinci dosyadan */
    border-radius: 5px; /* İkinci dosyadan */
    overflow: hidden;
    display: block; /* İlk dosyadan eklendi */
}

.widget-review .post-thumb img {
    width: 100%;
    height: 100%; /* İkinci dosyadan */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-review:hover .post-thumb img {
    transform: scale(1.08); /* İkinci dosyadan */
}

.widget-review .rating {
    position: absolute;
    top: 10px; /* İkinci dosyadan */
    right: 10px; /* İkinci dosyadan */
    width: 30px; /* İkinci dosyadan */
    height: 30px; /* İkinci dosyadan */
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}

.widget-review .post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.widget-review .post-title a {
    color: var(--text-light); /* İkinci dosyadan */
    text-decoration: none; /* İlk dosyadan eklendi */
    transition: color 0.2s ease; /* İlk dosyadan eklendi */
}

.widget-review .post-title a:hover {
    color: var(--primary-color);
}

/* Social Widget (İkinci dosyadan stiller öncelikli) */
.widget.social-widget .widget-content {
    padding: 15px; /* İkinci dosyadan */
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* İkinci dosyadan */
    gap: 15px; /* İkinci dosyadan */
}

.social-link {
    display: flex;
    align-items: center;
    padding: 12px 15px; /* İkinci dosyadan */
    background-color: var(--bg-light); /* İkinci dosyadan genel arka plan */
    color: var(--text-light); /* İkinci dosyadan */
    border-radius: 5px; /* İkinci dosyadan */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Birleştirilmiş geçişler */
    text-decoration: none; /* İlk dosyadan eklendi */
}

.social-link:hover {
    transform: translateY(-3px); /* İkinci dosyadan */
    opacity: 0.9; /* İlk dosyadan */
}

.social-link i {
    font-size: 18px; /* İkinci dosyadan */
    margin-right: 10px; /* İkinci dosyadan */
}

/* Specific social link backgrounds (Her iki dosyada da vardı, birleştirildi) */
.social-link.facebook { background-color: #3b5998; }
.social-link.twitter { background-color: #1da1f2; }
.social-link.instagram { background-color: #c13584; }
.social-link.youtube { background-color: #ff0000; }
.social-link.discord { background-color: #7289da; }
.social-link.twitch { background-color: #6441a5; }

/* Latest Comments Widget (İlk dosyadaki yapı ve ikinci dosyadaki stiller birleştirildi) */
.latest-comments .comment-item { /* İlk dosyadaki .latest-comments seçicisi korundu */
    display: flex;
    padding: 12px 0; /* İlk dosyadan */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* İlk dosyadan */
    margin-bottom: 0; /* İkinci dosyadaki mb kaldırıldı, padding/border kullanılıyor */
}

.latest-comments .comment-item:last-child {
    border-bottom: none; /* İlk dosyadan */
}

.latest-comments .comment-avatar { /* İlk dosyadaki seçici */
    width: 40px; /* İkinci dosyadan */
    height: 40px; /* İkinci dosyadan */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px; /* İkinci dosyadan */
    flex-shrink: 0; /* İlk dosyadan */
}

.latest-comments .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-comments .comment-content { /* İlk dosyadaki seçici */
    flex: 1;
}

.latest-comments .commenter-name { /* İlk dosyadaki seçici */
    font-size: 12px; /* İkinci dosyadan */
    font-weight: 600;
    margin: 0 0 5px; /* İkinci dosyadan */
    color: var(--text-light); /* İlk dosyadan */
}

.latest-comments .comment-text { /* İlk dosyadaki seçici */
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dark); /* İkinci dosyadan */
    margin: 0 0 5px; /* İlk dosyadan */
}

.latest-comments .comment-article { /* İlk dosyadan */
    margin: 5px 0 0;
    padding-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.latest-comments .comment-article a { /* İlk dosyadan */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.latest-comments .comment-article i { /* İlk dosyadan */
    margin-right: 5px;
    font-size: 14px;
}

.latest-comments .comment-article a:hover { /* İlk dosyadan */
    color: var(--text-light);
}

.latest-comments .no-comments { /* İlk dosyadan */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    border-radius: 3px;
    color: var(--text-medium);
}


/* SIDEBAR RESPONSIVE STYLES (Birleştirilmiş) */
@media (max-width: 992px) {
    .sidebar {
        margin-top: 40px; /* İkinci dosyadan */
    }
    /* İlk dosyadan 992px için widget'a özel stil yoktu */
}

@media (max-width: 768px) {
    /* İlk dosyadan 768px için widget'a özel stil yoktu, sosyal linkler hariç */
     .social-links-grid {
        grid-template-columns: 1fr; /* İlk dosyadan */
    }
}

@media (max-width: 576px) {
    .widget-content {
        padding: 15px; /* Her iki dosyada da vardı */
    }

    .widget-post .post-thumb {
        flex: 0 0 70px; /* İkinci dosyadan */
        width: 70px; /* İkinci dosyadan */
        height: 70px; /* İkinci dosyadan */
    }

    .social-links-grid {
        grid-template-columns: 1fr; /* Her iki dosyada da vardı */
    }
}