/* ============================================================
   Dealti - Bolum detay sayfalari (Hizmet / Destinasyon / Sektor)
   Ortak sarmalayici: service-details + service-area-details + sector-details
   stylee209.css / editor-styles.css'e dokunulmaz; bagimsiz katman.
   Isik + koyu (html.theme-dark) tema uyumlu. Marka yesili #83bf68.
   ============================================================ */

:root {
    /* Kurumsal, notr palet. Yesil yalnizca birincil aksiyon dugmesinde.  */
    --sc-green:      #83bf68;
    --sc-green-ink:  #5a9440;
    --sc-ink:        #1d211f;   /* birincil dugme / vurgu */
    --sc-ink-hover:  #000000;
    --sc-text:       #23272a;
    --sc-text-soft:  #5c6368;
    --sc-text-faint: #8a9096;
    --sc-border:     #e3e5e7;
    --sc-surface:    #ffffff;
    --sc-surface-2:  #f5f6f7;
}

/* ---------- Iki kolon yerlesim ---------- */

.section-detail .sd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.section-detail .sd-main { min-width: 0; }

.section-detail .sd-aside {
    position: sticky;
    top: 100px;
}

.section-detail .sd-below {
    max-width: 820px;
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .section-detail .sd-grid { grid-template-columns: 1fr; gap: 28px; }
    .section-detail .sd-aside { position: static; }
    /* Mobilde CTA bandi gizli - yapiskan teklif karti (icerik sonu) zaten ayni cagriyi yapiyor */
    .section-detail .sd-below .sd-cta { display: none; }
}

/* .content-single editor-styles'ta color:#333 / #1a1a1a sabit - koyu tema override.
   span:not([class]) -> yalnizca editor icerigi; kendi bilesenlerimizin classli span'lari haric. */
html.theme-dark .section-detail .content-single,
html.theme-dark .section-detail .content-single p,
html.theme-dark .section-detail .content-single li,
html.theme-dark .section-detail .content-single td,
html.theme-dark .section-detail .content-single th,
html.theme-dark .section-detail .content-single span:not([class]) {
    color: var(--d-text) !important;
}
html.theme-dark .section-detail .content-single h2,
html.theme-dark .section-detail .content-single h3,
html.theme-dark .section-detail .content-single strong {
    color: #fff !important;
}
html.theme-dark .section-detail .content-single a { color: #d7dad5 !important; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Yapiskan mini teklif karti ---------- */

.sd-quote-card {
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    background: var(--sc-surface-2);
    padding: 24px;
}

.sd-quote-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sc-text);
    margin: 0 0 8px;
}

.sd-quote-card p {
    font-size: 0.92rem;
    color: var(--sc-text-soft);
    line-height: 1.55;
    margin: 0 0 18px;
}

.sd-quote-card .sd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.sd-quote-card .sd-btn-primary {
    background: var(--sc-green);
    color: #12240b;
}
.sd-quote-card .sd-btn-primary:hover { background: var(--sc-green-ink); color: #fff; }

.sd-quote-card .sd-btn-ghost {
    margin-top: 10px;
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    background: var(--sc-surface);
}
.sd-quote-card .sd-btn-ghost:hover { border-color: var(--sc-text-soft); color: var(--sc-text); }

.sd-quote-card .sd-quote-note {
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: var(--sc-text-soft);
}

/* ---------- Bilgi seridi (opsiyonel, notr) ---------- */

.sd-sustain {
    margin-top: 44px;
    padding: 22px 24px;
    border-left: 2px solid var(--sc-ink);
    border-radius: 6px;
    background: var(--sc-surface-2);
}

.sd-sustain h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--sc-text);
}

.sd-sustain p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--sc-text-soft);
}

/* ---------- SSS (numarali, hep acik, editoryal) ---------- */

.sd-faq { margin-top: 56px; }

.sd-faq > h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--sc-text);
    letter-spacing: -0.01em;
}

