/* ============================================================
   ORTODONTİK PROBLEM DETAY SAYFALARI — ORTAK CSS
   /ortodontik-problemler/* alt sayfaları için.
   .ipd- prefix'li scoped class'lar.
   ============================================================ */

.ipd-wrap { color: var(--c-primary); }

/* HERO — full bleed mor */
.ipd-hero {
    background: linear-gradient(135deg, #2D2545 0%, #3d2f6b 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 56px 22px 48px;
    position: relative;
    overflow: hidden;
}
.ipd-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(156,107,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ipd-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
}
.ipd-hero-content { flex: 1; }
.ipd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(156,107,255,0.2);
    color: #B88AFF;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ipd-hero h1 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}
.ipd-hero h1 span { color: #B88AFF; }
.ipd-hero-desc {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}
.ipd-hero-desc a {
    color: #B88AFF;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.ipd-hero-icon {
    width: 130px; height: 130px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    flex-shrink: 0;
}
.ipd-hero-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Sticky TOC NAV — full bleed */
.ipd-nav {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--c-border-soft);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transition: box-shadow 0.3s;
}
.ipd-nav.fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(45,37,69,0.1);
}
.ipd-nav-placeholder { display: none; }
.ipd-nav-placeholder.show { display: block; }
.ipd-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
}
.ipd-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.ipd-nav-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary);
}
.ipd-nav-toggle svg {
    width: 18px; height: 18px;
    stroke: var(--c-text-muted);
    fill: none; stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.3s;
}
.ipd-nav.mob-open .ipd-nav-toggle svg { transform: rotate(180deg); }

.ipd-nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 18px;
    color: var(--c-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ipd-nav-links a:hover {
    color: var(--c-accent);
    background: rgba(156,107,255,0.04);
}
.ipd-nav-links a.active {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
    font-weight: 600;
}
.ipd-nav-links a svg {
    width: 14px; height: 14px;
    stroke: currentColor;
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

/* İçerik wrapper */
.ipd {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 0;
}
.ipd a.ipd-il {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.ipd a.ipd-il:hover { color: #B88AFF; }

/* Ana grid: video + metin */
.ipd-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
}
.ipd-vid {
    position: sticky;
    top: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border-soft);
    box-shadow: 0 2px 12px rgba(45,37,69,0.06);
    align-self: start;
}
.ipd-vid video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.ipd-vid-caption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--c-text-muted);
    background: rgba(45,37,69,0.02);
    text-align: center;
}

/* Belirtiler kutusu */
.ipd-symptoms {
    background: #F3EEFF;
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: 0;
}
.ipd-symptoms h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ipd-symptoms h4 svg {
    width: 18px; height: 18px;
    stroke: var(--c-accent);
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.ipd-sym-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ipd-sym-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--c-text);
    line-height: 1.5;
}
.ipd-sym-list li svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Metin alanı */
.ipd-text h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 18px;
    line-height: 1.3;
}
.ipd-text h2 span { color: var(--c-accent); }
.ipd-text p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--c-text);
    margin: 0 0 14px;
}
.ipd-text h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 24px 0 10px;
}
.ipd-text strong {
    font-weight: 500;
    color: var(--c-primary);
}

