/**
 * Kurumsal / CMS standart sayfa şablonu (ABOUT.PAGE.BACKGROUND.HERO.UNIFY.1)
 */

.page-shell--standard,
.page-shell--corporate-showcase {
    background: var(--theme-bg, #f5f8f8);
    color: var(--theme-text, #0f172a);
}

.page-shell--standard {
    --page-hero-pad-y: var(--page-header-hero-pad, clamp(1.6rem, 3.2vw, 2.6rem));
    --page-content-pad-y: clamp(1.25rem, 3vw, 2rem);
    --page-richtext-width: 80ch;
    --page-prose-width: 82ch;
    padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

.page-shell--standard.page-shell--compact {
    padding-bottom: clamp(0.85rem, 2vw, 1.35rem);
}

.page-shell--standard.page-shell--empty {
    padding-bottom: clamp(0.65rem, 1.5vw, 1rem);
}

.page-shell--standard.page-shell--legal {
    --page-richtext-width: 84ch;
    --page-hero-pad-y: clamp(2rem, 4.5vw, 3.25rem);
}

.page-shell--standard.page-shell--corporate {
    --page-prose-width: 70ch;
}

.page-shell--standard.page-shell--fullwidth {
    --page-richtext-width: none;
    --page-prose-width: 82ch;
    --page-content-pad-y: clamp(1rem, 2.5vw, 1.75rem);
}

/* Admin ön izleme şeridi */
.page-preview-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.55rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--theme-text);
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-text) 4%, var(--theme-surface)));
    border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 90%, transparent);
}

.page-preview-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-preview-bar__link {
    margin-inline-start: 0.35rem;
    color: var(--theme-primary, var(--theme-link, inherit));
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.page-preview-bar__link:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring);
    border-radius: var(--ds-radius-sm);
}

/* ── Hero ── */
.page-shell--standard .page-hero {
    position: relative;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent);
}