.sd-faq .sd-faq-list { margin: 0; }

.sd-faq .sd-faq-qa {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    padding: 26px 0;
    border-top: 1px solid var(--sc-border);
}
.sd-faq .sd-faq-qa:last-child { border-bottom: 1px solid var(--sc-border); }

.sd-faq .sd-faq-num {
    grid-row: 1 / span 2;
    padding-top: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sc-green-ink);
    font-variant-numeric: tabular-nums;
}

.sd-faq .sd-faq-qa dt {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--sc-text);
}

.sd-faq .sd-faq-qa dd {
    margin: 9px 0 0;
    max-width: 62ch;
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--sc-text-soft);
}
.sd-faq .sd-faq-qa dd > *:first-child { margin-top: 0; }
.sd-faq .sd-faq-qa dd > *:last-child { margin-bottom: 0; }
.sd-faq .sd-faq-qa dd a { color: var(--sc-text); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 575.98px) {
    .sd-faq .sd-faq-qa { grid-template-columns: 1fr; }
    .sd-faq .sd-faq-num { grid-row: auto; padding: 0 0 6px; }
}

/* ---------- Ic link blogu ---------- */

.sd-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--sc-border);
}

.sd-related h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--sc-text);
}

.sd-related-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}

.sd-related-col h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sc-text-soft);
    margin: 0 0 12px;
}

.sd-related-col ul { list-style: none; margin: 0; padding: 0; }
.sd-related-col li { margin-bottom: 8px; }
.sd-related-col a {
    color: var(--sc-text);
    text-decoration: none;
    font-size: 0.95rem;
}
.sd-related-col a:hover { color: var(--sc-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA bandi ---------- */

.sd-cta {
    margin-top: 56px;
    padding: 36px 32px;
    border-radius: 14px;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-border);
    text-align: center;
}

.sd-cta h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--sc-text);
}

.sd-cta p {
    margin: 0 0 22px;
    color: var(--sc-text-soft);
    font-size: 1rem;
}

.sd-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.sd-cta-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.sd-cta-actions .sd-btn-primary { background: var(--sc-green); color: #12240b; }
.sd-cta-actions .sd-btn-primary:hover { background: var(--sc-green-ink); color: #fff; }
.sd-cta-actions .sd-btn-ghost {
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    background: var(--sc-surface);
}
.sd-cta-actions .sd-btn-ghost:hover { border-color: var(--sc-text-soft); color: var(--sc-text); }

/* ---------- "Bir bakista" anahtar bilgi kutusu (icerik icinde) ---------- */

.section-detail .content-single .sd-keyfacts {
    margin: 26px 0 34px;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    background: var(--sc-surface-2);
    overflow: hidden;
}

.section-detail .content-single .sd-keyfacts-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sc-text-soft);
    background: transparent;
    border-bottom: 1px solid var(--sc-border);
}
.section-detail .content-single .sd-keyfacts-head i { font-size: 0.95rem; line-height: 0; color: var(--sc-green-ink); }

.section-detail .content-single .sd-keyfact {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 13px 22px;
    border-top: 1px solid var(--sc-border);
    font-size: 0.93rem;
    line-height: 1.55;
}
.section-detail .content-single .sd-keyfact:first-of-type { border-top: 0; }

.section-detail .content-single .sd-keyfact-label {
    color: var(--sc-text-soft);
    font-weight: 500;
}
.section-detail .content-single .sd-keyfact-value {
    color: var(--sc-text);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .section-detail .content-single .sd-keyfact {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 12px 18px;
    }
}

/* ---------- Karsilastirma / spec tablosu (icerik icinde) ---------- */

.section-detail .content-single .sd-table-wrap { overflow-x: auto; margin: 24px 0; }

.section-detail .content-single table.sd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: transparent;
    box-shadow: none;
    margin: 0;
}

