/**
 * Referans liste — koyu ajans portfolio düzeni
 */
.refs-page {
    --refs-bg: var(--theme-bg, #f5f8f8);
    --refs-bg-soft: color-mix(in srgb, var(--theme-card-bg, var(--theme-bg, #f5f8f8)) 78%, transparent);
    --refs-ink: var(--theme-text, #0f172a);
    --refs-muted: var(--theme-text-muted, rgba(15, 23, 42, 0.58));
    --refs-border: var(--theme-border, rgba(15, 23, 42, 0.1));
    --refs-accent: var(--theme-primary, #2563eb);
    --refs-radius: var(--theme-card-radius, calc(var(--theme-radius, 8px) + 4px));
    background: var(--theme-bg, #f5f8f8);
    color: var(--refs-ink);
    overflow-x: clip;
    padding-bottom: var(--ds-section-y-lg);
}

.refs-page__wrap {
    width: var(--layout-container-wide);
    margin-inline: auto;
    background: transparent;
}

/* Başlık — tam genişlik, ana zeminle bütün */
.refs-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    text-align: center;
    padding: var(--ds-hero-pad-y, var(--page-header-hero-pad, clamp(1.6rem, 3.2vw, 2.6rem))) 0 clamp(1.4rem, 3vw, 2.3rem);
    background: transparent;
    border-bottom: 0;
}

.refs-hero__inner {
    position: relative;
    z-index: 2;
    width: var(--layout-container-wide);
    margin-inline: auto;
}

.refs-hero__pattern {
    display: none;
}

.refs-hero__breadcrumb {
    position: relative;
    z-index: 1;
}

.refs-hero__title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

.refs-hero__desc {
    position: relative;
    z-index: 1;
    max-width: 58ch;
    margin: 0.85rem auto 0;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.58);
}

.refs-hero .page-breadcrumb__current {
    color: #0f172a;
}

.refs-hero .page-breadcrumb__link {
    color: rgba(15, 23, 42, 0.58);
}

.refs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: var(--refs-muted);
}

.refs-breadcrumb a {
    color: var(--refs-muted);
    text-decoration: none;
}

.refs-breadcrumb a:hover {
    color: var(--refs-ink);
}

/* Mobil filtre — yatay pill */
.refs-filter-toggle {
    display: none;
}

.refs-filter {
    display: none;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.refs-filter__item {
    flex: 0 0 auto;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--refs-border);
    background: var(--refs-bg-soft);
    color: var(--refs-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.refs-filter__item.is-active,
.refs-filter__item:hover {
    background: var(--ref-button-bg, var(--ref-accent, var(--refs-accent)));
    border-color: var(--ref-button-bg, var(--ref-accent, var(--refs-accent)));
    color: var(--ref-button-text, #fff);
}

/* Layout */
.refs-layout {
    display: grid;
    grid-template-columns: min(320px, 28vw) minmax(0, 1fr);
    gap: var(--ds-stack);
    align-items: start;
    background: transparent;
    padding-top: var(--page-content-start-space, clamp(1.25rem, 3vw, 2rem));
}

.refs-layout--full {
    grid-template-columns: minmax(0, 1fr);
}

/* Sidebar */
.refs-sidebar {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1.25rem);
}

.refs-sidebar__inner {
    padding: 1.35rem 1rem;
    border-radius: var(--refs-radius);
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border: 1px solid var(--theme-card-border, var(--theme-border, #dbe5e8));
    box-shadow: var(--theme-card-shadow, 0 16px 48px color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
}

.refs-sidebar__title {
    margin: 0 0 1rem;
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(15, 23, 42, 0.58);
}

.refs-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.refs-sidebar__link {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: var(--refs-radius);
    color: rgba(15, 23, 42, 0.7);
    background: transparent;
    overflow: hidden;
    transform: none;
    text-decoration: none;
    transition: color 0.25s ease;
}

.refs-sidebar__hover {
    display: none !important;
}

.refs-sidebar__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent)),
        color-mix(in srgb, var(--theme-card-bg, var(--theme-bg, #f5f8f8)) 6%, transparent)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.refs-sidebar__link::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--theme-primary, #2563eb);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.refs-sidebar__link:hover::before,
.refs-sidebar__link.is-active::before {
    opacity: 1;
}

.refs-sidebar__link:hover::after,
.refs-sidebar__link.is-active::after {
    opacity: 1;
}

.refs-sidebar__link:hover,
.refs-sidebar__link.is-active {
    color: #0f172a;
}

.refs-sidebar__icon,
.refs-sidebar__text,
.refs-sidebar__count {
    position: relative;
    z-index: 2;
}

.refs-sidebar__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--theme-radius, 8px);
    display: grid;
    place-items: center;
    color: #7da2ff;
    background: var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
    font-size: 0.9rem;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow: hidden;
}

.refs-sidebar__icon-img {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
}

.refs-filter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
    vertical-align: -0.1em;
}

.refs-filter__icon .refs-sidebar__icon-img,
.refs-filter__icon img {
    width: 0.95rem;
    height: 0.95rem;
    object-fit: contain;
}

.refs-filter__icon i {
    font-size: 0.85rem;
}

.refs-sidebar__text {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

.refs-sidebar__link.is-active .refs-sidebar__icon {
    color: #fff;
    background: var(--theme-primary, #2563eb);
}

.refs-sidebar__count {
    min-width: 25px;
    height: 24px;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
    color: #2563eb;
}

/* Liste */
.refs-list {
    background: transparent;
}

.refs-list__items {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* Kart */
.refs-card {
    position: relative;
    border-radius: var(--theme-card-radius, var(--refs-radius, 18px));
    cursor: pointer;
    color: var(--theme-text, #0f172a);
    background: transparent;
}

.refs-card__bg {
    display: none;
}

.refs-card__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
    min-height: clamp(380px, 32vw, 480px);
    padding: var(--ds-gap-md);
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border: 1px solid var(--theme-card-border, var(--theme-border, #dbe5e8));
    border-radius: var(--theme-card-radius, var(--refs-radius, 18px));
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.refs-card:hover .refs-card__inner,
.refs-card:has(.refs-card__main-link:focus-visible) .refs-card__inner {
    border-color: var(--theme-card-border, var(--theme-border, #dbe5e8));
    box-shadow: var(--theme-card-shadow-hover, 0 28px 64px color-mix(in srgb, var(--theme-text, #0f172a) 10%, transparent));
}

.refs-card__main-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    text-decoration: none;
    color: inherit;
}

.refs-card__main-link:focus-visible {
    outline: 2px solid var(--ref-accent, var(--refs-accent));
    outline-offset: 3px;
}

.refs-card:hover .refs-card__title,
.refs-card:has(.refs-card__main-link:focus-visible) .refs-card__title {
    color: #0f172a;
}

.refs-card__content-panel {
    position: relative;
    z-index: 5;
    width: min(100%, 520px);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    padding: var(--ds-gap-md);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

.refs-card__media {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(300px, 28vw, 420px);
    padding: 0.5rem;
    margin-left: clamp(-0.5rem, -1.5vw, -1rem);
    z-index: 1;
    background: transparent;
    pointer-events: none;
}

.refs-card__cover {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--theme-radius, 8px);
}

.refs-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 240px;
    color: rgba(15, 23, 42, 0.12);
    font-size: 2.5rem;
}

.refs-card__content {
    position: relative;
    z-index: 5;
    min-width: 0;
    pointer-events: none;
}

.refs-card__title {
    margin: 0.15rem 0 0;
    max-width: 16ch;
    color: #111827;
    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: var(--theme-heading-weight, 300);
    text-wrap: balance;
    transition: color 0.2s ease;
}

.refs-card__logo {
    width: fit-content;
    max-width: 140px;
    max-height: 44px;
    object-fit: contain;
    opacity: 0.92;
}

.refs-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.refs-card__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.refs-card__tag-hash {
    color: var(--ref-button-bg, var(--ref-accent, var(--refs-accent, #2563eb)));
}

.refs-card__tag-text {
    color: rgba(15, 23, 42, 0.64);
    font-weight: 600;
}

.refs-card__desc {
    margin: 0;
    max-width: 520px;
    color: rgba(15, 23, 42, 0.64);
    font-size: 0.98rem;
    line-height: 1.75;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.refs-card__actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    position: relative;
    z-index: 30;
    pointer-events: auto;
}

/* SSOT: refs-card içindeki dolu buton yalnızca --ref-button-bg kullanır.
   PHP her zaman emit eder (tema rengi fallback YOKTUR). */
.refs-card__actions .ref-circle-btn--filled {
    background: var(--ref-button-bg, #3b82f6);
    color: var(--ref-button-text, #fff);
}

.refs-card__actions .ref-circle-btn--filled:hover,
.refs-card__actions .ref-circle-btn--filled:focus-visible {
    background: color-mix(in srgb, var(--ref-button-bg, #3b82f6) 85%, #000);
    color: var(--ref-button-text, #fff);
}

.refs-card__actions .ref-circle-btn--filled span,
.refs-card__actions .ref-circle-btn--filled span i {
    color: var(--ref-button-text, #fff) !important;
}

.refs-card__actions .ref-circle-btn--filled > i {
    background: color-mix(in srgb, var(--ref-button-bg, #3b82f6) 80%, #000);
}

.refs-card__actions .ref-circle-btn--outline:not(:hover):not(:focus-visible) {
    border-color: rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

.refs-card__actions .ref-circle-btn--outline:not(:hover):not(:focus-visible) span,
.refs-card__actions .ref-circle-btn--outline:not(:hover):not(:focus-visible) span i {
    color: #0f172a;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Empty & pagination */
.refs-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--theme-card-radius, var(--refs-radius, 18px));
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border: 1px dashed var(--theme-border, rgba(15, 23, 42, 0.12));
    color: var(--refs-muted);
    box-shadow: var(--theme-card-shadow, 0 16px 48px color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
}

.refs-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.refs-empty h2 {
    margin: 0 0 0.5rem;
    color: var(--refs-ink);
    font-size: 1.2rem;
}

.refs-empty p {
    margin: 0 0 1rem;
}

.refs-empty--opportunity {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    min-height: 22rem;
    align-content: center;
    padding: clamp(2.5rem, 7vw, 5rem);
    border: 1px solid color-mix(in srgb, var(--refs-accent) 24%, var(--theme-border, #dbe5e8));
    background:
        radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--refs-accent) 13%, transparent), transparent 32%),
        var(--theme-card-bg, #fff);
}

.refs-empty__icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 1.25rem;
    color: var(--refs-accent);
    background: color-mix(in srgb, var(--refs-accent) 11%, var(--theme-card-bg, #fff));
    animation: refs-empty-float 3.6s ease-in-out infinite;
}

.refs-empty__icon i { margin: 0; opacity: 1; }
.refs-empty__eyebrow { margin-bottom: .5rem !important; color: var(--refs-accent); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.refs-empty--opportunity h2 { max-width: 20ch; font-size: clamp(1.65rem, 4vw, 2.5rem); font-weight: var(--theme-heading-weight, 400); letter-spacing: -.03em; }
.refs-empty--opportunity > p:not(.refs-empty__eyebrow) { max-width: 38rem; line-height: 1.7; }
.refs-empty--opportunity .ref-circle-btn span { align-items: center; }
.refs-empty--opportunity .ref-circle-btn span i { display: inline-flex; margin: 0; font-size: .95em; line-height: 1; }
.refs-empty--opportunity .ref-circle-btn--filled {
    --ref-button-bg: var(--theme-button-bg, var(--theme-primary, #159f91));
    --ref-button-text: var(--theme-button-color, var(--theme-on-primary, #fff));
    background: var(--ref-button-bg);
    color: var(--ref-button-text);
}
.refs-empty--opportunity .ref-circle-btn--filled:hover,
.refs-empty--opportunity .ref-circle-btn--filled:focus-visible {
    --ref-button-bg: var(--theme-button-hover-bg, var(--theme-secondary, var(--theme-primary, #159f91)));
    background: var(--ref-button-bg);
    color: var(--theme-button-hover-color, var(--ref-button-text));
}

@keyframes refs-empty-float { 50% { transform: translateY(-.45rem) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
    .refs-empty__icon { animation: none; }
}

.refs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--ds-gap-sm, 0.65rem);
    margin-top: var(--ds-stack-lg, 2.5rem);
}

/* Pagination nav — Tema Özelleştirme (SSOT); sabit hex yok */
.refs-pagination .ref-circle-btn,
.refs-pagination .refs-pagination__nav.ref-circle-btn {
    min-width: 7.5rem;
    height: var(--ds-control-height, 48px);
    padding: 0 var(--ds-control-pad-x, 1.25rem);
    font-size: 0.8125rem;
    background: var(--theme-button-bg, var(--theme-primary));
    color: var(--theme-button-color, var(--theme-on-primary));
    border: 1px solid var(--theme-button-border, transparent);
    box-shadow: var(--theme-button-shadow, none);
}

.refs-pagination .ref-circle-btn:hover,
.refs-pagination .ref-circle-btn:focus-visible,
.refs-pagination .refs-pagination__nav.ref-circle-btn:hover,
.refs-pagination .refs-pagination__nav.ref-circle-btn:focus-visible {
    background: var(--theme-button-hover-bg, var(--theme-secondary, var(--theme-primary)));
    color: var(--theme-button-hover-color, var(--theme-button-color, var(--theme-on-primary)));
    border-color: var(--theme-button-border, transparent);
}

.refs-pagination .ref-circle-btn span,
.refs-pagination .ref-circle-btn span i {
    color: inherit;
}

.refs-pagination .ref-circle-btn > i {
    background: var(--theme-button-hover-bg, var(--theme-secondary, var(--theme-primary)));
}

.refs-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.refs-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.65rem;
    border-radius: var(--theme-button-radius, var(--theme-radius));
    border: 1px solid var(--theme-border);
    background: var(--theme-surface, var(--theme-card-bg));
    color: var(--theme-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.refs-pagination__page:hover {
    border-color: color-mix(in srgb, var(--theme-primary) 45%, var(--theme-border));
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 6%, var(--theme-surface, var(--theme-card-bg)));
}

.refs-pagination__page:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring);
}

.refs-pagination__page--current {
    background: var(--theme-button-bg, var(--theme-primary));
    border-color: var(--theme-button-bg, var(--theme-primary));
    color: var(--theme-button-color, var(--theme-on-primary));
    pointer-events: none;
}

.refs-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: var(--theme-text-muted);
}

.refs-pagination__nav--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    height: var(--ds-control-height, 48px);
    padding: 0 var(--ds-control-pad-x, 1.25rem);
    border-radius: var(--theme-button-radius, var(--theme-radius));
    border: 1px solid color-mix(in srgb, var(--theme-border) 70%, transparent);
    color: var(--theme-text-muted);
    font-size: 0.8125rem;
    opacity: 0.55;
}

/* SSS — site zeminiyle bütün */
.refs-faq {
    position: relative;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.refs-faq__bg {
    display: none;
}

.refs-faq__wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--ds-stack);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    align-items: center;
    border-radius: var(--theme-card-radius, var(--refs-radius, 18px));
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border: 1px solid var(--theme-card-border, var(--theme-border, #dbe5e8));
    box-shadow: var(--theme-card-shadow-hover, 0 28px 64px color-mix(in srgb, var(--theme-text, #0f172a) 10%, transparent));
}

.refs-faq__visual {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refs-faq__orb {
    display: none;
}

.refs-faq__grid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: min(100%, 320px);
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: calc(var(--refs-radius) + 4px);
    border: 1px solid var(--theme-card-border, var(--theme-border, rgba(15, 23, 42, 0.1)));
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 4%, var(--theme-card-bg, var(--theme-bg, #f5f8f8)));
    box-shadow: var(--theme-card-shadow, 0 16px 48px color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent));
    text-align: center;
}

.refs-faq__icon-wrap {
    position: relative;
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    display: grid;
    place-items: center;
    animation: refs-faq-icon-float 8s ease-in-out infinite;
}

.refs-faq__icon-glow {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--theme-overlay-soft, color-mix(in srgb, var(--theme-text, #0f172a) 8%, transparent)) 0%, transparent 68%);
    filter: blur(8px);
    opacity: 0.7;
}

.refs-faq__icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--theme-card-border, var(--theme-border, rgba(15, 23, 42, 0.12)));
    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, #0f172a) 8%, transparent));
}

.refs-faq__icon-svg {
    position: relative;
    z-index: 1;
    width: 52%;
    height: 52%;
    color: #2563eb;
    filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--theme-text, #0f172a) 12%, transparent));
}

.refs-faq__icon-label {
    margin: 0.15rem 0 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: -0.02em;
    color: #0f172a;
}

.refs-faq__icon-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

@keyframes refs-faq-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes refs-faq-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.refs-faq__content {
    min-width: 0;
}

.refs-faq__heading {
    margin: 0 0 0.45rem;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: var(--theme-heading-weight, 300);
    letter-spacing: -0.02em;
    color: #0f172a;
}

.refs-faq__lead {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 52ch;
}

.refs-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.refs-faq__item {
    border-radius: var(--refs-radius);
    background: var(--theme-card-bg, var(--theme-bg, #f5f8f8));
    border: 1px solid var(--theme-card-border, var(--theme-border, rgba(15, 23, 42, 0.1)));
    overflow: hidden;
}

.refs-faq__item.is-open {
    background: color-mix(in srgb, var(--theme-primary, #2563eb) 4%, var(--theme-card-bg, var(--theme-bg, #f5f8f8)));
    border-color: color-mix(in srgb, var(--theme-primary, #2563eb) 18%, var(--theme-card-border, var(--theme-border, rgba(15, 23, 42, 0.1))));
}

.refs-faq__question {
    margin: 0;
}

.refs-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.refs-faq__icon {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #2563eb;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.refs-faq__item.is-open .refs-faq__icon {
    transform: rotate(180deg);
}

.refs-faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.refs-faq__item.is-open .refs-faq__answer {
    grid-template-rows: 1fr;
}

.refs-faq__answer[hidden] {
    display: none;
}

.refs-faq__item.is-open .refs-faq__answer[hidden] {
    display: grid;
}

.refs-faq__answer-inner {
    overflow: hidden;
    padding: 0 1.1rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

.refs-faq__item.is-open .refs-faq__answer-inner {
    padding-bottom: 1rem;
}

.refs-faq__answer-inner p {
    margin: 0 0 0.65rem;
}

.refs-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Progressive Responsive Thresholds:
   > 1020px: Masaüstü (sidebar + 2 sütunlu kart)
   761px–1020px: Tablet (yatay kategori hapları + 2 sütunlu kart)
   <= 760px: Mobil Kart (1 sütunlu dikey kart akışı)
   <= 430px: Küçük Mobil (tam genişlik CTA düzeni)
   ========================================================================== */

/* Masaüstü (> 1020px): Sidebar aktif, yatay filtre kapalı, 2 sütunlu kart */
@media (min-width: 1021px) {
    .refs-filter-toggle,
    .refs-filter {
        display: none !important;
    }

    .refs-card__media {
        margin-left: 0;
    }
}

/* Tablet & Mobil (<= 1020px): Sidebar gizlenir, yatay kategori listesi açılır */
@media (max-width: 1020px) {
    .refs-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .refs-sidebar {
        display: none;
    }

    .refs-filter {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--ds-gap-sm, 0.5rem);
        margin-bottom: 1rem;
        margin-inline: calc(var(--ds-gutter, 1rem) * -0.15);
        padding-inline: calc(var(--ds-gutter, 1rem) * 0.15);
        padding-bottom: 0.125rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .refs-filter::-webkit-scrollbar {
        display: none;
    }

    .refs-filter__item {
        scroll-snap-align: start;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        height: 2.75rem;
        padding: 0 1rem;
        white-space: nowrap;
        font-size: 0.8125rem;
    }

    /* 761px-1020px arasında kart 2 sütunlu kalır, butonlar satırda esnek sarılır */
    .refs-card__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--ds-gap-sm, 0.5rem);
    }

    .refs-faq__wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .refs-faq__visual {
        min-height: auto;
        padding-bottom: 0.5rem;
    }

    .refs-faq__orb {
        display: none;
    }

    .refs-faq__grid {
        width: min(100%, 280px);
    }
}

/* Mobil Kart Akışı (<= 760px): Kart tek sütuna iner, görsel üstte, içerik altta */
@media (max-width: 760px) {
    .refs-card__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .refs-card__media {
        min-height: 240px;
    }

    .refs-card__content-panel {
        width: 100%;
        min-height: auto;
        padding: 1.25rem;
    }

    .refs-card__title {
        max-width: 100%;
    }
}

/* Küçük Mobil (<= 430px): CTA butonları tam genişlik dokunmatik hedefe dönüşür */
@media (max-width: 430px) {
    .refs-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ref-circle-btn {
        width: 100%;
    }

    .refs-filter__item {
        min-height: 2.5rem;
        height: 2.5rem;
        padding: 0 0.85rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-circle-btn,
    .refs-sidebar__link::before,
    .refs-sidebar__link::after,
    .refs-filter__item,
    .refs-faq__orb,
    .refs-faq__icon-wrap {
        transition: none;
        animation: none;
    }
}
