﻿.ilanlar-list-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

    .ilanlar-list-section .auto-container {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 15px;
    }

/* Öne Çıkan İlan */
.featured-ilan-wrapper {
    margin-bottom: 50px;
}

.featured-ilan-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
}

    .featured-ilan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

.featured-ilan-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

    .featured-ilan-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.5s ease;
    }

.featured-ilan-card:hover .featured-ilan-image img {
    transform: scale(1.05);
}

.featured-ilan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 38, 56, 0.1) 0%, transparent 100%);
    transition: background 0.3s ease;
}

.featured-ilan-card:hover .featured-ilan-overlay {
    background: linear-gradient(135deg, rgba(37, 38, 56, 0.2) 0%, transparent 100%);
}

.featured-ilan-content {
    flex: 0 0 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ilan-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    width: fit-content;
}

    .ilan-badge i {
        margin-right: 8px;
    }

.featured-ilan-title {
    color: #252638;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.featured-ilan-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 25px 0;
}

.featured-ilan-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    color: #252638;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

    .featured-ilan-card .read-more-btn i {
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

.featured-ilan-card:hover .read-more-btn {
    color: #27ae60;
}

    .featured-ilan-card:hover .read-more-btn i {
        transform: translateX(5px);
    }

/* Diğer İlanlar Header */
.ilanlar-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

    .ilanlar-grid-header h3 {
        color: #252638;
        font-size: 24px;
        font-weight: 600;
        margin: 0;
    }

.ilan-count {
    color: #888;
    font-size: 14px;
}

/* İlanlar Grid */
.ilanlar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ilan-grid-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 320px;
    display: block;
}

    .ilan-grid-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

.ilan-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .ilan-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transition: transform 0.4s ease;
    }

.ilan-grid-card:hover .ilan-card-image img {
    transform: scale(1.08);
}

.ilan-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient( to top, rgba(37, 38, 56, 0.98) 0%, rgba(37, 38, 56, 0.85) 30%, rgba(37, 38, 56, 0.5) 60%, transparent 100% );
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ilan-grid-card:hover .ilan-card-overlay {
    height: 100%;
}

.ilan-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    background: linear-gradient( to top, rgba(37, 38, 56, 0.95) 0%, rgba(37, 38, 56, 0.7) 50%, transparent 100% );
    transition: background 0.4s ease;
}

.ilan-grid-card:hover .ilan-card-content {
    background: transparent;
}

.ilan-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* İlan Bulunamadı */
.no-ilan {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

    .no-ilan i {
        font-size: 60px;
        color: #ddd;
        margin-bottom: 20px;
        display: block;
    }

    .no-ilan p {
        color: #888;
        font-size: 18px;
        margin: 0;
    }

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .featured-ilan-title {
        font-size: 24px;
    }

    .ilanlar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .featured-ilan-card {
        flex-direction: column;
        min-height: auto;
    }

    .featured-ilan-image {
        flex: none;
        height: 300px;
    }

    .featured-ilan-content {
        flex: none;
        padding: 30px;
    }

    .featured-ilan-title {
        font-size: 22px;
    }

    .ilanlar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ilan-grid-card {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .ilanlar-list-section {
        padding: 40px 0;
    }

    .featured-ilan-image {
        height: 220px;
    }

    .featured-ilan-content {
        padding: 25px;
    }

    .featured-ilan-title {
        font-size: 20px;
    }

    .featured-ilan-excerpt {
        font-size: 14px;
    }

    .ilanlar-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ilanlar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ilan-grid-card {
        height: 260px;
    }
}
