/* style.css */

/* Genel Stil ve Sıfırlama */
body { font-family: 'Arial', sans-serif; margin: 0; background-color: #f0f2f5; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* 1. ÜST BAR STİLİ */
.top-bar { 
    background: #004b8d; /* Kurumsal Mavi */
    color: white; 
    padding: 15px 30px;
    margin: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.top-bar h1 { margin: 0; font-size: 26px; }
.top-bar nav a { margin-left: 25px; font-weight: bold; opacity: 0.9; transition: opacity 0.2s; }
.top-bar nav a:hover { opacity: 1; }

/* 2. ANA İÇERİK DÜZENİ (Filtre + İlanlar) */
.main-content {
    display: flex;
    margin: 15px;
    padding: 0;
}

/* 3. SOL SÜTUN: FİLTRELEME MENÜSÜ */
.sidebar {
    width: 280px;
    background: #ffffff;
    padding: 20px;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Görseldeki Dikey Kutu yüksekliğini korumak için */
    min-height: 600px;
}
.sidebar h3 { color: #004b8d; margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid #f1f1f1; padding-bottom: 15px; }
.sidebar label, .sidebar h3 { display: block; margin-bottom: 8px; font-weight: bold; font-size: 14px; }
.sidebar select, .sidebar input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.sidebar input[type="checkbox"] { margin-right: 5px; }

.apply-filters-btn, .clear-filters-btn { 
    width: 100%; padding: 10px; margin-top: 10px; border: none; border-radius: 4px; 
    cursor: pointer; font-weight: bold; 
}
.apply-filters-btn { background-color: #28a745; color: white; }
.clear-filters-btn { background-color: #6c757d; color: white; }

/* 4. SAĞ SÜTUN: İLAN KUTUCUKLARI (GRID YAPISI) */
.ad-grid-container {
    flex-grow: 1; 
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 eşit sütun */
    gap: 20px; /* Kutucuklar arası boşluk */
}

/* İlan Kartı (Kutucuk) Stilleri */
.ad-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s;
}
.ad-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
.ad-card h4 { color: #007bff; margin-top: 0; margin-bottom: 8px; font-size: 18px; }

/* Toptancı ve Ürün Bilgileri */
.supplier-info { font-size: 13px; color: #666; margin-bottom: 5px; }
.product-summary { font-style: italic; font-size: 14px; margin-bottom: 15px; padding-top: 5px; border-top: 1px solid #eee; }
.ad-details-list li { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.highlight-price { color: #dc3545; font-size: 15px; font-weight: bold; }

/* Etiketler (Stok, Yeni Ürün) */
.promotion-tag { 
    padding: 4px 8px; font-size: 11px; font-weight: bold; border-radius: 4px; 
    display: inline-block; margin-bottom: 10px; color: white; background-color: #ffc107; 
}
.new-product-tag { background-color: #007bff; }
.cargo-tag { background-color: #28a745; }

/* Aksiyon Butonları */
.ad-actions { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }
.ad-actions .button { 
    padding: 10px; border-radius: 4px; text-align: center; font-size: 14px;
    font-weight: bold; flex-grow: 1; transition: background-color 0.2s;
}
.profile-link { background-color: #6c757d; color: white; }
.whatsapp-btn { background-color: #25d366; color: white; }
.call-btn { background-color: #dc3545; color: white; }