/* ===================================
   9. FOOTER
   =================================== */
.site-footer {
    background-color: var(--bg-medium);
    padding: 40px 0 0; /* Footer içindeki üst boşluğu azalttık */
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Sütunlar arası boşluğu azalttık */
    margin-bottom: 30px;
}

.footer-widget {
    color: var(--text-medium);
}

.footer-widget h4.widget-title {
    color: var(--text-light);
    font-size: 16px; /* Başlık boyutunu küçülttük */
    font-weight: 700;
    margin-bottom: 15px; /* Alt boşluğu azalttık */
    padding-bottom: 8px; /* Alt dolguyu azalttık */
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.numbered-list li {
    position: relative;
    padding: 6px 0; /* Öğe dikey boşluğunu azalttık */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    height: 30px; /* Sabit yükseklik belirledik */
    display: flex;
    align-items: center; /* Dikeyde ortala */
}

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

.numbered-list li a {
    display: flex;
    align-items: center; /* Dikeyde ortala */
    height: 100%;
    padding-left: 30px;
    color: var(--text-medium);
    transition: color 0.2s ease;
    font-size: 14px; /* Font boyutunu küçülttük */
    text-decoration: none;
    line-height: 1;
}

.numbered-list li a:hover {
    color: var(--text-light);
}

.numbered-list li a::before {
    counter-increment: item;
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px; /* Numaralama font boyutunu küçülttük */
}

/* Özel renkli numaralandırma */
.numbered-list li:nth-child(1) a::before { color: #3498db; } /* Mavi */
.numbered-list li:nth-child(2) a::before { color: #9b59b6; } /* Mor */
.numbered-list li:nth-child(3) a::before { color: #e74c3c; } /* Kırmızı */
.numbered-list li:nth-child(4) a::before { color: #2ecc71; } /* Yeşil */
.numbered-list li:nth-child(5) a::before { color: #f1c40f; } /* Sarı */
.numbered-list li:nth-child(6) a::before { color: #e67e22; } /* Turuncu */
.numbered-list li:nth-child(7) a::before { color: #1abc9c; } /* Turkuaz */

/* 5-6-7. öğeler için sağa hizalama */
.numbered-list li:nth-child(n+5) a {
    display: flex;
    justify-content: flex-end; /* Sağa hizalama */
    padding-right: 10px; /* Sağ kenardan boşluk */
    padding-left: 30px;
}

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

.posts-list li {
    display: flex;
    margin-bottom: 10px; /* Boşluğu azalttık */
    padding-bottom: 10px; /* Boşluğu azalttık */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.posts-list .thumb {
    width: 70px; /* Boyutu azalttık */
    height: 50px; /* Boyutu azalttık */
    margin-right: 10px; /* Boşluğu azalttık */
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.posts-list li:hover .thumb img {
    transform: scale(1.08);
}

.posts-list .post-info {
    overflow: hidden;
}

.posts-list .post-info h5 {
    font-size: 13px; /* Font boyutunu küçülttük */
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 3px 0; /* Alt boşluğu azalttık */
}

.posts-list .post-info h5 a {
    color: var(--text-medium);
    text-decoration: none;
}

.posts-list .post-info h5 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 11px; /* Font boyutunu küçülttük */
    margin: 0;
    color: #999;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 26px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 15px 0; /* Dikey dolguyu azalttık */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-dark);
    font-size: 13px; /* Font boyutunu küçülttük */
}

/* Aşağıdaki "aaa" gibi ek satır için özel sınıf */
.footer-note {
    text-align: center;
    font-size: 11px; /* Font boyutunu küçülttük */
    color: var(--text-dark);
    margin-top: 8px; /* Üst boşluğu azalttık */
}

/* Sosyal İkonlar */
.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Boyutu küçülttük */
    height: 32px; /* Boyutu küçülttük */
    background-color: var(--bg-light);
    color: var(--text-medium);
    border-radius: 50%;
    margin-left: 8px; /* Boşluğu azalttık */
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Dynamic Codes kısmı */
.footer-dynamic-codes {
    text-align: center;
    font-size: 11px; /* Font boyutunu küçülttük */
    color: var(--text-light);
    padding: 8px 0; /* Dikey dolguyu azalttık */
    background-color: var(--bg-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* FOOTER RESPONSIVE STYLES */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .numbered-list li, 
    .numbered-list li:nth-child(n+5) a {
        justify-content: flex-start; /* Mobil görünümde hepsini sola hizala */
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        margin: 0 4px;
    }
    
    .numbered-list li {
        height: 28px; /* Mobilde daha kompakt */
    }
    
    .numbered-list li a {
        font-size: 13px; /* Mobilde daha küçük yazı boyutu */
    }
}