.page-shell--standard .page-hero__bg {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.page-shell--standard .page-hero__bg-shape {
    display: none;
}

.page-shell--standard .page-hero__inner {
    position: relative;
    z-index: 2;
    width: var(--layout-container-wide);
    margin-inline: auto;
    padding-block: var(--page-hero-pad-y);
    min-height: clamp(8.5rem, 18vw, 12rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-shell--corporate:not(.page-shell--empty) .page-hero__inner {
    min-height: auto;
    padding-top: clamp(2rem, 4.5vw, 3rem);
    padding-bottom: clamp(1.35rem, 3vw, 2rem);
}

.page-shell--empty .page-hero__inner {
    min-height: auto;
    padding-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}

.page-shell--standard .page-hero__breadcrumb {
    margin-bottom: var(--ds-stack-xs);
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb {
    margin-bottom: 0;
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__list {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__link {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__link:hover,
.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__link:focus-visible {
    color: color-mix(in srgb, var(--theme-primary) 78%, var(--theme-text));
    text-decoration: underline;
    outline: none;
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__current {
    color: var(--theme-text-muted, var(--site-text-muted));
}

.page-shell--standard .page-hero__breadcrumb .page-breadcrumb__item:not(:last-child)::after {
    color: color-mix(in srgb, var(--theme-border) 90%, transparent);
}

.page-shell--standard .page-hero__title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: clamp(1.875rem, 4.2vw, 2.75rem);
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--theme-text, var(--site-text));
}

.page-shell--corporate .page-hero__title {
    max-width: 28ch;
}

.page-shell--standard .page-hero__title::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 3px;
    margin-top: 1rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--theme-primary),
        color-mix(in srgb, var(--theme-accent, var(--theme-secondary)) 70%, var(--theme-primary))
    );
}

.page-shell--legal .page-hero__title {
    max-width: 26ch;
}

.page-shell--legal .page-hero__title::after {
    width: 2.5rem;
    background: color-mix(in srgb, var(--theme-primary) 55%, var(--theme-border));
}

.page-shell--fullwidth .page-hero__title,
.page-shell--fullwidth .page-hero__desc {
    max-width: none;
}

.page-shell--standard .page-hero__desc {
    margin: 1rem 0 0;
    max-width: 56ch;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.65;
    color: var(--theme-text-muted, var(--site-text-muted));
}

/* ── Content shell ── */
.page-shell--standard .page-content {
    margin-top: 0;
    padding-top: var(--page-content-start-space, clamp(1.5rem, 3.5vw, 2.75rem));
    padding-bottom: 0;
    background: transparent;
}

.page-shell--corporate .page-content {
    padding: var(--page-content-start-space, var(--ds-section-y-sm)) 0 clamp(1.75rem, 4vw, 3rem);
    background: transparent;
}

.page-shell--corporate.page-shell--compact .page-content {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.page-shell--empty .page-content {
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    background: transparent;
}

.page-shell--legal .page-content {
    margin-top: 0;
    padding-top: var(--page-content-start-space, clamp(1.5rem, 3.5vw, 2.75rem));
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.page-shell--no-header.page-shell--legal .page-content {
    margin-top: 0;
    padding-top: var(--page-content-start-space, clamp(1.5rem, 3.5vw, 2.75rem));
}

.page-shell--no-header.page-shell--corporate .page-content {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-shell--no-header.page-shell--empty .page-content {
    padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

.page-shell--standard .page-content__inner {
    width: var(--layout-container-wide);
    margin-inline: auto;
    background: transparent;
}

.page-shell--fullwidth .page-content__inner {
    width: var(--layout-container-wide);
}

/* Kurumsal — içerik odaklı prose (kart yok) */
.page-shell--corporate .page-prose {
    position: relative;
    max-width: min(var(--page-prose-width), 100%);
    margin-inline: auto;
    font-family: var(--theme-font, inherit);
    font-size: clamp(1.05rem, 1.9vw, 1.125rem);
    line-height: 1.8;
    color: var(--theme-text, var(--site-text));
    overflow-wrap: anywhere;
}

.page-shell--corporate .page-prose--lead {
    max-width: min(62ch, 100%);
    font-size: clamp(1.15rem, 2.35vw, 1.375rem);
    line-height: 1.88;
    color: var(--theme-text, var(--site-text));
}

.page-shell--corporate .page-prose--lead :where(p) {
    margin-bottom: 0;
}

.page-shell--corporate .page-prose--lead :where(p + p) {
    margin-top: 1.1rem;
}

.page-shell--fullwidth.page-shell--corporate .page-prose {
    max-width: min(var(--page-prose-width), 100%);
}

.page-shell--fullwidth.page-shell--corporate .page-prose--lead {
    max-width: min(72ch, 100%);
}

/* Legacy card shell — özel paneller için; legal body artık kart kullanmaz */
.page-shell--standard .page-content__card {
    position: relative;
    padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2.75rem);
    border: 1px solid var(--theme-card-border, color-mix(in srgb, var(--theme-border) 88%, transparent));
    border-radius: var(--theme-card-radius, var(--ds-radius, 12px));
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    box-shadow: var(--theme-card-shadow, 0 16px 48px color-mix(in srgb, var(--theme-text) 6%, transparent));
}

.page-shell--legal .page-richtext--legal {
    max-width: min(var(--page-richtext-width, 72ch), 100%);
    margin-inline: 0;
    font-family: var(--theme-font, inherit);
    font-size: clamp(1.05rem, 1.9vw, 1.125rem);
    line-height: 1.8;
    color: var(--theme-text, var(--site-text));
    overflow-wrap: anywhere;
}

/* Kompakt boş durum */
.page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 28rem;
    margin-inline: auto;
    padding: 1.15rem 0.75rem;
    text-align: center;
}

.page-empty__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: var(--theme-heading-weight, 300);
    color: var(--theme-text, var(--site-text));
}

.page-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--theme-radius, 8px);
    font-size: 1.05rem;
    color: var(--theme-text-muted, var(--site-text-muted));
    background: color-mix(in srgb, var(--theme-border) 30%, var(--theme-surface));
    border: 1px solid color-mix(in srgb, var(--theme-border) 85%, transparent);
}

.page-empty__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--theme-text-muted, var(--site-text-muted));
}