/* Avantaj kartları */
.ipd-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}
.ipd-ben {
    background: #fff;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ipd-ben:hover {
    border-color: var(--c-accent);
    box-shadow: 0 4px 20px rgba(156,107,255,0.12);
}
.ipd-ben-icon {
    width: 46px; height: 46px;
    background: #F3EEFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.ipd-ben-icon svg {
    width: 22px; height: 22px;
    stroke: var(--c-accent);
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.ipd-ben h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 6px;
}
.ipd-ben p {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* iTero bölümü */
.ipd-itero {
    background: linear-gradient(135deg, #2D2545 0%, #3d2f6b 100%);
    border-radius: var(--radius);
    padding: 44px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}
.ipd-itero::before,
.ipd-itero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ipd-itero::before {
    bottom: -30%; right: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(156,107,255,0.15) 0%, transparent 70%);
}
.ipd-itero::after {
    top: -40%; left: -5%;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(184,138,255,0.1) 0%, transparent 70%);
}
.ipd-itero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ipd-itero-badge {
    display: inline-flex;
    background: rgba(156,107,255,0.2);
    color: #B88AFF;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ipd-itero h3 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.ipd-itero h3 span { color: #B88AFF; }
.ipd-itero-text p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 0 14px;
}
.ipd-itero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.ipd-itero-feat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ipd-itero-feat-icon {
    width: 34px; height: 34px;
    background: rgba(156,107,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ipd-itero-feat-icon svg {
    width: 16px; height: 16px;
    stroke: #B88AFF;
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.ipd-itero-feat h5 {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 2px;
}
.ipd-itero-feat p {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}
.ipd-itero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.ipd-itero-visual {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}
.ipd-itero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buton stilleri — yüksek özgüllük */
.ipd-wrap a.ipd-cta-btn,
.ipd-wrap a.ipd-cta-btn:link,
.ipd-wrap a.ipd-cta-btn:visited,
.ipd-wrap a.ipd-cta-btn:hover,
.ipd-wrap a.ipd-itero-btn,
.ipd-wrap a.ipd-itero-btn:link,
.ipd-wrap a.ipd-itero-btn:visited,
.ipd-wrap a.ipd-itero-btn:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(156,107,255,0.3);
    white-space: nowrap;
    margin: 0;
}
.ipd-wrap a.ipd-cta-btn:hover,
.ipd-wrap a.ipd-itero-btn:hover {
    background: #B88AFF;
    box-shadow: 0 6px 24px rgba(156,107,255,0.45);
}
.ipd-wrap .ipd-cta-btn svg,
.ipd-wrap .ipd-itero-btn svg {
    width: 16px; height: 16px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round;
}

/* Doredent farkı */
.ipd-why { margin-bottom: 56px; }
.ipd-why-header { margin-bottom: 26px; }
.ipd-why-header h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 8px;
}
.ipd-why-header p {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text-muted);
    margin: 0;
    line-height: 1.6;
}
.ipd-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ipd-why-card {
    background: #fff;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ipd-why-card:hover {
    border-color: var(--c-accent);
    box-shadow: 0 4px 20px rgba(156,107,255,0.1);
}
.ipd-why-icon {
    width: 42px; height: 42px;
    background: #F3EEFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ipd-why-icon svg {
    width: 20px; height: 20px;
    stroke: var(--c-accent);
    fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.ipd-why-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 6px;
}
.ipd-why-card p {
    font-size: 13px;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* SSS accordion */
.ipd-sss { margin-bottom: 56px; }
.ipd-sss h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 22px;
}
.ipd-sss-item {
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ipd-sss-item:hover {
    border-color: rgba(156,107,255,0.3);
}
.ipd-sss-item.active {
    border-color: var(--c-accent);
    box-shadow: 0 2px 12px rgba(156,107,255,0.08);
}
.ipd-wrap button.ipd-sss-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-primary);
    text-align: left;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s;
}
.ipd-wrap button.ipd-sss-q:hover { color: var(--c-accent); }
.ipd-sss-q svg {
    width: 18px; height: 18px;
    stroke: var(--c-text-muted);
    fill: none; stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    transition: transform 0.3s, stroke 0.2s;
}
.ipd-sss-item.active .ipd-sss-q svg {
    transform: rotate(180deg);
    stroke: var(--c-accent);
}
.ipd-sss-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s, padding 0.35s;
    padding: 0 20px;
}
.ipd-sss-item.active .ipd-sss-a {
    max-height: 320px;
    padding: 0 20px 18px;
}
.ipd-sss-a p {
    font-size: 14px;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin: 0;
}
.ipd-sss-a a.ipd-il {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

/* Alt CTA bandı */
.ipd-cta {
    background: linear-gradient(135deg, #2D2545 0%, #3d2f6b 100%);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}
.ipd-cta::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(156,107,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ipd-cta-body { position: relative; z-index: 1; }
.ipd-cta-body h3 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 6px;
}
.ipd-cta-body p {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.ipd-wrap .ipd-cta a.ipd-cta-btn { position: relative; z-index: 1; }

/* Diğer problemler */
.ipd-others h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-primary);
    margin: 0 0 18px;
}
.ipd-others-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.ipd-wrap a.ipd-oc,
.ipd-wrap a.ipd-oc:link,
.ipd-wrap a.ipd-oc:visited {
    flex: 0 0 auto;
    width: 130px;
    background: #fff;
    border: 2px solid #E8E5F0;
    border-radius: var(--radius);
    padding: 14px 10px 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
}
.ipd-wrap a.ipd-oc:hover {
    border-color: var(--c-accent);
    box-shadow: 0 4px 16px rgba(156,107,255,0.15);
}
.ipd-wrap .ipd-oc img {
    width: 52px; height: 42px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}
.ipd-wrap .ipd-oc span {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-primary);
    line-height: 1.3;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ipd-hero { padding: 40px 18px 36px; }
    .ipd-hero-inner {
        flex-direction: column;
        gap: 22px;
        align-items: flex-start;
    }
    .ipd-hero-icon { display: none; }
    .ipd-hero-desc { font-size: 14px; }

    .ipd { padding: 24px 18px; }
    .ipd-main {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 36px;
    }
    .ipd-vid { position: relative; top: auto; }
    .ipd-text h2 { font-size: 20px; }
    .ipd-text h3 { font-size: 16px; margin: 20px 0 10px; }
    .ipd-text p { font-size: 14px; }
    .ipd-symptoms { padding: 18px; }
    .ipd-sym-list { grid-template-columns: 1fr; gap: 8px; }

    .ipd-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 36px;
    }
    .ipd-ben {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 16px 18px;
    }
    .ipd-ben-icon { margin: 0; flex-shrink: 0; }

    .ipd-itero {
        padding: 28px 22px;
        margin-bottom: 36px;
    }
    .ipd-itero-grid { grid-template-columns: 1fr; gap: 24px; }
    .ipd-itero h3 { font-size: 18px; }
    .ipd-itero-cta { align-items: stretch; }
    .ipd-wrap a.ipd-itero-btn { justify-content: center; width: 100%; }

    .ipd-why { margin-bottom: 36px; }
    .ipd-why-header h3 { font-size: 18px; }
    .ipd-why-grid { grid-template-columns: 1fr; gap: 12px; }
    .ipd-why-card { padding: 20px 18px; }

    .ipd-sss { margin-bottom: 36px; }
    .ipd-sss h3 { font-size: 18px; margin-bottom: 16px; }
    .ipd-sss-item.active .ipd-sss-a { max-height: 500px; }

    .ipd-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
        margin-bottom: 36px;
    }
    .ipd-cta-body h3 { font-size: 17px; }
    .ipd-wrap a.ipd-cta-btn { width: 100%; justify-content: center; }

    .ipd-others { margin-bottom: 24px; }
    .ipd-others h3 { font-size: 15px; margin-bottom: 14px; }
    .ipd-oc { width: 110px; padding: 12px 8px; }

    /* Mobil nav */
    .ipd-nav-toggle {
        display: flex;
    }
    .ipd-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--c-border-soft);
        padding: 4px 0 8px;
    }
    .ipd-nav.mob-open .ipd-nav-links { display: flex; }
    .ipd-nav-links a {
        padding: 11px 12px;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-size: 14px;
        white-space: normal;
    }
    .ipd-nav-links a.active {
        border-left-color: var(--c-accent);
        border-bottom: none;
        background: rgba(156,107,255,0.06);
    }
}