.section-detail .content-single table.sd-table th,
.section-detail .content-single table.sd-table td {
    border: 1px solid var(--sc-border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.section-detail .content-single table.sd-table thead th,
.section-detail .content-single table.sd-table tbody th {
    background: var(--sc-surface-2);
    font-weight: 600;
    color: var(--sc-text);
}

/* editor-styles cizgili satir / hover'i .sd-table icin kapat */
.section-detail .content-single table.sd-table tr:nth-child(even),
.section-detail .content-single table.sd-table tr:hover {
    background-color: transparent;
}

/* ============================================================
   KOYU TEMA
   ============================================================ */

html.theme-dark .sd-quote-card,
html.theme-dark .sd-cta {
    background-color: var(--d-surface);
    border-color: var(--d-border);
}

html.theme-dark .section-detail .content-single table.sd-table { background: transparent; }
html.theme-dark .section-detail .content-single table.sd-table thead th,
html.theme-dark .section-detail .content-single table.sd-table tbody th {
    background-color: var(--d-surface-2);
    color: var(--d-text);
}
html.theme-dark .section-detail .content-single table.sd-table tr:nth-child(even),
html.theme-dark .section-detail .content-single table.sd-table tr:hover {
    background-color: transparent;
}

html.theme-dark .sd-quote-card h3,
html.theme-dark .sd-sustain h2,
html.theme-dark .sd-faq > h2,
html.theme-dark .sd-related h2,
html.theme-dark .sd-cta h2 { color: var(--d-text); }

html.theme-dark .sd-quote-card p,
html.theme-dark .sd-quote-card .sd-quote-note,
html.theme-dark .sd-sustain p,
html.theme-dark .sd-cta p,
html.theme-dark .sd-related-col h3 { color: var(--d-text-soft); }

html.theme-dark .sd-sustain {
    background: var(--d-surface-2);
    border-left-color: var(--d-text-soft);
}

html.theme-dark .sd-quote-card .sd-btn-ghost,
html.theme-dark .sd-cta-actions .sd-btn-ghost {
    background: var(--d-surface-2);
    border-color: var(--d-border);
    color: var(--d-text);
}

html.theme-dark .sd-faq .sd-faq-qa,
html.theme-dark .sd-related,
html.theme-dark .section-detail .content-single .sd-keyfacts,
html.theme-dark .section-detail .content-single .sd-keyfacts-head,
html.theme-dark .section-detail .content-single .sd-keyfact,
html.theme-dark .section-detail .content-single table.sd-table th,
html.theme-dark .section-detail .content-single table.sd-table td { border-color: var(--d-border); }

html.theme-dark .section-detail .content-single .sd-keyfacts { background-color: var(--d-surface); }
html.theme-dark .section-detail .content-single .sd-keyfacts-head {
    background: transparent;
    color: var(--d-text-soft);
}
html.theme-dark .section-detail .content-single .sd-keyfacts-head i { color: var(--d-green-ink); }
html.theme-dark .section-detail .content-single .sd-keyfact-label { color: var(--d-text-soft); }
html.theme-dark .section-detail .content-single .sd-keyfact-value { color: var(--d-text); }

html.theme-dark .sd-faq .sd-faq-qa dt,
html.theme-dark .sd-related-col a { color: var(--d-text); }
html.theme-dark .sd-faq .sd-faq-qa dd { color: var(--d-text-soft); }
html.theme-dark .sd-faq .sd-faq-num { color: var(--d-green-ink); }
html.theme-dark .sd-faq .sd-faq-qa dd a { color: var(--d-text); }

html.theme-dark .sd-quote-card .sd-btn-primary,
html.theme-dark .sd-cta-actions .sd-btn-primary {
    background: var(--d-green);
    color: #0a1707;
}
html.theme-dark .sd-quote-card .sd-btn-primary:hover,
html.theme-dark .sd-cta-actions .sd-btn-primary:hover {
    background: var(--d-green-ink);
    color: #0a1707;
}
