/**
 * Frontend blog liste ve detay stilleri.
 * Renkler tema CSS değişkenlerinden beslenir.
 */

.blog-page {
    background: var(--theme-bg, #f5f8f8);
}

.blog-page__container,
.blog-hero,
.blog-filter,
.blog-filter__inner,
.blog-list-section,
.blog-list,
.blog-grid {
    background: transparent;
}

.blog-page,
.blog-detail {
    color: var(--theme-text, var(--site-text, #0f172a));
    font-family: var(--theme-font, inherit);
    overflow-x: clip;
}

.blog-page__container,
.blog-detail__container {
    width: var(--layout-container-wide);
    margin-inline: auto;
}

.blog-page__container {
    padding-block: var(--page-content-start-space, clamp(1.25rem, 3vw, 2rem)) clamp(2rem, 4vw, 3.5rem);
}

.blog-detail__container {
    /* Yatay inset --layout-container-wide içinde zaten (2 * --ds-gutter); ekstra padding çift gutter üretir. */
    padding-block: var(--page-content-start-space, clamp(1.75rem, 3.5vw, 2.85rem)) calc(var(--theme-section-spacing, 3rem) * 0.85);
    padding-inline: 0;
}

/* Liste hero */
.blog-hero {
    position: relative;
    text-align: center;
    padding-block: var(--ds-hero-pad-y, var(--page-header-hero-pad, clamp(1.6rem, 3.2vw, 2.6rem))) clamp(1.5rem, 3vw, 2.4rem);
    margin-bottom: var(--ds-stack);
    isolation: isolate;
    min-height: clamp(10rem, 22vw, 16rem);
    overflow: hidden;
}

.blog-hero__title {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--theme-text, var(--site-text, #0f172a));
}

.blog-hero--list .blog-hero__title {
    font-size: clamp(2rem, 4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.blog-hero--detail .blog-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.08;
    /* Parent zaten --layout-container-wide; 24ch kısa/orta başlıkları gereksiz 2 satıra kırıyordu */
    max-width: min(100%, var(--layout-container-wide));
    margin-inline: auto;
    text-wrap: balance;
}

.blog-hero .page-breadcrumb {
    position: relative;
    z-index: 2;
    margin: clamp(1rem, 2.2vw, 1.125rem) auto 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.blog-hero .page-breadcrumb__list {
    justify-content: center;
}

.blog-hero .page-breadcrumb__link,
.blog-hero .page-breadcrumb__current {
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-hero .page-breadcrumb__link:hover {
    color: var(--theme-primary, #2563eb);
}

.blog-hero__lead {
    position: relative;
    z-index: 2;
    max-width: 42.5rem;
    margin: clamp(1rem, 2.2vw, 1.125rem) auto 0;
    font-size: clamp(1rem, 2.1vw, 1.375rem);
    line-height: 1.65;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

/* Filtre alanı */
.blog-filter {
    padding-bottom: var(--ds-section-y-md);
}

.blog-filter__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 56rem;
    margin-inline: auto;
}

.blog-category-dropdown {
    position: relative;
    z-index: 5;
    flex: 0 1 auto;
}

.blog-category-dropdown__button,
.blog-search {
    height: clamp(3.5rem, 6.5vw, 4.25rem);
    border-radius: 999px;
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-border, #e2e8f0) 72%, transparent);
}

.blog-category-dropdown__button {
    width: min(15rem, 100%);
    min-width: 12.5rem;
    padding: 0 1.75rem 0 2rem;
    border: 0;
    cursor: pointer;
    color: var(--theme-text, var(--site-text, #0f172a));
    font: inherit;
    font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.125rem;
}

.blog-category-dropdown__button i {
    transition: transform 0.3s ease;
    color: color-mix(in srgb, var(--theme-secondary, #64748b) 75%, var(--theme-primary, #2563eb) 25%);
}

.blog-category-dropdown.is-active .blog-category-dropdown__button i {
    transform: rotate(180deg);
}

.blog-category-dropdown__menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 1.125rem);
    transform: translateX(-50%) translateY(1.25rem);
    min-width: min(15rem, calc(100vw - 2.5rem));
    padding: 1.5rem;
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--theme-border, #e2e8f0) 75%, transparent),
        0 16px 40px color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.blog-category-dropdown.is-active .blog-category-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.blog-category-dropdown__link {
    display: block;
    padding: 0.625rem 0;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    text-decoration: none;
    font-size: 1rem;
}

.blog-category-dropdown__link:hover,
.blog-category-dropdown__link.is-active {
    color: var(--theme-primary, #2563eb);
    font-weight: 600;
}

.blog-search {
    position: relative;
    flex: 1 1 22rem;
    width: min(34.375rem, 100%);
    max-width: 34.375rem;
}

.blog-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 4.75rem 0 1.875rem;
    font: inherit;
    font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
    color: var(--theme-text, var(--site-text, #0f172a));
}

.blog-search input::placeholder {
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-search button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--theme-primary, #2563eb);
    color: var(--theme-button-color, #fff);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary, #2563eb) 28%, transparent);
}

.blog-search button:hover {
    transform: translateY(-50%) scale(1.07);
    background: var(--theme-accent, var(--theme-primary, #2563eb));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-accent, #7c3aed) 30%, transparent);
}

/* Liste grid — genişlik parent .blog-page__container (--layout-container-wide) SSOT */
.blog-list-section {
    padding-bottom: clamp(2rem, 4vw, 3.125rem);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3.5vw, 2.125rem) clamp(2.5rem, 5.5vw, 4.375rem);
    align-items: stretch;
}

.blog-grid.is-hidden {
    display: none;
}

.blog-card {
    position: relative;
    display: block;
    padding: var(--ds-card-pad);
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    text-decoration: none;
    color: inherit;
    background: transparent;
    transition: transform 0.35s ease;
    min-width: 0;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-0.625rem);
}

.blog-card__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.blog-card__bg::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px)) - 2px);
    background: transparent;
}

.blog-card:hover .blog-card__bg,
.blog-card:focus-within .blog-card__bg {
    background: var(--theme-card-bg-hover, var(--theme-card-bg, var(--theme-surface, #fff)));
    border-color: var(--theme-card-border, var(--theme-border, #e2e8f0));
}

.blog-card:hover .blog-card__bg::before,
.blog-card:focus-within .blog-card__bg::before {
    opacity: 1;
}

.blog-card__image,
.blog-card__meta,
.blog-card__content {
    position: relative;
    z-index: 2;
}

.blog-card__image {
    position: relative;
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    overflow: hidden;
    background: var(--theme-surface-alt, var(--theme-bg, #f5f8f8));
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.blog-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    /* Farklı oranlardaki kapakları boşluk bırakmadan tek tip hizalar. */
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.035);
}

.blog-card__image--placeholder {
    background:
        radial-gradient(
            circle at 28% 22%,
            color-mix(in srgb, var(--theme-text, #0f172a) 6%, var(--theme-surface-alt, #f1f5f9)),
            transparent 52%
        ),
        linear-gradient(
            135deg,
            var(--theme-surface-alt, #f1f5f9) 0%,
            var(--theme-surface, #f8fafc) 48%,
            var(--theme-bg-alt, var(--theme-surface-alt, #eef2ff)) 100%
        );
}

.blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--theme-text-muted, #64748b);
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    opacity: 1;
    text-shadow: none;
}

.blog-card__meta {
    margin: clamp(1.25rem, 2.5vw, 1.5rem) auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem clamp(1rem, 2vw, 1.25rem);
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    font-size: 0.875rem;
    max-width: 100%;
}

.blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.blog-card__meta i {
    color: color-mix(in srgb, var(--theme-text-muted, #64748b) 62%, var(--theme-primary, #2563eb) 38%);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__meta i {
    color: var(--theme-primary, #2563eb);
}

.blog-card__content {
    margin-top: clamp(1.75rem, 3vw, 2.125rem);
    text-align: center;
    padding-inline: clamp(0.25rem, 1.5vw, 0.75rem);
}

.blog-card__title {
    margin: 0;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: clamp(1.375rem, 2.6vw, 2rem);
    line-height: 1.32;
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: -0.02em;
    color: var(--theme-text, var(--site-text, #0f172a));
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    margin: clamp(0.85rem, 1.8vw, 1.125rem) auto 0;
    max-width: 38.75rem;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    font-size: clamp(0.9375rem, 1.7vw, 1.125rem);
    line-height: 1.62;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton */
.blog-card--skeleton {
    pointer-events: none;
}

.blog-card--skeleton .blog-card__bg {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

.blog-card__image--skeleton,
.blog-card__skeleton-title,
.blog-card__skeleton-text,
.blog-card__meta--skeleton span {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--theme-border, #e2e8f0) 55%, var(--theme-surface-alt, #f8fafc)) 25%,
        color-mix(in srgb, var(--theme-primary, #2563eb) 8%, var(--theme-surface-alt, #f8fafc)) 50%,
        color-mix(in srgb, var(--theme-border, #e2e8f0) 55%, var(--theme-surface-alt, #f8fafc)) 75%
    );
    background-size: 200% 100%;
    animation: blog-skeleton-shimmer 1.2s ease-in-out infinite;
}

.blog-card__meta--skeleton {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.blog-card__meta--skeleton span {
    width: 5rem;
    height: 0.875rem;
    border-radius: 999px;
}

.blog-card__skeleton-title {
    display: block;
    width: min(80%, 22rem);
    height: 1.75rem;
    margin: 0 auto;
    border-radius: 999px;
}

.blog-card__skeleton-text {
    display: block;
    width: min(92%, 28rem);
    height: 0.95rem;
    margin: 0.75rem auto 0;
    border-radius: 999px;
}

@keyframes blog-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pagination */
.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.blog-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--theme-radius, 8px);
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    background: var(--theme-surface, #fff);
    color: var(--theme-text, var(--site-text, #0f172a));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-pagination__btn:hover {
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 30%, var(--theme-border, #e2e8f0));
    color: var(--theme-primary, #2563eb);
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 6%, var(--theme-surface, #fff));
}

.blog-pagination__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.blog-pagination__info {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

/* Empty */
.blog-empty {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    text-align: center;
    border: 1px dashed var(--theme-border, var(--site-border, #e2e8f0));
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-primary, #2563eb) 3%, #fff));
}

.blog-empty.is-hidden {
    display: none;
}

.blog-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 12%, transparent);
    color: var(--theme-primary, #2563eb);
    font-size: 1.2rem;
}

.blog-empty__text {
    margin: 0;
    max-width: 36ch;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

/* Detail layout — ana ~74% / sidebar ~26% */
.blog-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 26%);
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: start;
    justify-content: start;
}

.blog-article {
    background: transparent;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-article__meta--detail {
    margin: 0 0 1.25rem;
    gap: 0.45rem 1rem;
    font-size: 0.72rem;
}

.blog-article__category {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent);
    color: var(--theme-primary, #2563eb);
    text-decoration: none;
    font-size: 0.72rem;
}

.blog-article__category:hover {
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 16%, transparent);
}

.blog-article__reading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-article__featured {
    margin: 0 0 1rem;
    border-radius: var(--theme-radius, 8px);
    overflow: hidden;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    box-shadow: var(--theme-card-shadow, 0 12px 32px color-mix(in srgb, var(--theme-text, #0f172a) 6%, transparent));
    /* Yatay dengeli öne çıkan görsel — ana kolon içinde kontrollü yükseklik */
    aspect-ratio: 16 / 9;
}

.blog-article__featured img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.blog-article__featured--placeholder {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--theme-primary, #2563eb) 16%, var(--theme-surface-alt, #f1f5f9)) 0%,
        color-mix(in srgb, var(--theme-accent, #7c3aed) 12%, var(--theme-surface, #f8fafc)) 50%,
        color-mix(in srgb, var(--theme-secondary, #1e40af) 10%, var(--theme-surface-alt, #eef2ff)) 100%
    );
}

.blog-article__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: inherit;
    color: var(--theme-primary, #2563eb);
    font-size: clamp(2rem, 5vw, 3rem);
}

.blog-article__body {
    padding: 0;
    max-width: min(var(--layout-container-reading), 100%);
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--theme-text, var(--site-text, #0f172a));
}

.blog-article__body :where(h2, h3, h4) {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.25;
    color: var(--theme-text, var(--site-text, #0f172a));
}

.blog-article__body :where(h5) {
    margin-top: 1.3rem;
    margin-bottom: 0.6rem;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: 1rem;
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.35;
}

.blog-article__body :where(p, ul, ol) {
    margin-bottom: 1rem;
}

.blog-article__body :where(blockquote) {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--theme-primary, #2563eb);
    border-radius: 0 var(--theme-radius, 8px) var(--theme-radius, 8px) 0;
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 6%, var(--theme-surface-alt, #f8fafc));
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-article__body :where(img) {
    max-width: 100%;
    height: auto;
    border-radius: var(--theme-radius, 8px);
}

.blog-article__body :where(figure) {
    margin: 1rem 0;
}

.blog-article__body :where(figcaption) {
    margin-top: 0.45rem;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    font-size: 0.85rem;
}

.blog-article__body :where(pre) {
    overflow: auto;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: var(--theme-radius, 8px);
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    background: var(--theme-surface-alt, #f8fafc);
}

.blog-article__body :where(code) {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 8%, transparent);
    border-radius: var(--theme-radius, 8px);
    padding: 0.1rem 0.3rem;
}

.blog-article__body :where(pre code) {
    background: transparent;
    padding: 0;
}

.blog-article__body :where(video, iframe) {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: var(--theme-radius, 8px);
    aspect-ratio: 16 / 9;
}

.blog-article__body :where(hr) {
    border: 0;
    border-top: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    margin: 1.5rem 0;
}

.blog-article__body :where(.alert, .alert-warning, .alert-info, .alert-success, .alert-danger, .warning-box, .info-box, .success-box) {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: var(--theme-radius, 8px);
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    background: var(--theme-surface-alt, #f8fafc);
}

.blog-article__body :where(table) {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.92rem;
}

.blog-article__body :where(th, td) {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    text-align: left;
}

.blog-article__body :where(th) {
    background: var(--theme-surface-alt, #f8fafc);
}

.blog-article__footer {
    display: grid;
    gap: 1rem;
    padding: 0 clamp(1.15rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem);
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.blog-share__label {
    font-size: 0.8rem;
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.blog-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-primary, #2563eb) 4%, #fff));
    color: var(--theme-primary, #2563eb);
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.blog-share__link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 28%, var(--theme-border, #e2e8f0));
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, var(--theme-surface, #fff));
}

.blog-cta {
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    background: var(--theme-surface-alt, color-mix(in srgb, var(--theme-primary, #2563eb) 3%, #fff));
    display: grid;
    gap: 0.8rem;
}

.blog-cta__text {
    margin: 0;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.blog-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0 1rem;
    border-radius: var(--theme-radius, 8px);
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    text-decoration: none;
    color: var(--theme-text, var(--site-text, #0f172a));
    background: var(--theme-surface, #fff);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-cta__btn--primary {
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 30%, var(--theme-border, #e2e8f0));
    color: var(--theme-primary, #2563eb);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-tags__item {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    background: var(--theme-surface-alt, #f8fafc);
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    font-size: 0.78rem;
    font-weight: 600;
}

/* Adjacent posts */
/* Sidebar — premium arama + kategori paneli (tema token) */
.blog-sidebar {
    position: sticky;
    top: max(1rem, calc(var(--header-sticky-offset, 4.5rem) + 0.75rem));
    display: grid;
    gap: 1.15rem;
    align-self: start;
    width: 100%;
}

.blog-sidebar__search {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: var(--ds-control-height-lg, 3.25rem);
    border-radius: 999px;
    background: var(--theme-surface, #fff);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--theme-border, #e2e8f0) 88%, transparent),
        var(--theme-card-shadow, 0 8px 24px color-mix(in srgb, var(--theme-text, #0f172a) 5%, transparent));
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-sidebar__search:focus-within {
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--theme-primary, #2563eb) 45%, transparent),
        var(--ds-focus-ring);
}

.blog-sidebar__search input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: inherit;
    border: 0;
    border-radius: 0;
    padding: 0 0.85rem 0 1.15rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--theme-text, var(--site-text, #0f172a));
    background: transparent;
    outline: none;
}

.blog-sidebar__search input::placeholder {
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-sidebar__search button {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
    width: max(2.75rem, var(--ds-control-height, 2.75rem));
    height: max(2.75rem, var(--ds-control-height, 2.75rem));
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border: 0;
    border-radius: 999px;
    background: var(--theme-accent, var(--theme-primary, #2563eb));
    color: var(--theme-button-color, #fff);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.blog-sidebar__search button:hover,
.blog-sidebar__search button:focus-visible {
    background: var(--theme-primary, #2563eb);
    outline: none;
}

.blog-sidebar__search button:focus-visible {
    box-shadow: var(--ds-focus-ring);
}

.blog-sidebar__section {
    display: grid;
    gap: 0.85rem;
}

.blog-sidebar__section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0 0.15rem;
}

.blog-sidebar__section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    color: var(--theme-primary, #2563eb);
    font-size: 0.95rem;
    align-self: center;
}

.blog-sidebar__section-icon--dots {
    display: grid;
    grid-template-columns: repeat(2, 0.32rem);
    grid-template-rows: repeat(2, 0.32rem);
    gap: 0.2rem;
    place-content: center;
    align-self: center;
    width: 1.15rem;
    height: 1.15rem;
}

.blog-sidebar__section-icon--dots span {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 999px;
    background: var(--theme-primary, #2563eb);
}

.blog-sidebar__panel {
    padding: 0.85rem 1.05rem 1rem;
    border: 1px solid color-mix(in srgb, var(--theme-border, #e2e8f0) 90%, transparent);
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 6px));
    background: var(--theme-card-bg, var(--theme-surface, #fff));
    box-shadow: var(--theme-card-shadow, 0 10px 28px color-mix(in srgb, var(--theme-text, #0f172a) 5%, transparent));
}

.blog-sidebar__title {
    margin: 0;
    display: block;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: clamp(1.05rem, 0.35vw + 1rem, 1.2rem);
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--theme-text, var(--site-text, #0f172a));
}

.blog-sidebar__list,
.blog-sidebar__posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-sidebar__list li + li,
.blog-sidebar__posts li + li {
    margin-top: 0.15rem;
}

.blog-sidebar__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem 0.55rem 0.35rem;
    border-radius: var(--theme-radius, 8px);
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.15s ease, background 0.15s ease;
}

.blog-sidebar__link::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 55%, var(--theme-border, #e2e8f0));
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.blog-sidebar__link:hover,
.blog-sidebar__link:focus-visible {
    color: var(--theme-primary, #2563eb);
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 7%, transparent);
    outline: none;
}

.blog-sidebar__link:hover::before,
.blog-sidebar__link:focus-visible::before,
.blog-sidebar__link.is-active::before {
    background: var(--theme-primary, #2563eb);
    transform: scale(1.15);
}

.blog-sidebar__link.is-active {
    color: var(--theme-primary, #2563eb);
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 10%, transparent);
    font-weight: 600;
}

.blog-sidebar__post-link {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.15rem;
    border-top: 1px solid color-mix(in srgb, var(--theme-border, #e2e8f0) 85%, transparent);
    text-decoration: none;
    color: inherit;
    border-radius: var(--theme-radius, 8px);
    transition: background 0.15s ease;
}

.blog-sidebar__posts li:first-child .blog-sidebar__post-link {
    border-top: 0;
    padding-top: 0.15rem;
}

.blog-sidebar__post-link:hover,
.blog-sidebar__post-link:focus-visible {
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 6%, transparent);
    outline: none;
}

.blog-sidebar__post-title {
    font-size: 0.9rem;
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.4;
    color: var(--theme-text, var(--site-text, #0f172a));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-sidebar__post-link time {
    font-size: 0.75rem;
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
}

.blog-sidebar__tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.blog-sidebar__tag {
    display: inline-flex;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border, var(--site-border, #e2e8f0));
    color: var(--theme-text-muted, var(--site-text-muted, #64748b));
    font-size: 0.78rem;
}

@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
        top: auto;
    }
}

/* Related — büyük merkez görsel sahnesi */
.related-blogs {
    margin-top: clamp(2.75rem, 5vw, 4.5rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    overflow-x: clip;
}

.related-wrapper {
    width: var(--layout-container-wide);
    max-width: var(--layout-container-wide);
    margin-inline: auto;
}

.related-heading {
    margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
    max-width: min(40rem, 100%);
    text-align: center;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.25;
    color: var(--theme-text, var(--site-text, #0f172a));
    font-weight: var(--theme-heading-weight, 300);
    text-wrap: balance;
}

.related-carousel {
    position: relative;
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 1.85rem);
    overflow-x: clip;
}

.related-stage {
    position: relative;
    width: min(100%, 50rem);
    margin-inline: auto;
    overflow: visible;
}

.related-track {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 4;
    max-height: min(28rem, 52vw);
}

.related-slide {
    position: absolute;
    inset: 0 auto auto 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    transition:
        transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 600ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.related-slide.prev,
.related-slide.next {
    opacity: 0.2;
    transform: translateX(-50%) scale(0.9);
    z-index: 1;
    filter: saturate(0.7) brightness(0.92);
    pointer-events: auto;
}

.related-slide.prev {
    left: 8%;
}

.related-slide.next {
    left: 92%;
}

.related-slide.active {
    left: 50%;
    z-index: 3;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: none;
    box-shadow: var(--theme-card-shadow-hover, 0 24px 56px color-mix(in srgb, var(--theme-text, #0f172a) 14%, transparent));
}

.related-slide.active:hover {
    transform: translateX(-50%) scale(1.02);
    z-index: 4;
}

.related-slide:not(.active) .slide-info {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.related-slide .image-field {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--theme-surface-alt, #f8fafc);
    border-radius: inherit;
}

.related-slide .image-field img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.related-slide.active:hover .image-field img {
    transform: scale(1.04);
}

.related-slide .image-field__gradient {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 48%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb, var(--theme-text, #0f172a) 12%, transparent) 40%,
        color-mix(in srgb, var(--theme-text, #0f172a) 68%, transparent) 100%
    );
}

.related-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary, #2563eb);
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 8%, var(--theme-surface, #fff));
}

.related-slide .slide-info {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.2vw, 1.35rem);
}

.related-slide .slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 500;
    color: color-mix(in srgb, var(--theme-surface, #fff) 90%, transparent);
}

.related-slide .slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.related-caption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    width: min(100%, 50rem);
    margin-inline: auto;
}

.related-caption__title {
    margin: 0;
    text-align: center;
    font-family: var(--theme-heading-font, var(--theme-font, inherit));
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: var(--theme-heading-weight, 300);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--theme-text, var(--site-text, #0f172a));
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.related-caption__title.is-fading {
    opacity: 0;
    transform: translateY(0.2rem);
}

.related-caption:not(:has(.carousel-btn)),
.related-caption--solo {
    grid-template-columns: minmax(0, 1fr);
}

.carousel-btn {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.25rem, 4.5vw, 4.25rem);
    height: clamp(3.25rem, 4.5vw, 4.25rem);
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid color-mix(in srgb, var(--theme-border, #e2e8f0) 88%, transparent);
    border-radius: 999px;
    background: var(--theme-surface, #fff);
    color: var(--theme-text, var(--site-text, #0f172a));
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--theme-card-shadow, 0 12px 32px color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
    transition:
        transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 500ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 500ms cubic-bezier(0.16, 1, 0.3, 1),
        background 500ms cubic-bezier(0.16, 1, 0.3, 1),
        color 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-btn i {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-btn:hover {
    transform: scale(1.05);
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 35%, var(--theme-border, #e2e8f0));
    background: var(--theme-card-bg-hover, var(--theme-surface, #fff));
    color: var(--theme-primary, #2563eb);
}

.carousel-btn--prev:hover i {
    transform: translateX(-2px);
}

.carousel-btn--next:hover i {
    transform: translateX(2px);
}

.carousel-btn:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring);
}

.carousel-btn:disabled,
.carousel-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn--prev,
.carousel-btn--next {
    left: auto;
    right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-detail__layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-detail__main {
        order: 1;
    }

    .related-stage {
        width: min(100%, 42rem);
    }

    .related-slide.prev {
        left: 6%;
    }

    .related-slide.next {
        left: 94%;
    }

    .related-slide.prev,
    .related-slide.next {
        opacity: 0.18;
        transform: translateX(-50%) scale(0.88);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-block: clamp(1.15rem, 3vw, 1.9rem) clamp(1.2rem, 3vw, 1.8rem);
    }

    .blog-filter__inner {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .blog-category-dropdown,
    .blog-category-dropdown__button {
        width: 100%;
        max-width: 100%;
    }

    .blog-search {
        width: 100%;
        max-width: 100%;
        height: var(--ds-control-height-lg, 3rem);
        min-height: var(--ds-control-height-lg, 3rem);
        max-height: var(--ds-control-height-lg, 3rem);
        border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
        background: var(--theme-surface, #fff);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-border, #e2e8f0) 72%, transparent);
    }

    .blog-category-dropdown__button {
        height: var(--ds-control-height-lg, 3rem);
        border-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    }

    .blog-search input {
        height: 100%;
        padding: 0 3rem 0 var(--ds-control-pad-x, 1rem);
        font-size: 0.9375rem;
        border-radius: inherit;
    }

    .blog-search button {
        width: 2.15rem;
        height: 2.15rem;
        right: 0.375rem;
        border-radius: var(--theme-button-radius, var(--theme-radius, 8px));
        box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary, #2563eb) 22%, transparent);
    }

    .blog-search button:hover {
        transform: translateY(-50%);
    }

    .blog-category-dropdown__button {
        min-width: 0;
        padding-inline: var(--ds-control-pad-x, 1rem);
        font-size: 0.9375rem;
    }

    .blog-category-dropdown__menu {
        left: 0;
        transform: translateY(1.25rem);
        min-width: 100%;
    }

    .blog-category-dropdown.is-active .blog-category-dropdown__menu {
        transform: translateY(0);
    }

    .blog-grid {
        gap: clamp(1.25rem, 3vw, 1.75rem);
    }

    .blog-card {
        padding: 1.25rem;
    }

    .blog-card__meta {
        gap: 0.5rem 0.85rem;
        font-size: 0.8125rem;
    }

    .related-stage {
        width: 100%;
    }

    .related-track {
        max-height: none;
        aspect-ratio: 7 / 4;
    }

    .related-slide,
    .related-slide.active {
        width: 100%;
    }

    .related-slide.prev,
    .related-slide.next,
    .related-slide:not(.active):not(.prev):not(.next) {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .related-slide.active:hover {
        transform: translateX(-50%) scale(1);
    }

    .related-caption {
        width: 100%;
        gap: 0.75rem;
    }

    .carousel-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .related-slide .slide-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.75rem;
    }
}

@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-hero--list .blog-hero__title {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }

    .blog-hero--detail .blog-hero__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .blog-page__container {
        padding-block: var(--page-content-start-space, clamp(1rem, 3vw, 1.4rem)) clamp(1.5rem, 4vw, 2.25rem);
    }

    .related-caption__title {
        font-size: clamp(0.98rem, 4.2vw, 1.15rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-slide,
    .carousel-btn,
    .carousel-btn i,
    .related-slide .image-field img,
    .related-caption__title {
        transition: none;
    }

    .related-caption__title.is-fading {
        opacity: 1;
        transform: none;
    }

    .related-slide.active:hover {
        transform: translateX(-50%) scale(1);
    }

    .related-slide.active:hover .image-field img {
        transform: none;
    }
}

