/* ═══════════════════════════════════════
   DiyarbakırSöz — Yeni Modül Stilleri
   İlan, Rehber, Vefat, Eczane, Namaz, Pazar
   ═══════════════════════════════════════ */

/* ═══════════════ HEADER SABİT DEĞİL ═══════════════ */
.main-navigation.fixed-position {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}
.header-fixed .header {
    position: relative !important;
}
.app-header .menu {
    position: relative !important;
}

/* ═══════════════ SECTION HEADING ═══════════════ */
.section-heading {
    border-bottom: 2px solid #e91b23;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 18px;
    position: relative;
}
.section-heading span {
    background: #e91b23;
    color: #fff;
    display: inline-block;
    padding: 6px 20px;
    font-size: 15px;
    font-weight: 600;
}

/* ═══════════════ İLAN MODÜLÜ ═══════════════ */

/* Kategori kartları */
.ilan-kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}
.ilan-kategori-kart {
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    padding: 15px 12px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.ilan-kategori-kart:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #333;
}
.ilan-kategori-kart .kat-ikon { font-size: 24px; margin-bottom: 6px; }
.ilan-kategori-kart .kat-ad { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.ilan-kategori-kart .kat-sayi { color: #999; font-size: 11px; }

/* İlan kartları */
.ilan-kart {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.ilan-kart:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: inherit;
}
.ilan-kart-resim {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}
.ilan-kart-body { padding: 12px; flex: 1; }
.ilan-kart-baslik {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.ilan-kart-fiyat {
    font-weight: 700;
    font-size: 16px;
    color: #c62828;
}
.ilan-kart-meta {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.ilan-kart-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.ilan-kart-badge.vitrin { background: #fff3cd; color: #856404; }
.ilan-kart-badge.acil { background: #f8d7da; color: #721c24; }

/* İlan grid */
.ilan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

/* İlan arama */
.ilan-arama-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.ilan-arama-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.ilan-arama-form input:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 0 2px rgba(198,40,40,0.1);
}
.ilan-arama-form button {
    padding: 10px 20px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.ilan-arama-form button:hover { background: #b71c1c; }

/* İlan ver butonu */
.ilan-ver-btn {
    background: #c62828;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.ilan-ver-btn:hover { background: #b71c1c; color: #fff; }

/* İlan detay */
.ilan-detay-resim { width: 100%; border-radius: 8px; margin-bottom: 15px; }
.ilan-detay-bilgi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}
.ilan-detay-bilgi dt { font-size: 12px; color: #888; }
.ilan-detay-bilgi dd { font-size: 14px; font-weight: 600; color: #333; margin: 0 0 10px; }

/* İlan form adım göstergesi */
.ilan-adim {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px 0;
}
.adim-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
}
.adim-dot.aktif {
    background: #c62828;
    color: #fff;
}
.adim-dot::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 24px;
    height: 2px;
    background: #eee;
}
.adim-dot:last-child::after { display: none; }
.adim-dot.aktif::after { background: #c62828; }

/* ═══════════════ REHBER MODÜLÜ ═══════════════ */
.rehber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.rehber-kart {
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}
.rehber-kart:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: #333;
}
.rehber-kart .kat-ikon { font-size: 28px; margin-bottom: 8px; color: #c62828; }
.rehber-kart h5 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.rehber-kart small { color: #888; }

/* İşletme kartı */
.isletme-kart {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.isletme-kart:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.isletme-kart h5 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.isletme-kart .isletme-adres { font-size: 13px; color: #666; margin-bottom: 8px; }
.isletme-kart .isletme-tel { font-size: 13px; color: #c62828; font-weight: 500; }
.isletme-puan {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #f5a623;
    font-size: 13px;
}

/* ═══════════════ VEFAT İLANI ═══════════════ */
.vefat-ust-bilgi {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #c9a96e;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.vefat-ust-bilgi p { margin: 0; }
.vefat-liste { display: flex; flex-direction: column; gap: 10px; }
.vefat-kart {
    border: 1px solid #e8e8e8;
    border-left: 4px solid #2c3e50;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}
.vefat-kart:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-left-color: #c9a96e;
    text-decoration: none;
    color: inherit;
}
.vefat-kart-foto { flex-shrink: 0; }
.vefat-kart-resim {
    width: 72px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}
.vefat-kart-placeholder {
    width: 72px;
    height: 90px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}
.vefat-kart-icerik { flex: 1; min-width: 0; }
.vefat-kart-isim {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
}
.vefat-kart-yas { font-weight: 400; color: #888; font-size: 14px; }
.vefat-kart-bilgi {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.vefat-kart-tarih,
.vefat-kart-ilce {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}
.vefat-kart-defin,
.vefat-kart-cenaze {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}
.vefat-kart-ok {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.vefat-kart:hover .vefat-kart-ok { opacity: 0.8; }
.vefat-bos {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.vefat-bos p { margin: 12px 0 0; font-size: 15px; }

/* Vefat Detay Sayfası */
.vefat-detay-kart {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.vefat-detay-ust {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    text-align: center;
    color: #fff;
}
.vefat-detay-foto { margin-bottom: 14px; }
.vefat-detay-resim {
    width: 130px;
    height: 165px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.3);
}
.vefat-detay-placeholder {
    width: 130px;
    height: 165px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.2);
}
.vefat-detay-baslik h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.vefat-detay-yas { color: #c9a96e; font-size: 15px; }
.vefat-detay-ayet {
    background: #f8f6f0;
    color: #7a6832;
    text-align: center;
    padding: 12px;
    font-style: italic;
    font-size: 14px;
    border-bottom: 1px solid #e8e0cc;
}
.vefat-detay-tablo {
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
    border-collapse: collapse;
}
.vefat-detay-tablo tr { border-bottom: 1px solid #f0f0f0; }
.vefat-detay-tablo td { padding: 10px 16px; font-size: 14px; }
.vefat-detay-etiket {
    font-weight: 600;
    color: #444;
    width: 40%;
    white-space: nowrap;
}
.vefat-detay-aciklama {
    margin: 0 20px 20px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.vefat-detay-taziye {
    background: #f8f6f0;
    text-align: center;
    padding: 14px;
    color: #7a6832;
    font-weight: 500;
    font-size: 15px;
}
.vefat-geri-link { margin-top: 16px; }
.vefat-geri-link a { color: #2c3e50; font-weight: 500; text-decoration: none; }
.vefat-geri-link a:hover { color: #c9a96e; }

/* ═══════════════ ECZANE, NAMAZ, PAZAR ═══════════════ */
.bilgi-tablo {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.bilgi-tablo th {
    background: #f5f5f5;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e91b23;
}
.bilgi-tablo td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.bilgi-tablo tr:hover { background: #fafafa; }

/* Nöbetçi eczane kartı */
.eczane-kart {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    margin-bottom: 10px;
}
.eczane-kart h5 { font-size: 15px; font-weight: 600; color: #c62828; margin: 0 0 5px; }
.eczane-kart .eczane-adres { font-size: 13px; color: #666; }
.eczane-kart .eczane-tel { font-size: 13px; color: #333; font-weight: 500; margin-top: 5px; }

/* Namaz vakti */
.namaz-tablo {
    width: 100%;
    max-width: 500px;
}
.namaz-tablo td { padding: 8px 15px; }
.namaz-tablo .vakit-ad { font-weight: 600; color: #333; }
.namaz-tablo .vakit-saat { color: #c62828; font-weight: 600; }

/* Pazar fiyatları */
.pazar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.pazar-kart {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    text-align: center;
}
.pazar-kart .urun-ad { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.pazar-kart .urun-fiyat { color: #c62828; font-weight: 700; font-size: 16px; }
.pazar-kart .urun-birim { font-size: 11px; color: #999; }

/* ═══════════════ WIDGET (Sidebar) ═══════════════ */
.widget.sidebar-widget .section-heading {
    font-size: 16px;
    margin-bottom: 12px;
}
.widget.sidebar-widget .section-heading span {
    font-size: 13px;
    padding: 4px 14px;
}

/* ═══════════════ SOSYAL MEDYA WIDGET ═══════════════ */
.sosyal-medya-widget { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.sosyal-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 6px;
    color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600;
    transition: opacity .2s, transform .15s;
}
.sosyal-btn:hover { opacity: .85; transform: translateX(3px); color: #fff; }
.sosyal-btn svg { flex-shrink: 0; }
.sosyal-facebook { background: #1877f2; }
.sosyal-twitter  { background: #1da1f2; }
.sosyal-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sosyal-youtube  { background: #ff0000; }

/* ═══════════════ HABER FOTO GALERİ ═══════════════ */
.haber-galeri { margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.haber-galeri-baslik { font-size: 18px; margin: 0 0 12px; color: #333; }
.haber-galeri-baslik small { font-size: 13px; color: #888; font-weight: normal; }
.haber-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.haber-galeri-item {
    display: block; overflow: hidden; border-radius: 6px;
    aspect-ratio: 4/3; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.haber-galeri-item:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.haber-galeri-item img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
#lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.92); z-index: 9999;
    align-items: center; justify-content: center;
}
#lightbox-overlay .lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
#lightbox-overlay .lb-close {
    position: absolute; top: 15px; right: 20px;
    color: #fff; font-size: 36px; cursor: pointer; z-index: 10;
    line-height: 1; opacity: .8; transition: opacity .2s;
}
#lightbox-overlay .lb-close:hover { opacity: 1; }
#lightbox-overlay .lb-prev, #lightbox-overlay .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 40px; cursor: pointer; padding: 10px 18px;
    opacity: .7; transition: opacity .2s; user-select: none;
}
#lightbox-overlay .lb-prev { left: 10px; }
#lightbox-overlay .lb-next { right: 10px; }
#lightbox-overlay .lb-prev:hover, #lightbox-overlay .lb-next:hover { opacity: 1; }
#lightbox-overlay .lb-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px; opacity: .8;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 767px) {
    .section-heading { font-size: 16px; }
    .section-heading span { font-size: 13px; padding: 5px 14px; }

    .ilan-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .ilan-kategori-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .ilan-kart-resim { height: 140px; }
    .ilan-kart-body { padding: 8px; }
    .ilan-kart-baslik { font-size: 13px; }
    .ilan-kart-fiyat { font-size: 14px; }
    .ilan-arama-form { flex-direction: column; }
    .ilan-detay-bilgi { grid-template-columns: 1fr; }

    .rehber-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .rehber-kart { padding: 14px; }

    .vefat-kart { padding: 12px; gap: 12px; }
    .vefat-kart-resim { width: 56px; height: 70px; }
    .vefat-kart-placeholder { width: 56px; height: 70px; }
    .vefat-kart-isim { font-size: 14px; }
    .vefat-kart-ok { display: none; }
    .vefat-detay-ust { padding: 20px; }
    .vefat-detay-resim { width: 100px; height: 130px; }
    .vefat-detay-baslik h2 { font-size: 18px; }
    .vefat-detay-tablo { margin: 16px auto; }
    .vefat-detay-tablo td { padding: 8px 12px; font-size: 13px; }
    .vefat-detay-etiket { width: auto; }

    .pazar-grid { grid-template-columns: repeat(2, 1fr); }

    .haber-galeri-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }

    .ilan-adim { gap: 20px; }
    .adim-dot { width: 30px; height: 30px; font-size: 12px; }
    .adim-dot::after { right: -22px; width: 16px; }
}