/* ── Rich text (ortak) — okuma kolonu ortalanır; Medium/Docs satır uzunluğu ── */
.page-shell--standard .page-richtext {
    max-width: var(--page-richtext-width);
    margin-inline: 0;
    font-family: var(--theme-font, inherit);
    font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.125rem);
    line-height: 1.7;
    color: var(--theme-text, var(--site-text));
    overflow-wrap: anywhere;
}

.page-shell--corporate .page-prose.page-richtext {
    max-width: min(var(--page-prose-width), 100%);
}

.page-shell--standard .page-richtext :where(h2, h3, h4, h5, h6),
.page-shell--standard .page-prose :where(h2, h3, h4, h5, h6) {
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    color: var(--theme-text, var(--site-text));
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.page-shell--standard .page-richtext :where(h2),
.page-shell--standard .page-prose :where(h2) {
    margin: 2.25rem 0 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: var(--theme-heading-weight, 300);
}

.page-shell--standard .page-richtext :where(h3),
.page-shell--standard .page-prose :where(h3) {
    margin: 1.85rem 0 0.7rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: var(--theme-heading-weight, 300);
}

.page-shell--standard .page-richtext :where(h4, h5, h6),
.page-shell--standard .page-prose :where(h4, h5, h6) {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: var(--theme-heading-weight, 300);
}

.page-shell--standard .page-richtext :where(h2, h3, h4, h5, h6):first-child,
.page-shell--standard .page-prose :where(h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.page-shell--standard .page-richtext :where(p, ul, ol, blockquote, pre, table, figure, hr),
.page-shell--standard .page-prose :where(p, ul, ol, blockquote, pre, table, figure, hr) {
    margin: 0 0 1.1rem;
}

.page-shell--standard .page-richtext :where(ul, ol),
.page-shell--standard .page-prose :where(ul, ol) {
    padding-left: 1.35rem;
}

.page-shell--standard .page-richtext :where(li + li),
.page-shell--standard .page-prose :where(li + li) {
    margin-top: 0.35rem;
}

.page-shell--standard .page-richtext :where(li)::marker,
.page-shell--standard .page-prose :where(li)::marker {
    color: var(--theme-text-muted, color-mix(in srgb, var(--theme-text) 55%, transparent));
}

.page-shell--standard .page-richtext :where(a),
.page-shell--standard .page-prose :where(a) {
    color: var(--theme-primary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--theme-primary) 35%, transparent);
    text-underline-offset: 0.15em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-shell--standard .page-richtext :where(a:hover, a:focus-visible),
.page-shell--standard .page-prose :where(a:hover, a:focus-visible) {
    color: color-mix(in srgb, var(--theme-primary) 82%, var(--theme-text));
    text-decoration-color: currentColor;
    outline: none;
}

.page-shell--standard .page-richtext :where(blockquote),
.page-shell--standard .page-prose :where(blockquote) {
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--theme-card-border, color-mix(in srgb, var(--theme-border) 70%, var(--theme-text)));
    border-radius: 0 var(--theme-radius, 8px) var(--theme-radius, 8px) 0;
    background: var(--theme-surface-alt, var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text) 5%, var(--theme-surface))));
    color: var(--theme-text-muted, var(--site-text-muted));
    font-style: italic;
}

.page-shell--standard .page-richtext :where(hr),
.page-shell--standard .page-prose :where(hr) {
    border: 0;
    height: 1px;
    background: color-mix(in srgb, var(--theme-border) 90%, transparent);
}

.page-shell--standard .page-richtext :where(img, video, iframe),
.page-shell--standard .page-prose :where(img, video, iframe) {
    max-width: 100%;
    height: auto;
    border-radius: var(--theme-radius, 8px);
}

.page-shell--standard .page-richtext :where(figure),
.page-shell--standard .page-prose :where(figure) {
    margin: 1.25rem 0;
}

.page-shell--standard .page-richtext :where(figcaption),
.page-shell--standard .page-prose :where(figcaption) {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-text-muted, var(--site-text-muted));
    text-align: center;
}

