/*
 * public-content.css — Blog / Haber / Dergi / Kategori public liste & detay sayfaları.
 * Tailwind'den BAĞIMSIZ; tema renkleriyle (#232f4b / #3756f7) uyumlu kendi sınıfları.
 * Böylece style.css'teki Tailwind kapsamından etkilenmez.
 */
.icerik-bolum { padding: 50px 0; }
.icerik-baslik { font-size: 28px; font-weight: 700; color: #232f4b; margin: 0 0 6px; }
.icerik-aciklama { color: #6b7280; margin: 0 0 28px; }

.icerik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.icerik-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.icerik-card:hover { box-shadow: 0 10px 30px rgba(35, 47, 75, .12); transform: translateY(-3px); }
.icerik-card-img {
    display: block;
    height: 190px;
    background-color: #f3f4f6;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.icerik-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.icerik-rozet {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: #3756f7;
    background: #e8ecff;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.icerik-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.icerik-card-title a { color: #232f4b; }
.icerik-card-title a:hover { color: #3756f7; }
.icerik-card-meta { font-size: 13px; color: #9ca3af; margin-bottom: 10px; }
.icerik-card-ozet { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }
.icerik-bos { padding: 40px; text-align: center; color: #6b7280; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }

/* Detay */
.icerik-detay { max-width: 860px; margin: 0 auto; }
.icerik-geri { display: inline-block; margin-bottom: 20px; color: #3756f7; font-weight: 600; }
.icerik-detay-kapak { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-bottom: 24px; }
.icerik-detay-baslik { font-size: 34px; line-height: 1.2; font-weight: 700; color: #232f4b; margin: 0 0 12px; }
.icerik-detay-meta { font-size: 14px; color: #9ca3af; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.icerik-detay-govde { font-size: 16px; line-height: 1.8; color: #374151; }
.icerik-detay-govde img { max-width: 100%; height: auto; border-radius: 8px; }
.icerik-detay-govde h2, .icerik-detay-govde h3 { color: #232f4b; margin: 24px 0 12px; }
.icerik-detay-govde p { margin: 0 0 16px; }

/* Dergi sayısı */
.dergi-pdf-btn { display: inline-block; margin-top: 14px; background: #3756f7; color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; }
.dergi-pdf-btn:hover { background: #2740c9; color: #fff; }
.dergi-sayi-no { font-size: 13px; color: #9ca3af; }

/* ------------------------------------------------------------------ *
 * Yeniden kullanılabilir form kontrolleri (yorum + iletişim formu)    *
 * ------------------------------------------------------------------ */
.mk-form-baslik { font-size: 20px; font-weight: 700; color: #232f4b; margin: 0 0 6px; }
.mk-form-not { color: #6b7280; font-size: 14px; margin: 0 0 20px; }
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mk-input, .mk-textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #232f4b;
    background: #fff;
    transition: border-color .2s;
}
.mk-input:focus, .mk-textarea:focus { outline: 0; border-color: #3756f7; }
.mk-textarea { min-height: 140px; resize: vertical; }
.mk-field { margin-top: 16px; }
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    background: #3756f7;
    color: #fff;
    border: 2px solid #3756f7;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
    cursor: pointer;
    transition: all .2s;
}
.mk-btn:hover { background: transparent; color: #3756f7; }
.mk-alert { padding: 12px 18px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.mk-alert.ok { background: #e6f6ec; border: 1px solid #9fdfb8; color: #1c7a43; }
.mk-alert.err { background: #fdecec; border: 1px solid #f5b5b5; color: #c0392b; }
.mk-captcha { max-width: 320px; }
.mk-captcha-label { display: block; font-size: 14px; color: #232f4b; margin-bottom: 8px; }
.mk-captcha-label strong { color: #3756f7; letter-spacing: 1px; }

/* ------------------------------------------------------------------ *
 * Yorumlar (makale / haber / dergi sayısı altında)                    *
 * ------------------------------------------------------------------ */
.yorumlar { margin-top: 44px; padding-top: 36px; border-top: 1px solid #eee; }
.yorumlar-baslik { font-size: 22px; font-weight: 700; color: #232f4b; margin: 0 0 24px; }
.yorum-liste { list-style: none; margin: 0 0 40px; padding: 0; }
.yorum-card { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid #eee; }
.yorum-liste > .yorum-card:last-child { border-bottom: 0; }
.yorum-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #3756f7;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.yorum-govde { flex: 1; min-width: 0; }
.yorum-ust { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.yorum-ad { font-size: 15px; font-weight: 700; color: #232f4b; }
.yorum-tarih { font-size: 12px; color: #9ca3af; }
.yorum-metin { font-size: 15px; line-height: 1.7; color: #374151; margin: 6px 0 0; }
.yorum-yanitlar { list-style: none; margin: 14px 0 0; padding: 0 0 0 24px; border-left: 2px solid #eef0fc; }
.yorum-bos { color: #6b7280; font-size: 15px; margin: 0 0 32px; }

/* Üye değilse gösterilen giriş daveti (yorum yapmak için) */
.yorum-giris {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f4f6ff;
    border: 1px solid #dfe4ff;
    border-radius: 8px;
    padding: 18px 22px;
}
.yorum-giris i { font-size: 26px; color: #3756f7; flex: 0 0 auto; }
.yorum-giris p { margin: 0; font-size: 15px; line-height: 1.6; color: #444; }
.yorum-giris a { color: #3756f7; font-weight: 600; }
.yorum-giris a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ *
 * Üst menü açılır alt menü (desktop dropdown)                          *
 * ------------------------------------------------------------------ */
.nav-has-sub { position: relative; }
.nav-sub {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 210px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(35, 47, 75, .12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}
.nav-has-sub:hover > .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub li { display: block; }
.nav-sub a {
    display: block;
    padding: 9px 20px;
    font-size: 16px;
    color: #232f4b;
    font-family: inherit;
    white-space: nowrap;
    transition: all .2s;
}
.nav-sub a:hover { background: #f4f6ff; color: #3756f7; padding-left: 24px; }

/* ------------------------------------------------------------------ *
 * İçerik + sidebar düzeni (Blog vb. liste sayfaları)                   *
 * ------------------------------------------------------------------ */
.icerik-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.icerik-main { min-width: 0; }

.yan-widget { background: #fff; border: 1px solid #eef0fc; border-radius: 8px; padding: 22px 24px; margin-bottom: 24px; }
.yan-widget-baslik { font-size: 18px; font-weight: 700; color: #232f4b; margin: 0 0 16px; padding-bottom: 12px; position: relative; }
.yan-widget-baslik::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 10px; background: #3756f7; }
.yan-bos { color: #6b7280; font-size: 14px; margin: 0; }

.yan-liste { list-style: none; margin: 0; padding: 0; }
.yan-liste li { padding: 9px 0; border-bottom: 1px solid #f1f3fb; }
.yan-liste li:last-child { border-bottom: 0; }
.yan-liste a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #444; font-size: 15px; transition: color .2s; }
.yan-liste a:hover { color: #3756f7; }
.yan-sayi { background: #eef2ff; color: #3756f7; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 2px 10px; }

.yan-post { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1f3fb; }
.yan-post:last-child { border-bottom: 0; }
.yan-post-img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: #f3f4f6; }
.yan-post-govde { min-width: 0; }
.yan-post-tarih { font-size: 12px; color: #9ca3af; display: block; margin-bottom: 3px; }
.yan-post-baslik { font-size: 14px; font-weight: 600; line-height: 1.4; color: #232f4b; transition: color .2s; }
.yan-post-baslik:hover { color: #3756f7; }

.yan-arama { display: flex; }
.yan-arama-input { flex: 1; min-width: 0; height: 46px; border: 1px solid #e5e5e5; border-right: 0; border-radius: 6px 0 0 6px; padding: 0 14px; font-size: 14px; font-family: inherit; }
.yan-arama-input:focus { outline: 0; border-color: #3756f7; }
.yan-arama-btn { width: 50px; border: 0; background: #3756f7; color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; }
.yan-arama-btn:hover { background: #2740c9; }

/* ------------------------------------------------------------------ *
 * Etiketler (Blog/Haber detayında ve etiket sayfasında)               *
 * ------------------------------------------------------------------ */
.icerik-etiketler { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 4px; }
.icerik-etiket {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #3756f7;
    background: #e8ecff;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all .2s;
}
.icerik-etiket::before { content: "#"; opacity: .55; margin-right: 1px; }
.icerik-etiket:hover { background: #3756f7; color: #fff; }

/* ------------------------------------------------------------------ *
 * Foto galeri (public)                                                *
 * ------------------------------------------------------------------ */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.galeri-item {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeri-item:hover img { transform: scale(1.06); }

@media (max-width: 991px) {
    .icerik-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .mk-form-row { grid-template-columns: 1fr; }
    .yorum-yanitlar { padding-left: 14px; }
    .galeri-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
