
.ilan-page { background: #f5f5f5; padding: 20px 0 40px; }
.ilan-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 20px; color: #222; }
.ilan-date-group { margin-bottom: 24px; }
.ilan-date-label { background: #c90914; color: #fff; display: inline-block; padding: 6px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.ilan-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; transition: all .2s; }
.ilan-card:hover { border-color: #c90914; box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateX(4px); }
.ilan-card a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 16px; width: 100%; }
.ilan-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; flex-shrink: 0; }
.ilan-info { flex: 1; min-width: 0; }
.ilan-title { font-size: 15px; font-weight: 600; color: #222; margin: 0 0 4px; line-height: 1.4; }
.ilan-meta { font-size: 13px; color: #888; }
.ilan-meta span { margin-right: 16px; }
.ilan-deadline { background: #f0f0f0; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #555; white-space: nowrap; flex-shrink: 0; }
.ilan-pagination { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 24px; }
.ilan-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; background: #fff; border: 1px solid #ddd; border-radius: 4px; color: #333; font-size: 14px; text-decoration: none; transition: all .2s; }
.ilan-pagination a:hover, .ilan-pagination a.active { background: #c90914; color: #fff; border-color: #c90914; }
.ilan-pagination a.disabled { opacity: .4; pointer-events: none; }
.ilan-empty { background: #fff; padding: 40px; text-align: center; border-radius: 8px; color: #888; font-size: 16px; }

/* Filters */
.ilan-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.ilan-filters a { display:inline-block!important; padding:10px 18px!important; border-radius:20px!important; font-size:13px!important; font-weight:600!important; text-decoration:none!important; border:1px solid #ddd!important; color:#555!important; background:#fff!important; transition:all .2s!important; min-height:auto!important; line-height:24px!important; float:none!important; width:auto!important; }
.ilan-filters a:hover { background:#f5f5f5; color:#c90914; border-color:#c90914; }
.ilan-filters a.active { background:#c90914; color:#fff !important; border-color:#c90914; }

/* Pinned (öne çıkan) ilanlar */
.ilan-pinned-section { margin-bottom:24px; }
.ilan-pinned-section h3 { margin:0 0 12px; font-size:18px; font-weight:800; color:#222; display:flex; align-items:center; gap:8px; }
.ilan-pinned-section h3::before { content:"★"; color:#d9b966; font-size:20px; }
.ilan-pinned-card { display:flex; align-items:center; gap:14px; padding:14px 16px; background:linear-gradient(135deg,#fffbef 0%,#fff 100%); border:2px solid #d9b966; border-radius:10px; margin-bottom:10px; transition:all .2s; position:relative; overflow:hidden; }
.ilan-pinned-card:hover { border-color:#c0a050; box-shadow:0 6px 16px rgba(217,185,102,.25); transform:translateX(4px); }
.ilan-pinned-card a { display:flex; align-items:center; gap:14px; width:100%; text-decoration:none; color:inherit; }
.ilan-pinned-logo { width:52px; height:52px; border-radius:50%; object-fit:cover; border:2px solid #d9b966; flex-shrink:0; background:#fff; }
.ilan-pinned-logo-placeholder { width:52px; height:52px; border-radius:50%; background:#d9b966; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; flex-shrink:0; }
.ilan-pinned-info { flex:1; min-width:0; }
.ilan-pinned-title { font-size:15.5px; font-weight:700; color:#222; margin:0 0 3px; line-height:1.35; }
.ilan-pinned-meta { font-size:13px; color:#777; }
.ilan-pinned-meta span { margin-right:14px; }
.ilan-pinned-badge { background:#c90914; color:#fff; padding:4px 10px; border-radius:4px; font-size:11px; font-weight:700; letter-spacing:.5px; white-space:nowrap; flex-shrink:0; text-transform:uppercase; }
.ilan-pinned-badge.expired { background:#888; }
.ilan-pinned-badge.featured { background:#d9b966; color:#1a1a1a; }
.ilan-pinned-badge.urgent { background:#c0392b; animation:pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
@media (max-width: 768px) {
.ilan-pinned-card { padding:12px; gap:10px; }
.ilan-pinned-card a { flex-wrap:wrap; }
.ilan-pinned-logo, .ilan-pinned-logo-placeholder { width:40px; height:40px; font-size:16px; }
.ilan-pinned-title { font-size:14px; }
}

/* Popular ilanlar */
.ilan-popular { margin-bottom:24px; }
.ilan-popular h3 { margin:0 0 12px; font-size:18px; font-weight:800; color:#222; }
.ilan-pop-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ilan-pop-card { display:flex; align-items:center; gap:10px; padding:12px 14px; background:#fff3f3; border:1px solid #fdd; border-radius:8px; text-decoration:none; color:inherit; transition:all .2s; }
.ilan-pop-card:hover { border-color:#c90914; background:#fff; }
.ilan-pop-card img { width:36px; height:36px; border-radius:50%; object-fit:cover; border:1px solid #eee; flex-shrink:0; }
.ilan-pop-title { font-size:13px; font-weight:600; color:#222; line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ilan-pop-card:hover .ilan-pop-title { color:#c90914; }

@media (max-width: 768px) {
    .ilan-card a { flex-wrap: wrap; gap: 10px; }
    .ilan-logo { width: 36px; height: 36px; }
    .ilan-title { font-size: 14px; }
    .ilan-deadline { margin-top: 4px; }
    .ilan-pop-grid { grid-template-columns: 1fr; }
    .ilan-filters { gap: 6px; }
    .ilan-filters a { padding: 8px 14px; font-size: 12px; }
}
/* 2026-07-02: sağ "Kategorinin Popülerleri" full-width olduğu için newsBox'lar dev banner oluyordu.
   Düzgün responsive grid + makul görsel yüksekliği (hem masaüstü hem mobil). */
.ilan-page .bottom .right > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
}
.ilan-page .bottom .right > div > .popularNewsBox { grid-column: 1 / -1; margin-bottom: 4px; }
.ilan-page .bottom .right a.newsBox { margin: 0 !important; max-width: 100%; }
.ilan-page .bottom .right a.newsBox > span { display: block; height: 165px; overflow: hidden; border-radius: 8px; }
.ilan-page .bottom .right a.newsBox > span img { width: 100% !important; height: 165px !important; object-fit: cover !important; }
@media (max-width: 640px) {
    .ilan-page .bottom .right > div > div { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ilan-page .bottom .right a.newsBox > span,
    .ilan-page .bottom .right a.newsBox > span img { height: 120px !important; }
}
@media (max-width: 400px) {
    .ilan-page .bottom .right > div > div { grid-template-columns: 1fr; }
    .ilan-page .bottom .right a.newsBox > span,
    .ilan-page .bottom .right a.newsBox > span img { height: 160px !important; }
}
