/* =========================================================
   BLOG DETAY SAYFASI CSS  (assets/blog-detay.css)
   blog.css'den SONRA yüklenir; .phm-container, banner, breadcrumb
   ve kart stilleri oradan gelir.
   ========================================================= */

/* ---------- Okuma ilerleme çubuğu ---------- */
.phm-read-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0;
    background: linear-gradient(90deg, #0A2B5E, #C2410C);
    z-index: 99998; transition: width 0.1s linear;
}

/* ---------- Hero ---------- */
.phm-post-hero { padding: 70px 0 55px; }
.phm-post-hero .phm-banner-content { max-width: 980px; }
.phm-post-hero .phm-banner-title { font-size: 2.2rem; line-height: 1.3; margin-bottom: 18px; }
.phm-breadcrumb li:last-child a { color: #FDBA74; font-weight: 700; }

.phm-post-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
    color: #E2E8F0; font-size: 0.9rem; font-weight: 500;
}
.phm-post-meta i { color: #FDBA74; margin-right: 5px; }
.phm-post-meta a { color: #FFFFFF; text-decoration: none; font-weight: 700; }
.phm-post-meta a:hover { color: #FDBA74; }

/* ---------- Önizleme uyarısı ---------- */
.phm-draft-notice {
    background: #FEF3C7; border: 1px solid #FCD34D; color: #78350F;
    padding: 14px 20px; border-radius: 12px; margin-bottom: 25px; font-size: 0.92rem;
}
.phm-draft-notice i { margin-right: 6px; }

/* ---------- Ana yerleşim ---------- */
.phm-post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start;
}
.phm-post {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 20px;
    padding: 36px 44px 40px; box-shadow: 0 10px 30px rgba(10, 43, 94, 0.05);
    min-width: 0;
}

.phm-post-cover { margin: 0 0 28px; border-radius: 14px; overflow: hidden; background: #F1F5F9; }
.phm-post-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

.phm-post-lead {
    font-size: 1.15rem; line-height: 1.75; color: #1E293B; font-weight: 500;
    border-left: 4px solid #C2410C; padding: 4px 0 4px 18px; margin: 0 0 28px;
}

/* ---------- İçindekiler ---------- */
.phm-toc {
    background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 14px;
    padding: 4px 22px; margin-bottom: 32px;
}
.phm-toc summary {
    cursor: pointer; padding: 14px 0; font-weight: 800; color: #0A2B5E; font-size: 1rem; list-style: none;
}
.phm-toc summary::-webkit-details-marker { display: none; }
.phm-toc summary i { color: #C2410C; margin-right: 8px; }
.phm-toc ol { margin: 0; padding: 0 0 16px; list-style: none; counter-reset: toc; }
.phm-toc li { margin: 0; }
.phm-toc a {
    display: block; padding: 6px 0; color: #334155; text-decoration: none; font-size: 0.95rem; line-height: 1.45;
    transition: color 0.2s ease;
}
.phm-toc a:hover { color: #C2410C; }
.phm-toc-l3 { padding-left: 20px; }
.phm-toc-l3 a { font-size: 0.9rem; color: #64748B; }

/* ---------- Makale içeriği (tipografi) ---------- */
.phm-post-content { font-size: 1.05rem; line-height: 1.85; color: #334155; overflow-wrap: anywhere; }
.phm-post-content > *:first-child { margin-top: 0; }
.phm-post-content p { margin: 0 0 1.3em; }
.phm-post-content h2, .phm-post-content h3, .phm-post-content h4 {
    color: #0A2B5E; font-weight: 800; line-height: 1.35; scroll-margin-top: 100px;
}
.phm-post-content h2 { font-size: 1.65rem; margin: 2em 0 0.7em; padding-bottom: 10px; border-bottom: 2px solid #F1F5F9; }
.phm-post-content h3 { font-size: 1.35rem; margin: 1.7em 0 0.6em; }
.phm-post-content h4 { font-size: 1.12rem; margin: 1.5em 0 0.5em; }
.phm-post-content a { color: #C2410C; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.phm-post-content a:hover { color: #0A2B5E; }
.phm-post-content ul, .phm-post-content ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.phm-post-content li { margin-bottom: 0.45em; }
.phm-post-content li::marker { color: #C2410C; font-weight: 700; }
.phm-post-content blockquote {
    margin: 1.8em 0; padding: 18px 24px; background: #F8FAFC;
    border-left: 5px solid #0A2B5E; border-radius: 0 12px 12px 0; color: #1E293B; font-style: italic;
}
.phm-post-content blockquote p:last-child { margin-bottom: 0; }
.phm-post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 0.5em 0; }
.phm-post-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.phm-post-content th, .phm-post-content td { border: 1px solid #E2E8F0; padding: 10px 14px; text-align: left; }
.phm-post-content th { background: #F8FAFC; color: #0A2B5E; }
.phm-post-content strong { color: #0F172A; }

/* Quill hizalama sınıfları */
.phm-post-content .ql-align-center { text-align: center; }
.phm-post-content .ql-align-right { text-align: right; }
.phm-post-content .ql-align-justify { text-align: justify; }
.phm-post-content .ql-indent-1 { padding-left: 3em; }
.phm-post-content .ql-indent-2 { padding-left: 6em; }

/* ---------- Etiketler ---------- */
.phm-post-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 36px; padding-top: 24px; border-top: 1px solid #F1F5F9;
}
.phm-post-tags-label { font-weight: 700; color: #0A2B5E; font-size: 0.9rem; margin-right: 4px; }
.phm-post-tags-label i { color: #C2410C; }
.phm-tag {
    display: inline-block; padding: 5px 14px; border-radius: 50px; background: #F1F5F9;
    border: 1px solid #E2E8F0; color: #334155; font-size: 0.84rem; font-weight: 600; text-decoration: none;
    transition: all 0.2s ease;
}
.phm-tag:hover { background: #0A2B5E; color: #FFFFFF; border-color: #0A2B5E; }

/* ---------- Paylaş ---------- */
.phm-share {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 24px; padding: 16px 20px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 14px;
}
.phm-share-label { font-weight: 700; color: #0A2B5E; font-size: 0.92rem; }
.phm-share-label i { color: #C2410C; margin-right: 6px; }
.phm-share-btns { display: flex; gap: 8px; }
.phm-share-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #FFFFFF; font-size: 1rem; text-decoration: none; transition: transform 0.2s ease, opacity 0.2s ease;
}
.phm-share-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.phm-share-btn.wa { background: #15803D; }
.phm-share-btn.fb { background: #1D4ED8; }
.phm-share-btn.x  { background: #0F172A; }
.phm-share-btn.in { background: #0A66C2; }
.phm-share-btn.cp { background: #475569; }

/* ---------- Yazar / uyarı kutusu ---------- */
.phm-author-box {
    display: flex; gap: 16px; align-items: flex-start; margin-top: 24px;
    padding: 20px 22px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 14px;
}
.phm-author-ico {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #0A2B5E;
    color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.phm-author-box strong { color: #0A2B5E; font-size: 1rem; }
.phm-author-box p { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.6; color: #475569; }

/* ---------- Önceki / Sonraki ---------- */
.phm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.phm-post-nav-item {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 1px solid #E2E8F0;
    border-radius: 14px; text-decoration: none; background: #FFFFFF; transition: all 0.25s ease; min-width: 0;
}
.phm-post-nav-item span { font-size: 0.8rem; font-weight: 700; color: #C2410C; }
.phm-post-nav-item strong { color: #0A2B5E; font-size: 0.95rem; line-height: 1.4; }
.phm-post-nav-item:hover { border-color: #0A2B5E; box-shadow: 0 8px 20px rgba(10, 43, 94, 0.08); transform: translateY(-2px); }
.phm-post-nav-item.next { text-align: right; grid-column: 2; }

/* ---------- Sidebar ---------- */
.phm-post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.phm-side-card {
    background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 18px; padding: 24px;
    box-shadow: 0 6px 18px rgba(10, 43, 94, 0.04);
}
.phm-side-title {
    margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: #0A2B5E;
    padding-bottom: 10px; border-bottom: 2px solid #F1F5F9;
}

.phm-side-cta { background: linear-gradient(160deg, #0A2B5E 0%, #061A3A 100%); border: none; color: #FFFFFF; }
.phm-side-cta h2 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; color: #FFFFFF; }
.phm-side-cta h2 i { color: #FDBA74; margin-right: 8px; }
.phm-side-cta p { margin: 0 0 18px; font-size: 0.9rem; line-height: 1.6; color: #CBD5E1; }
.phm-side-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box;
    padding: 12px 16px; margin-bottom: 10px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; color: #0A2B5E; background: #FFFFFF; transition: all 0.25s ease;
}
.phm-side-btn:last-child { margin-bottom: 0; }
.phm-side-btn:hover { transform: translateY(-2px); background: #F1F5F9; }
.phm-side-btn.primary { background: #C2410C; color: #FFFFFF; }
.phm-side-btn.primary:hover { background: #9A3412; }
.phm-side-btn.wa { background: #15803D; color: #FFFFFF; }
.phm-side-btn.wa:hover { background: #166534; }

.phm-side-list { list-style: none; margin: 0; padding: 0; }
.phm-side-list li + li { border-top: 1px solid #F1F5F9; }
.phm-side-list a {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
    color: #334155; text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease;
}
.phm-side-list a:hover { color: #C2410C; }
.phm-side-list span {
    background: #F1F5F9; color: #475569; font-size: 0.78rem; font-weight: 700;
    min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 20px;
}

.phm-side-posts { list-style: none; margin: 0; padding: 0; }
.phm-side-posts li + li { margin-top: 14px; }
.phm-side-posts a { display: flex; gap: 12px; text-decoration: none; align-items: center; }
.phm-side-posts img { flex: 0 0 72px; width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.phm-side-posts strong {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #0A2B5E; font-size: 0.88rem; line-height: 1.4; transition: color 0.2s ease;
}
.phm-side-posts a:hover strong { color: #C2410C; }
.phm-side-posts small { display: block; margin-top: 3px; color: #64748B; font-size: 0.76rem; }

/* ---------- İlgili yazılar ---------- */
.phm-related { margin-top: 70px; }
.phm-related-title { font-size: 1.6rem; font-weight: 800; color: #0A2B5E; margin: 0 0 26px; }
.phm-related .phm-blog-grid { margin-bottom: 30px; }
.phm-back-blog { text-align: center; margin: 20px 0 0; }
.phm-back-blog a { color: #0A2B5E; font-weight: 700; text-decoration: none; }
.phm-back-blog a:hover { color: #C2410C; }

/* 404 (blog.css'teki .phm-empty h2 stilinin h1 karşılığı) */
.phm-empty h1 { color: #0A2B5E; font-size: 1.6rem; margin: 0 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .phm-post-layout { grid-template-columns: 1fr; }
    .phm-post-sidebar { position: static; }
    .phm-post { padding: 28px 28px 32px; }
}
@media (max-width: 768px) {
    .phm-post-hero { padding: 50px 0 40px; }
    .phm-post-hero .phm-banner-title { font-size: 1.6rem; }
    .phm-post { padding: 20px 18px 26px; border-radius: 16px; }
    .phm-post-lead { font-size: 1.05rem; }
    .phm-post-content { font-size: 1rem; line-height: 1.8; }
    .phm-post-content h2 { font-size: 1.4rem; }
    .phm-post-content h3 { font-size: 1.2rem; }
    .phm-post-nav { grid-template-columns: 1fr; }
    .phm-post-nav-item.next { grid-column: 1; text-align: left; }
    .phm-share { flex-direction: column; align-items: flex-start; }
}

@media print {
    .phm-read-progress, .phm-post-sidebar, .phm-share, .phm-post-nav, .phm-related, .phm-back-blog { display: none !important; }
    .phm-post { border: none; box-shadow: none; padding: 0; }
}
/* ---------- İlgili yazılar: kart kategori etiketi düzeltmesi ----------
   Etiket (mavi alan) görselin tamamına uzanıp kırpılıyordu; içeriği kadar
   yer kaplayan, sol üstte sabit küçük bir rozet olarak sabitlendi. */
.phm-related .phm-card-thumb { position: relative; }
.phm-related .phm-card-thumb .phm-card-tag {
    position: absolute; top: 14px; left: 14px; right: auto; bottom: auto;
    display: inline-block; width: auto; height: auto; min-height: 0; max-width: calc(100% - 28px);
    padding: 6px 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    z-index: 2;
}