/**
 * Sidebar Stilleri
 * SGD Dernek Teması
 */

/* Sidebar Genel */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 12px; /* 15px'den 12px'e düştü */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
}

/* Köşe Yazarları Bölümü */
.sidebar-kose-yazarlari {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    height: 418px;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.kose-yazarlari-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px; /* Üst-alt 8px, sağ-sol 12px - KOMPAKT */
    background: #fff;
    border-bottom: 2px solid #667eea;
    flex-shrink: 0;
}

.kose-icon {
    font-size: 22px;
    color: #667eea;
    animation: writeAnimation 3s ease-in-out infinite;
}

@keyframes writeAnimation {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.kose-yazarlari-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* Köşe Yazarları İçerik Alanı - Scrollable */
.kose-yazarlari-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 3px; /* Sağ-sol padding %75 azaltıldı (12px → 3px) */
    max-height: 400px;
    background: #f8f9fa;

    /* Scroll bar gizle ama kaydırma aktif */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.kose-yazarlari-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.kose-yazari-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kose-yazari-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.kose-yazari-item:last-child {
    margin-bottom: 0;
}

.kose-yazari-link {
    display: flex;
    align-items: center;
    gap: 8px; /* 12px'den 8px'e azaltıldı */
    color: #2c3e50;
    text-decoration: none;
}

.yazar-foto-wrapper {
    flex-shrink: 0;
}

.yazar-foto,
.yazar-foto-placeholder {
    width: 74px; /* 70px'den 74px'e büyütüldü */
    height: 74px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.yazar-foto-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* 28px'den 30px'e büyütüldü */
    font-weight: 700;
    color: #fff;
}

.yazar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yazar-adi {
    font-weight: 700;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.2;
}

.yazar-unvan {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
}

.yazi-baslik {
    font-size: 12px;
    color: #495057;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
}

/* Duyurular Alanı - Hero slider ile aynı yükseklik (418px) */
.sidebar-duyurular {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-radius: 8px;
    height: 418px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #d1e7f5;
    display: flex;
    flex-direction: column;
}

.duyurular-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 2px solid #667eea;
    flex-shrink: 0;
}

.duyurular-icon {
    font-size: 22px;
    color: #667eea;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.duyurular-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* Duyurular İçerik Alanı - Scrollable */
.duyurular-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 3px;

    /* Scroll bar gizle ama kaydırma aktif */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.duyurular-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.duyuru-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.duyuru-item:hover {
    background: #f8f9fa;
    border-left-color: #667eea;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.duyuru-item:last-child {
    margin-bottom: 0;
}

/* Önem Seviyelerine Göre Renkler */
.duyuru-item.onemli {
    background: #fff9e6;
    border-left-color: #ffc107;
}

.duyuru-item.acil {
    background: #ffebee;
    border-left-color: #f44336;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.duyuru-item.yuksek {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.duyuru-item a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
}

.duyuru-dot {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.duyuru-title {
    flex: 1;
}

/* Sidebar Section */
.sidebar-section {
    margin-bottom: 15px; /* 20px'den 15px'e */
    padding-bottom: 15px; /* 20px'den 15px'e */
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-title {
    font-size: 15px; /* 16px'den 15px'e */
    font-weight: 700;
    margin: 2px 0 12px 0; /* Üst margin 2px eklendi */
    padding-bottom: 6px; /* 8px'den 6px'e */
    border-bottom: 2px solid #667eea;
    color: #1a1a1a;
}

/* Recent Posts List */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-item {
    display: flex;
    gap: 8px; /* 10px'den 8px'e */
    margin-bottom: 10px; /* 12px'den 10px'e */
    padding-bottom: 10px; /* 12px'den 10px'e */
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb-link {
    flex-shrink: 0;
}

.recent-post-thumb {
    width: 80px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

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

.recent-post-title {
    margin: 0 0 3px 0; /* 4px'den 3px'e */
    font-size: 12px; /* 13px'den 12px'e */
    font-weight: 600;
    line-height: 1.3;
}

.recent-post-title a {
    color: #1a1a1a;
}

.recent-post-title a:hover {
    color: #667eea;
}

/* Category List */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 8px; /* 10px'den 8px'e */
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px; /* 8px 10px'den küçültüldü */
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #667eea;
    color: #fff;
}

.category-list a:hover .cat-name,
.category-list a:hover .cat-count {
    color: #fff;
}

.cat-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 12px; /* 13px'den 12px'e */
}

.cat-count {
    background: #667eea;
    color: #fff;
    padding: 2px 7px; /* 2px 8px'den küçültüldü */
    border-radius: 12px;
    font-size: 10px; /* 11px'den 10px'e */
    font-weight: 600;
}

.category-list a:hover .cat-count {
    background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        padding: 10px; /* 12px'den 10px'e */
    }

    .sidebar-kose-yazarlari {
        height: 308px;
        margin-bottom: 12px;
    }

    .kose-yazarlari-header {
        padding: 12px;
    }

    .kose-yazarlari-header h3 {
        font-size: 16px;
    }

    .kose-yazarlari-content {
        max-height: 250px;
    }

    .yazar-foto,
    .yazar-foto-placeholder {
        width: 64px; /* 60px'den 64px'e büyütüldü */
        height: 64px;
    }

    .yazar-foto-placeholder {
        font-size: 26px; /* 24px'den 26px'e büyütüldü */
    }

    .yazar-adi {
        font-size: 13px;
    }

    .yazar-unvan {
        font-size: 10px;
    }

    .yazi-baslik {
        font-size: 11px;
    }

    .sidebar-duyurular {
        height: 308px; /* Hero slider mobil yüksekliği ile aynı - %10 artış */
    }

    .duyurular-header {
        padding: 12px;
    }

    .duyurular-header h3 {
        font-size: 16px;
    }

    .duyuru-item a {
        font-size: 12px;
    }

    .recent-post-thumb {
        width: 60px;
        height: 32px;
    }

    .sidebar-quote {
        margin: 17px 0;
    }

    .quote-header {
        padding: 12px;
    }

    .quote-header h3 {
        font-size: 16px;
    }

    .quote-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .quote-author {
        font-size: 11px;
    }
}

/* === GÜNÜN SÖZÜ === */
.sidebar-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 17px 0;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 2px solid #dee2e6;
}

.quote-header {
    background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #dee2e6;
}

.quote-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.quote-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.quote-content {
    padding: 20px;
}

.quote-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0 0 15px 0;
    font-weight: 500;
    position: relative;
    padding-left: 15px;
}

.quote-text::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 40px;
    color: #ffd700;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-author {
    font-size: 13px;
    font-style: italic;
    color: #8b6914;
    font-weight: 600;
    text-align: right;
    margin: 0;
    padding-right: 10px;
}

.quote-author::before {
    content: '— ';
}
