/* ============================================================
   SEO İçerik Stilleri — docx kaynaklı sayfa render'ları için
   ============================================================ */

/* Konteyner — header (fixed, ~124px) altında kalmaması için margin-top */
.seo-content-wrap {
    max-width: 980px;
    margin: 32px auto;
    margin-top: calc(var(--header-total-height, 124px) + 24px);
    padding: 0 20px;
    color: #1f2937;
}

/* Breadcrumb (.seo-content-wrap içinde değilse de header'dan kaçacak şekilde) */
.seo-breadcrumb {
    margin: 16px auto;
    max-width: 980px;
    padding: 0 20px;
    font-size: 14px;
    color: #555;
}
/* Eğer breadcrumb wrap dışında (inject edilen mevcut sayfalarda) ise yine kaçır */
body > .seo-breadcrumb {
    margin-top: calc(var(--header-total-height, 124px) + 16px);
}
/* Eğer breadcrumb wrap içindeyse ekstra üst margin gerekmez */
.seo-content-wrap > .seo-breadcrumb {
    margin-top: 0;
}
/* Header'ın hemen altındaki breadcrumb şeridi (ürün hero üstünde) */
.seo-breadcrumb-wrap {
    background: #fff;
    margin-top: var(--header-total-height, 124px);
    border-bottom: 1px solid #f0f0f0;
}
.seo-breadcrumb-wrap .seo-breadcrumb {
    margin: 0 auto;
    padding: 14px 20px;
    max-width: 1200px;
}
/* Hero, breadcrumb wrap ile birlikte kullanıldığında üst margin'a ihtiyaç yok */
.seo-breadcrumb-wrap + .service-product-page,
.seo-breadcrumb-wrap ~ .service-product-page {
    margin-top: 0;
    padding-top: 24px;
}
/* Hero'dan sonra gelen seo-content-wrap için gereksiz boşluğu sıkıştır
   (lightbox div araya girdiği için ~ general sibling kullanıyoruz) */
.service-product-page ~ .seo-content-wrap {
    margin-top: 24px !important;
}
.seo-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.seo-breadcrumb li {
    display: flex;
    align-items: center;
}
.seo-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #9ca3af;
}
.seo-breadcrumb a {
    color: #1a56db;
    text-decoration: none;
}
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-breadcrumb [aria-current="page"] {
    color: #1f2937;
    font-weight: 600;
}

/* Article gövdesi */
.seo-article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.seo-article h1 {
    color: #0f172a;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 800;
}
.seo-article h2 {
    color: #1e3a8a;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.3;
    margin: 32px 0 12px;
    border-left: 4px solid #1a56db;
    padding-left: 12px;
}
.seo-article h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 24px 0 8px;
}
.seo-article h4 {
    color: #334155;
    font-size: 16px;
    margin: 16px 0 6px;
}
.seo-article p {
    color: #374151;
    line-height: 1.75;
    font-size: 16px;
    margin: 0 0 14px;
}
.seo-article p.seo-intro {
    font-size: 17px;
    color: #1f2937;
    border-left: 3px solid #fbbf24;
    background: #fffbeb;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}
.seo-article ul.seo-list {
    margin: 0 0 18px;
    padding-left: 22px;
    list-style: disc;
}
.seo-article ul.seo-list li {
    margin: 6px 0;
    color: #374151;
    line-height: 1.65;
}
.seo-article strong { color: #0f172a; }

/* SSS — details/summary */
.seo-faq {
    margin: 32px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
}
.seo-faq h2 {
    color: #0f172a;
    font-size: 22px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}
.seo-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
}
.seo-faq-item:last-child { border-bottom: none; }
.seo-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: #1a56db;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.seo-faq-item[open] summary::after {
    content: "−";
}
.seo-faq-item summary h3 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}
.seo-faq-item p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.7;
    padding-left: 4px;
}

/* İç Bağlantılar */
.seo-internal-links {
    margin: 32px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-left: 4px solid #1a56db;
    border-radius: 8px;
    padding: 20px 24px;
}
.seo-internal-links h3 {
    margin: 0 0 12px;
    color: #1a56db;
    font-size: 18px;
}
.seo-internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.seo-internal-links li a {
    display: block;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    color: #1e3a8a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
}
.seo-internal-links li a:hover {
    background: #1a56db;
    color: #fff;
    border-color: #1a56db;
    transform: translateY(-1px);
}

/* CTA bölümü (her sayfanın altına eklenecek) */
.seo-cta {
    margin: 32px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.seo-cta h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 24px;
    border: none;
    padding: 0;
}
.seo-cta p {
    color: #dbeafe;
    margin: 0 0 20px;
    font-size: 16px;
}
.seo-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.seo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.15s;
}
.seo-cta-btn.primary {
    background: #fbbf24;
    color: #1f2937;
}
.seo-cta-btn.primary:hover { background: #f59e0b; }
.seo-cta-btn.whatsapp {
    background: #16a34a;
    color: #fff;
}
.seo-cta-btn.whatsapp:hover { background: #15803d; }
.seo-cta-btn.cart {
    background: #1a56db;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.seo-cta-btn.cart:hover { background: #1e40af; }
.seo-cta-btn.cart.added { background: #16a34a !important; }
button.seo-cta-btn { font-size: 15px; }

/* Mobil */
@media (max-width: 640px) {
    .seo-article { padding: 20px; }
    .seo-faq { padding: 18px; }
    .seo-internal-links ul { grid-template-columns: 1fr; }
}

/* ============================================
   Blog Görselleri (SEO Figure)
   ============================================ */
.seo-figure {
    margin: 28px 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 32, 68, 0.12);
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.seo-figure:hover {
    box-shadow: 0 12px 36px rgba(15, 32, 68, 0.18);
    transform: translateY(-2px);
}

.seo-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
}

.seo-figure figcaption {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.5;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .seo-figure {
        margin: 20px 0;
        border-radius: 10px;
    }
}

/* ============ DISTRICT / İLÇE BÖLÜMÜ (Generic Template) ============ */
.district-section { margin-top: 32px; }
.district-section h2 { font-size: 22px; font-weight: 800; color: #0f2044; margin-bottom: 14px; }
.district-section h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }

.district-tag-cloud {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.district-tag-cloud .district-label {
    font-size: 12px; color: #888; align-self: center;
    margin-right: 4px; white-space: nowrap;
}
.district-tag-cloud .district-tag {
    font-size: 12px; background: #fff; color: #444;
    padding: 5px 13px; border-radius: 20px;
    text-decoration: none; border: 1px solid #ddd;
    white-space: nowrap; transition: all .2s;
}
.district-tag-cloud .district-tag:hover {
    background: #f0f4ff; border-color: #1a56db; color: #1a56db;
}

.district-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px;
}
.district-grid p {
    font-size: 13px; color: #666; line-height: 1.7;
}

@media (max-width: 768px) {
    .district-grid { grid-template-columns: 1fr; }
    .district-section h2 { font-size: 18px; }
}