.page-shell--standard .page-richtext :where(table),
.page-shell--standard .page-prose :where(table) {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.page-shell--standard .page-richtext :where(th, td),
.page-shell--standard .page-prose :where(th, td) {
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--theme-border) 90%, transparent);
    text-align: left;
    vertical-align: top;
}

.page-shell--standard .page-richtext :where(th),
.page-shell--standard .page-prose :where(th) {
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-text) 4%, var(--theme-surface)));
    font-weight: 600;
}

.page-shell--standard .page-richtext :where(pre),
.page-shell--standard .page-prose :where(pre) {
    padding: var(--ds-card-pad);
    overflow-x: auto;
    border-radius: var(--theme-radius, 8px);
    border: 1px solid color-mix(in srgb, var(--theme-border) 88%, transparent);
    background: var(--theme-surface-alt, var(--theme-surface));
    font-size: 0.9rem;
    line-height: 1.55;
}

.page-shell--standard .page-richtext :where(code),
.page-shell--standard .page-prose :where(code) {
    padding: 0.1em 0.35em;
    border-radius: calc(var(--theme-radius, 8px) - 2px);
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-text) 5%, var(--theme-surface)));
    font-size: 0.92em;
}

.page-shell--standard .page-richtext :where(pre code),
.page-shell--standard .page-prose :where(pre code) {
    padding: 0;
    background: transparent;
}

.page-shell--standard .page-richtext :where(strong, b),
.page-shell--standard .page-prose :where(strong, b) {
    font-weight: 600;
    color: var(--theme-text, var(--site-text));
}

.page-shell--legal .page-richtext {
    font-size: 1.04rem;
    line-height: 1.82;
    text-align: left;
}

.page-shell--legal .page-richtext :where(p, ul, ol) {
    margin-bottom: 1.2rem;
}

/* Site main — footer öncesi boşluk */
.site-icerik:has(.page-shell--standard) {
    padding-bottom: 0;
    min-height: 0;
}

@media (min-width: 1024px) {
    .page-shell--standard .page-hero__desc {
        font-size: 1.125rem;
    }

    .page-shell--corporate .page-prose--lead {
        font-size: 1.375rem;
    }
}

@media (min-width: 1440px) {
    .page-shell--corporate .page-prose {
        font-size: 1.125rem;
    }

    .page-shell--corporate .page-prose--lead {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .page-shell--standard .page-hero__title,
    .page-shell--corporate .page-hero__title {
        max-width: none;
    }

    .page-shell--corporate .page-content {
        padding: clamp(1.5rem, 4vw, 2.25rem) 0 clamp(1.25rem, 3vw, 2rem);
    }

    .page-shell--corporate .page-prose {
        font-size: 1.02rem;
    }

    .page-shell--corporate .page-prose--lead {
        font-size: 1.1rem;
    }

    .page-shell--standard .page-richtext :where(table),
    .page-shell--standard .page-prose :where(table) {
        min-width: 36rem;
    }
}

@media (max-width: 390px) {
    .page-shell--standard .page-hero__inner,
    .page-shell--standard .page-content__inner {
        padding-inline: 1rem;
    }

    .page-empty {
        padding: 0.85rem 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-shell--standard .page-hero__breadcrumb .page-breadcrumb__link,
    .page-shell--standard .page-richtext :where(a),
    .page-shell--standard .page-prose :where(a) {
        transition: none;
    }
}

/* ── Kurumsal Tanıtım: tek zemin, şeffaf bantlar (page-corporate-showcase.css üzerine) ── */
.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-showcase__hero-bg {
    background: transparent;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-showcase__main {
    background: transparent;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-prolog {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-prolog__inner {
    position: relative;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-prolog__quote {
    position: relative;
    z-index: 1;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-showcase__brands {
    background: transparent;
}

.page-shell.page-shell--standard.page-shell--corporate-showcase .corp-showcase__logo-link {
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border-color: var(--theme-card-border, color-mix(in srgb, var(--theme-border) 85%, transparent));
}

body:has(.page-shell--standard) .home-cta.home-section,
body:has(.page-shell--corporate-showcase) .home-cta.home-section {
    background: transparent;
    border-top: 0;
}
