/* ==========================================================================
   SİTE TEMASI — yeni public tasarım dili (PROTOTİP)
   --------------------------------------------------------------------------
   Yükleyen: layouts/site_layout.php → head.php (siteTema modu).
   Bu sayfalarda Bootstrap / AdminLTE / FontAwesome YÜKLENMEZ; bu dosya kendi
   sade temelini (reset, tipografi, düzen) getirir. Bütün sınıflar "cy-"
   önekli: ileride eski sayfalarla aynı anda yüklense bile Bootstrap
   sınıflarıyla (.btn, .container, .nav-link…) çakışmaz.

   Renkler logodan türetildi: kraliyet mavisi #005BBB ve koyu lacivert.
   Kontrast oranları beyaz zemin üzerinde ölçüldü (WCAG AA ≥ 4.5:1).

   1) Tokenlar  2) Temel  3) Düzen  4) Bölüm başlıkları  5) Buton ve bağlantı
   6) Başlık (header)  7) Alt bilgi (footer)  8) Uyum katmanları  9) İç sayfa bileşenleri
   10) Terminal penceresi
   ========================================================================== */

/* 1) TOKENLAR ------------------------------------------------------------- */
:root {
    --cy-primary: #005bbb;          /* logo mavisi — beyaz üzerinde 6.5:1 */
    --cy-primary-hover: #004a99;
    --cy-primary-soft: #ebf3fd;
    --cy-primary-line: #cfe0f7;
    --cy-ink: #0b1726;              /* başlıklar */
    --cy-text: #3a4a5c;             /* gövde metni */
    --cy-muted: #5b6b7d;            /* ikincil metin — beyaz üzerinde 5.4:1 */
    --cy-line: #e3e8ef;
    --cy-line-strong: #cfd8e3;
    --cy-bg: #ffffff;
    --cy-bg-soft: #f6f8fb;
    --cy-navy: #071a2d;             /* logonun koyu tonu — koyu bantlar */
    --cy-on-navy: #eaf1f9;
    --cy-on-navy-muted: #a9bacd;    /* lacivert üzerinde 8.8:1 */
    --cy-accent-on-navy: #8cc0ff;   /* lacivert üzerinde 9.3:1 */

    --cy-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --cy-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --cy-radius: 12px;
    --cy-radius-lg: 18px;
    --cy-shadow-sm: 0 1px 2px rgba(11, 23, 38, .05);
    --cy-shadow: 0 1px 2px rgba(11, 23, 38, .04), 0 10px 28px rgba(11, 23, 38, .07);
    --cy-shadow-lg: 0 2px 6px rgba(11, 23, 38, .04), 0 24px 56px rgba(11, 23, 38, .10);
    --cy-ease: cubic-bezier(.2, .7, .2, 1);

    --cy-container: 1200px;
    --cy-gutter: 16px;
    --cy-header-h: 64px;

    /* Boşluk sistemi — bütün public sayfalar bu dört değerden beslenir.
       Bölüm: mobilde 40px, masaüstünde en fazla 72px (eskiden 100px'i
       geçiyordu, site "havada" duruyordu). Kart içi 18/24px, kartlar arası
       12/16px, bölüm başlığı ile içerik arası 24/32px. */
    --cy-section-y: clamp(40px, 6vw, 72px);
    --cy-page-hero-y: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    --cy-card-pad: 18px;
    --cy-card-gap: 12px;
    --cy-head-gap: 24px;
}

@media (min-width: 768px) {
    :root { --cy-gutter: 24px; --cy-card-pad: 24px; --cy-card-gap: 16px; --cy-head-gap: 32px; }
}

/* Masaüstü menü eşiği — assets/js/site-tema.js'teki MASAUSTU ile aynı olmalı */
@media (min-width: 1200px) {
    :root { --cy-gutter: 32px; --cy-header-h: 72px; }
}

/* 2) TEMEL ---------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Çapa bağlantıları yapışkan başlığın altında kalmasın */
    scroll-padding-top: calc(var(--cy-header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.cy-site {
    margin: 0;
    min-height: 100vh;
    background: var(--cy-bg);
    color: var(--cy-text);
    font-family: var(--cy-font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.cy-site *,
.cy-site *::before,
.cy-site *::after { box-sizing: border-box; }

/* :where() özgüllüğü sıfırdır — bileşen sınıfları bunları rahatça ezer */
.cy-site :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.cy-site :where(ul, ol) { padding: 0; list-style: none; }
.cy-site :where(h1, h2, h3, h4) {
    color: var(--cy-ink);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.cy-site :where(p, li, dd) { text-wrap: pretty; }
.cy-site :where(img) { display: block; max-width: 100%; height: auto; }
.cy-site :where(a) { color: var(--cy-primary); text-decoration: none; }
.cy-site :where(button) { font: inherit; }
.cy-site main:focus { outline: none; }
/* hidden özniteliği her zaman kazanır: bileşenlerin display: grid/flex kuralları onu
   ezip gizli olması gereken yanıt formlarını, ipuçlarını görünür yapıyordu */
.cy-site [hidden] { display: none !important; }
.cy-site ::selection { background: #cfe3fb; color: var(--cy-ink); }

.cy-site :focus-visible { outline: 2px solid var(--cy-primary); outline-offset: 3px; }

.cy-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cy-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.cy-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cy-skip {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 1100;
    padding: .625rem 1rem;
    border-radius: 8px;
    background: var(--cy-ink);
    color: #fff;
    font-weight: 600;
}
.cy-skip:focus { top: 12px; color: #fff; }

/* 3) DÜZEN ---------------------------------------------------------------- */
.cy-container {
    width: 100%;
    max-width: calc(var(--cy-container) + 2 * var(--cy-gutter));
    margin-inline: auto;
    padding-inline: var(--cy-gutter);
}

.cy-section { padding-block: var(--cy-section-y); }
.cy-section--soft { background: var(--cy-bg-soft); }
.cy-section--navy { background: var(--cy-navy); color: var(--cy-on-navy-muted); }
.cy-section--navy :where(h2, h3, h4) { color: #fff; }
.cy-section--navy :focus-visible { outline-color: var(--cy-accent-on-navy); }

/* Aynı zeminde art arda iki bölüm: aradaki çift boşluk teke iner
   (ikinci bölümün üst boşluğu, birincinin alt boşluğuyla zaten karşılanıyor) */
.cy-section:not(.cy-section--soft, .cy-section--navy) + .cy-section:not(.cy-section--soft, .cy-section--navy),
.cy-section--soft + .cy-section--soft,
.cy-section--navy + .cy-section--navy { padding-top: 0; }

/* Footer'ın hemen üstündeki çağrı kutusu: kendi bölüm boşluğu yok, footer'a yakın durur */
.cy-section--cta { padding-block: clamp(24px, 3vw, 40px); }

/* 4) BÖLÜM BAŞLIKLARI ----------------------------------------------------- */
.cy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1rem;
    color: var(--cy-primary);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.cy-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.cy-section--navy .cy-eyebrow { color: var(--cy-accent-on-navy); }

.cy-section__head {
    max-width: 720px;
    margin-bottom: var(--cy-head-gap);
}
.cy-section__head--center { margin-inline: auto; text-align: center; }
.cy-section__head--split {
    display: grid;
    gap: 1.5rem 4rem;
    max-width: none;
    align-items: end;
}

@media (min-width: 900px) {
    .cy-section__head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.cy-section__title {
    font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.cy-section__lead {
    max-width: 62ch;
    margin-top: 1rem;
    color: var(--cy-muted);
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
}
/* Yalnız sağ sütuna düşen açıklama; sol sütundaki başlığın altındaki açıklama boşluğunu korur */
.cy-section__head--split > .cy-section__lead { margin-top: 0; }
.cy-section--navy .cy-section__lead { color: var(--cy-on-navy-muted); }

/* 5) BUTON VE BAĞLANTI ---------------------------------------------------- */
.cy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .625rem 1.125rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s var(--cy-ease), border-color .15s var(--cy-ease),
                color .15s var(--cy-ease), box-shadow .15s var(--cy-ease), transform .15s var(--cy-ease);
}
.cy-btn:hover { text-decoration: none; }
.cy-btn:active { transform: translateY(1px); }
.cy-btn .cy-icon { width: 1.1em; height: 1.1em; transition: transform .15s var(--cy-ease); }
.cy-btn:hover .cy-icon { transform: translateX(2px); }

.cy-btn--sm { min-height: 40px; padding: .5rem .875rem; font-size: .875rem; }
.cy-btn--lg { min-height: 52px; padding: .8125rem 1.375rem; border-radius: 12px; font-size: 1rem; }

.cy-btn--primary {
    background: var(--cy-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 59, 122, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.cy-btn--primary:hover { background: var(--cy-primary-hover); color: #fff; }

.cy-btn--secondary {
    background: #fff;
    border-color: var(--cy-line-strong);
    color: var(--cy-ink);
    box-shadow: var(--cy-shadow-sm);
}
.cy-btn--secondary:hover { background: #fbfcfe; border-color: #b3c1d2; color: var(--cy-ink); }

.cy-btn--ghost { background: transparent; color: var(--cy-ink); }
.cy-btn--ghost:hover { background: var(--cy-bg-soft); color: var(--cy-ink); }

.cy-btn--light { background: #fff; color: var(--cy-navy); }
.cy-btn--light:hover { background: #e6eff9; color: var(--cy-navy); }

/* Lacivert zemin üzerinde ikincil düğme (Kütüphane künyesi, 404) */
.cy-btn--koyu { border-color: rgba(140, 192, 255, .25); background: rgba(255, 255, 255, .04); color: #fff; }
.cy-btn--koyu:hover { border-color: var(--cy-accent-on-navy); background: rgba(255, 255, 255, .08); color: #fff; }

.cy-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--cy-primary);
    font-weight: 600;
}
.cy-link:hover { color: var(--cy-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.cy-link .cy-icon { width: 1.05em; height: 1.05em; transition: transform .15s var(--cy-ease); }
.cy-link:hover .cy-icon { transform: translateX(2px); }

/* 6) BAŞLIK (HEADER) ------------------------------------------------------ */
.cy-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cy-header.is-scrolled,
.cy-header.is-open {
    border-bottom-color: var(--cy-line);
    box-shadow: 0 1px 12px rgba(11, 23, 38, .05);
}

.cy-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--cy-header-h);
}

.cy-brand {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    margin-right: auto;
    color: var(--cy-ink);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}
.cy-brand:hover { color: var(--cy-ink); text-decoration: none; }
.cy-brand__logo { width: 36px; height: 36px; }

.cy-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cy-ink);
    cursor: pointer;
}
.cy-menu-btn:hover { background: var(--cy-bg-soft); }
.cy-menu-btn__bars { position: relative; display: block; width: 20px; height: 14px; }
.cy-menu-btn__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s var(--cy-ease), opacity .15s ease, top .2s var(--cy-ease);
}
.cy-menu-btn__bars span:nth-child(1) { top: 0; }
.cy-menu-btn__bars span:nth-child(2) { top: 6px; }
.cy-menu-btn__bars span:nth-child(3) { top: 12px; }
.cy-header.is-open .cy-menu-btn__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.cy-header.is-open .cy-menu-btn__bars span:nth-child(2) { opacity: 0; }
.cy-header.is-open .cy-menu-btn__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.cy-nav__link { gap: .5rem; color: var(--cy-ink); text-decoration: none; }
.cy-nav__link:hover { color: var(--cy-primary); text-decoration: none; }
.cy-nav__link .cy-icon { flex: none; width: 18px; height: 18px; }

/* Mobil / tablet: hamburger menü */
@media (max-width: 1199.98px) {
    /* JS kapalıysa menü başlığın altında açık bir liste olarak kalır */
    .cy-header__inner { flex-wrap: wrap; }
    .cy-nav { width: 100%; padding-bottom: 1rem; }

    .cy-js .cy-header__inner { flex-wrap: nowrap; }
    .cy-js .cy-menu-btn { display: inline-flex; }
    .cy-js .cy-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--cy-header-h));
        max-height: calc(100dvh - var(--cy-header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .25rem var(--cy-gutter) 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--cy-line);
        box-shadow: 0 18px 32px rgba(11, 23, 38, .10);
    }
    .cy-js .cy-header.is-open .cy-nav { display: block; }

    .cy-nav__list li + li { border-top: 1px solid var(--cy-line); }
    .cy-nav__link {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-size: 1.0625rem;
        font-weight: 600;
    }
    .cy-nav__link[aria-current="page"],
    .cy-nav__link.is-active { color: var(--cy-primary); }
    .cy-nav.has-bolum .cy-nav__link[aria-current="page"]:not(.is-active) { color: var(--cy-ink); }

    .cy-nav__actions {
        display: grid;
        gap: .625rem;
        margin-top: 1rem;
    }
    .cy-nav__actions .cy-btn { width: 100%; min-height: 48px; font-size: 1rem; }
    .cy-nav__actions .cy-btn--ghost { border-color: var(--cy-line-strong); }
}

/* Masaüstü: satır içi menü */
@media (min-width: 1200px) {
    .cy-brand { margin-right: 0; }
    .cy-nav {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 1.5rem;
    }
    .cy-nav__list {
        display: flex;
        align-items: center;
        gap: .125rem;
        margin-inline: auto;
    }
    .cy-nav__link {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: .5rem .75rem;
        border-radius: 8px;
        color: var(--cy-text);
        font-size: .9375rem;
        font-weight: 500;
    }
    .cy-nav__link:hover { background: var(--cy-bg-soft); color: var(--cy-ink); }
    /* Aktif sayfa / ekrandaki bölüm: altta kısa mavi çizgi */
    .cy-nav__link { position: relative; transition: color .2s var(--cy-ease), background-color .2s var(--cy-ease); }
    .cy-nav__link::after {
        content: "";
        position: absolute;
        right: .75rem;
        bottom: 2px;
        left: .75rem;
        height: 2px;
        border-radius: 2px;
        background: var(--cy-primary);
        transform: scaleX(0);
        transition: transform .25s var(--cy-ease);
    }
    .cy-nav__link[aria-current="page"],
    .cy-nav__link.is-active { color: var(--cy-ink); font-weight: 600; }
    .cy-nav__link[aria-current="page"]::after,
    .cy-nav__link.is-active::after { transform: scaleX(1); }
    .cy-nav.has-bolum .cy-nav__link[aria-current="page"]:not(.is-active) { font-weight: 500; }
    .cy-nav.has-bolum .cy-nav__link[aria-current="page"]:not(.is-active)::after { transform: scaleX(0); }
    .cy-nav__link .cy-icon { width: 17px; height: 17px; color: var(--cy-primary); }
    .cy-nav__actions { display: flex; align-items: center; gap: .5rem; }
}

/* 7) ALT BİLGİ (FOOTER) --------------------------------------------------- */
.cy-footer {
    padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    border-top: 1px solid var(--cy-line);
    background: var(--cy-bg-soft);
    color: var(--cy-muted);
    font-size: .9375rem;
}

.cy-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.cy-footer__brand { grid-column: 1 / -1; max-width: 420px; }

@media (min-width: 900px) {
    .cy-footer__grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
    .cy-footer__brand { grid-column: auto; }
}

/* Telefonda bağlantı sütunları akordeon: iletişim bilgileri açık kalır,
   Çözümler / Kurumsal / Kaynaklar başlığa dokununca açılır (site-tema.js 7) */
@media (max-width: 767.98px) {
    .cy-footer__grid { grid-template-columns: 1fr; gap: 0; }
    .cy-footer__brand { margin-bottom: 1.5rem; }
    .cy-footer__col { border-top: 1px solid var(--cy-line); }
    .cy-footer__col:last-child { border-bottom: 1px solid var(--cy-line); }
    .cy-footer__col .cy-footer__title { margin-bottom: 0; }
    .cy-footer__col .cy-akordeon__dugme { min-height: 52px; }
    .cy-footer__col ul { padding-bottom: 1rem; }
}

.cy-footer .cy-brand__logo { width: 32px; height: 32px; }
.cy-footer__about { margin-top: 1rem; line-height: 1.6; }

.cy-footer__contact { display: grid; gap: .5rem; margin-top: 1.25rem; }
.cy-footer__contact li { display: flex; align-items: center; gap: .625rem; }
.cy-footer__contact .cy-icon { width: 1.1em; height: 1.1em; color: var(--cy-primary); }
.cy-footer__contact a { color: var(--cy-text); }
.cy-footer__contact a:hover { color: var(--cy-primary); text-decoration: underline; }

.cy-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.cy-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--cy-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--cy-ink);
    transition: border-color .15s ease, color .15s ease;
}
.cy-social a:hover { border-color: var(--cy-primary); color: var(--cy-primary); }
.cy-social .cy-icon { width: 18px; height: 18px; }

.cy-footer__title {
    margin-bottom: 1rem;
    color: var(--cy-ink);
    font-size: .875rem;
    font-weight: 700;
}
.cy-footer__col ul { display: grid; gap: .375rem; }
.cy-footer__col a { display: inline-block; padding-block: .25rem; color: var(--cy-muted); }
.cy-footer__col a:hover { color: var(--cy-ink); text-decoration: underline; text-underline-offset: 3px; }

.cy-footer__ad { margin-top: 2.5rem; }

.cy-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding-block: 1.25rem;
    border-top: 1px solid var(--cy-line);
    font-size: .875rem;
}
@media (max-width: 767.98px) {
    .cy-footer__bottom { margin-top: 0; border-top: 0; }
}
.cy-footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.cy-footer__legal a { display: inline-block; padding-block: .25rem; color: var(--cy-muted); }
.cy-footer__legal a:hover { color: var(--cy-ink); text-decoration: underline; }

/* Firma künyesi (unvan, vergi dairesi…) — yalnız doldurulmuşsa basılır */
.cy-footer__firma { flex-basis: 100%; color: var(--cy-muted); font-size: .8125rem; }

/* WhatsApp düğmesi — sağ alt köşe. Blog/Kütüphane'nin ortadaki
   "Ara | Konular" çubuğuyla aynı hizaya düşmesin diye o sayfalarda
   mobilde çubuğun üstüne çıkar. */
.cy-wa {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(7, 26, 45, .28);
    transition: transform .15s var(--cy-ease), box-shadow .15s var(--cy-ease);
}
.cy-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 26, 45, .32); }
.cy-wa .cy-icon { width: 28px; height: 28px; }
.cy-wa:focus-visible { outline: 3px solid var(--cy-primary); outline-offset: 3px; }
@media (max-width: 1023.98px) {
    .cy-js body:has(.cy-sheet-bar) .cy-wa { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
    .cy-wa { right: 24px; bottom: 24px; width: 56px; height: 56px; }
}
@media print { .cy-wa { display: none; } }

/* Akordeon (yalnız telefonda) — footer sütunları ve ana sayfa hizmet grupları.
   Düğme 768px ve üstünde düz başlık gibi durur, içerik her zaman açıktır.
   JS yoksa içerik hiç gizlenmez. Davranış: site-tema.js (7). */
.cy-akordeon__dugme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.cy-akordeon__dugme > .cy-icon { flex: none; width: 20px; height: 20px; color: var(--cy-muted); transition: transform .2s var(--cy-ease); }
[data-cy-akordeon].is-open .cy-akordeon__dugme > .cy-icon { transform: rotate(180deg); color: var(--cy-primary); }
@media (max-width: 767.98px) {
    .cy-js [data-cy-akordeon]:not(.is-open) [data-cy-akordeon-icerik] { display: none; }
}
@media (min-width: 768px) {
    .cy-akordeon__dugme { cursor: default; pointer-events: none; }
    .cy-akordeon__dugme > .cy-icon { display: none; }
}

/* "Tümünü gör" — uzun listelerin ilk N öğesi (sınır listenin kendi kuralında) */
.cy-tumu-dugme {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-top: .875rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cy-primary);
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
}
.cy-tumu-dugme:hover { color: var(--cy-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.cy-tumu-dugme .cy-icon { width: 18px; height: 18px; transition: transform .2s var(--cy-ease); }
.cy-tumu-dugme[aria-expanded="true"] .cy-icon { transform: rotate(180deg); }
/* JS yoksa liste zaten tamamen açık; düğmenin işlevi yok */
html:not(.cy-js) .cy-tumu-dugme { display: none; }

/* Son çağrı kutusu — ana sayfa, Hakkımızda ve diğer sayfaların sonundaki koyu kutu */
.cy-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    border-radius: 24px;
    background: var(--cy-navy);
    color: var(--cy-on-navy-muted);
}
.cy-cta::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(0, 91, 187, .45), transparent);
}
.cy-cta :focus-visible { outline-color: var(--cy-accent-on-navy); }

.cy-cta__title {
    color: #fff;
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.cy-cta__lead { max-width: 52ch; margin-top: .75rem; font-size: 1.0625rem; }

.cy-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}
.cy-cta__contact { display: grid; gap: .5rem; font-size: .9375rem; }
.cy-cta__contact li { display: flex; align-items: center; gap: .625rem; }
.cy-cta__contact .cy-icon { width: 1.1em; height: 1.1em; color: var(--cy-accent-on-navy); }
.cy-cta__contact a { color: var(--cy-on-navy); }
.cy-cta__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 479.98px) {
    .cy-cta__actions,
    .cy-cta__actions .cy-btn { width: 100%; }
}

@media (min-width: 900px) {
    .cy-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 3rem;
    }
}

/* 8) UYUM KATMANLARI ------------------------------------------------------ */

/* PWA kurulum bannerı (layouts/components/pwa_install.php) Bootstrap sınıfları
   ve FontAwesome kullanıyor; bu temada ikisi de yüklenmediği için asgari
   karşılıkları. Banner'ın kendi yerleşimi satır içi stillerdedir. */
#pwa-install-info { font-family: var(--cy-font); }
#pwa-install-info .fas { display: none; }
#pwa-install-info .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .5rem .875rem;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
#pwa-install-info .btn-primary { background: var(--cy-primary); color: #fff; }
#pwa-install-info .btn-link { background: transparent; }
#pwa-install-info .btn-block { display: flex; width: 100%; }

/* Satır içi z-index:9999 banner'ı açık mobil menünün de üstüne çıkarıyordu;
   başlığın (1000) altında kalsın. Küçük ekranda sol kenara yapışmasın diye
   iki yandan eşit boşluklu alt panel olur. Görünme mantığı değişmez. */
#pwa-install-info { z-index: 990 !important; }

@media (max-width: 575.98px) {
    #pwa-install-info {
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
    }
    #pwa-install-info > div { min-width: 0 !important; max-width: none !important; }
}

/* 9) İÇ SAYFA BİLEŞENLERİ ------------------------------------------------- */
/* Blog, Kütüphane, Projenizi Anlatın, Hakkımızda, yasal metinler, giriş/kayıt
   ortak parçaları. Sayfaya özel görünüm kendi dosyasındadır
   (site-icerik.css, site-blog.css, site-kutuphane.css, site-sayfalar.css). */

/* Sayfa başlığı: ana sayfa hero'sunun sade, kısa hâli */
.cy-page-hero {
    position: relative;
    /* Konum yolu (breadcrumb) kullanıcı isteğiyle kaldırıldı. Üst/alt boşluk
       bütün iç sayfa başlıklarında (Kütüphane, Blog, Hakkımızda…) aynı token */
    padding-block: var(--cy-page-hero-y);
    border-bottom: 1px solid var(--cy-line);
    background: var(--cy-bg-soft);
    overflow: hidden;
}
.cy-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 91, 187, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 91, 187, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}
.cy-page-hero > .cy-container { position: relative; }
.cy-page-hero__title {
    max-width: 22ch;
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}
.cy-page-hero__lead {
    max-width: 62ch;
    margin-top: 1rem;
    color: var(--cy-muted);
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
}
.cy-page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1.25rem;
    color: var(--cy-muted);
    font-size: .875rem;
}
.cy-page-hero__meta > * { display: inline-flex; align-items: center; gap: .375rem; }
.cy-page-hero__meta .cy-icon { width: 1.05em; height: 1.05em; color: var(--cy-primary); }
.cy-page-hero__meta strong { color: var(--cy-ink); font-weight: 700; }

/* Bildirim kutusu */
.cy-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .875rem 1rem;
    border: 1px solid;
    border-radius: var(--cy-radius);
    font-size: .9375rem;
    line-height: 1.55;
}
.cy-alert > .cy-icon { width: 1.25rem; height: 1.25rem; margin-top: .125rem; }
.cy-alert__body { flex: 1; min-width: 0; }
.cy-alert__body ul { margin-top: .375rem; padding-left: 1.125rem; list-style: disc; }
.cy-alert__close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -.375rem -.5rem -.375rem 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    opacity: .7;
    cursor: pointer;
}
.cy-alert__close:hover { opacity: 1; background: rgba(11, 23, 38, .06); }
.cy-alert__close .cy-icon { width: 16px; height: 16px; }
.cy-alert--success { border-color: #b7e4cc; background: #effaf4; color: #14532d; }
.cy-alert--error   { border-color: #f5c2c0; background: #fef3f2; color: #8a1c14; }
.cy-alert--warning { border-color: #f5dca0; background: #fffaeb; color: #7a4a05; }
.cy-alert--info    { border-color: var(--cy-primary-line); background: var(--cy-primary-soft); color: #0b3a6e; }

/* Form alanları */
.cy-form { display: grid; gap: 1.125rem; }
.cy-form__row { display: grid; gap: 1.125rem; }
@media (min-width: 640px) {
    .cy-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cy-field { display: grid; gap: .4375rem; align-content: start; min-width: 0; }
.cy-label { color: var(--cy-ink); font-size: .875rem; font-weight: 600; }
.cy-label small { color: var(--cy-muted); font-weight: 500; }
.cy-label .cy-req { color: #b42318; }
.cy-input {
    width: 100%;
    min-height: 48px;
    padding: .6875rem .875rem;
    border: 1px solid var(--cy-line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--cy-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s var(--cy-ease), box-shadow .15s var(--cy-ease);
    -webkit-appearance: none;
    appearance: none;
}
.cy-input::placeholder { color: #8795a6; }
.cy-input:hover { border-color: #aab8c8; }
.cy-input:focus { outline: none; border-color: var(--cy-primary); box-shadow: 0 0 0 4px rgba(0, 91, 187, .14); }
textarea.cy-input { min-height: 140px; resize: vertical; }
select.cy-input {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6b7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
}
.cy-input.is-invalid { border-color: #d92d20; }
.cy-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .14); }
.cy-field__help { color: var(--cy-muted); font-size: .8125rem; }
.cy-field__error { display: flex; align-items: center; gap: .375rem; color: #b42318; font-size: .8125rem; font-weight: 500; }
.cy-field__error .cy-icon { width: 1em; height: 1em; }

/* Parola göster/gizle */
.cy-pass { position: relative; }
.cy-pass .cy-input { padding-right: 3rem; }
.cy-pass__btn {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--cy-muted);
    cursor: pointer;
    transform: translateY(-50%);
}
.cy-pass__btn:hover { background: var(--cy-bg-soft); color: var(--cy-ink); }
.cy-pass__btn .cy-icon { width: 20px; height: 20px; }
.cy-pass__btn .cy-pass__gizle { display: none; }
.cy-pass__btn[aria-pressed="true"] .cy-pass__goster { display: none; }
.cy-pass__btn[aria-pressed="true"] .cy-pass__gizle { display: inline-block; }

/* Onay kutusu */
.cy-check {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    color: var(--cy-text);
    font-size: .9375rem;
    line-height: 1.5;
    cursor: pointer;
}
.cy-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: .125rem 0 0;
    accent-color: var(--cy-primary);
    cursor: pointer;
}
.cy-check a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Seçenek kartı (checkbox/radio) — "Ne tür bir çözüm arıyorsunuz?" gibi */
.cy-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.cy-choice { position: relative; }
.cy-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cy-choice span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .5rem .9375rem;
    border: 1px solid var(--cy-line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--cy-text);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s var(--cy-ease), background-color .15s var(--cy-ease), color .15s var(--cy-ease);
    user-select: none;
}
.cy-choice span:hover { border-color: #9fb3c8; }
.cy-choice span .cy-icon { width: 18px; height: 18px; color: var(--cy-muted); }
.cy-choice input:checked + span {
    border-color: var(--cy-primary);
    background: var(--cy-primary-soft);
    color: #0b3a6e;
    font-weight: 600;
}
.cy-choice input:checked + span .cy-icon { color: var(--cy-primary); }
.cy-choice input:focus-visible + span { outline: 2px solid var(--cy-primary); outline-offset: 2px; }

/* Etiket / rozet */
.cy-tag {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .1875rem .625rem;
    border: 1px solid var(--cy-line);
    border-radius: 999px;
    background: var(--cy-bg-soft);
    color: var(--cy-text);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
a.cy-tag:hover { border-color: var(--cy-primary-line); background: var(--cy-primary-soft); color: var(--cy-primary); }
.cy-tag--mono { font-family: var(--cy-mono); font-size: .75rem; font-weight: 500; }
.cy-tag .cy-icon { width: 1em; height: 1em; }
.cy-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--cy-primary)); }

/* Sayfalama — "‹ Önceki 1 … 4 5 6 … 12 Sonraki ›"
   Seçici bilerek yalnız DOĞRUDAN çocukları hedefler: eskiden ".cy-pager span"
   düğmenin içindeki "Sonraki" yazısını da kutuya çeviriyor, iç içe kutu çıkıyordu. */
.cy-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .375rem;
    margin-top: 2rem;
}
.cy-pager > a,
.cy-pager > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--cy-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cy-text);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
}
.cy-pager > a:hover { border-color: var(--cy-primary-line); color: var(--cy-primary); }
.cy-pager > [aria-current="page"] { border-color: var(--cy-primary); background: var(--cy-primary); color: #fff; }
.cy-pager > .cy-pager__bosluk { min-width: 24px; padding: 0; border-color: transparent; background: transparent; color: var(--cy-muted); }
.cy-pager .cy-icon { width: 18px; height: 18px; }
@media (max-width: 479.98px) {
    .cy-pager__metin { display: none; }
    .cy-pager > a, .cy-pager > span { padding: 0 .625rem; }
}

/* Bot tuzağı (honeypot): gerçek ziyaretçi görmez, ekran okuyucu atlar */
.cy-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Boş durum */
.cy-empty {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--cy-line-strong);
    border-radius: var(--cy-radius-lg);
    color: var(--cy-muted);
    text-align: center;
}
.cy-empty .cy-icon { width: 36px; height: 36px; color: var(--cy-primary); }

/* İkon kutusu ve sistem listesi — ana sayfa, Hakkımızda ve Projenizi Anlatın */
.cy-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--cy-primary-soft);
    color: var(--cy-primary);
}
.cy-service__icon .cy-icon { width: 20px; height: 20px; }
.cy-service__icon--lg { width: 52px; height: 52px; border-radius: 14px; }
.cy-service__icon--lg .cy-icon { width: 24px; height: 24px; }

.cy-systems {
    display: grid;
    gap: .625rem;
    align-self: stretch;
    margin-top: 1.25rem;
}
.cy-system {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem .875rem;
    border: 1px solid var(--cy-line);
    border-radius: var(--cy-radius);
    background: var(--cy-bg-soft);
    font-size: .875rem;
    line-height: 1.45;
    transition: border-color .2s var(--cy-ease), background-color .2s var(--cy-ease);
}
.cy-system:hover { border-color: var(--cy-primary-line); background: #fff; }
.cy-system > .cy-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--cy-primary); }
.cy-system span { color: var(--cy-muted); }
.cy-system strong { display: block; margin-bottom: .125rem; color: var(--cy-ink); font-size: .9375rem; font-weight: 700; }

@media (min-width: 560px) {
    .cy-systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Kaydırınca beliren içerik — sınıfları site-tema.js ekler; JS yoksa veya
   "hareketi azalt" açıksa hiçbir şey gizlenmez */
.cy-anim .cy-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--cy-ease), transform .6s var(--cy-ease);
    transition-delay: var(--cy-d, 0ms);
}
.cy-anim .cy-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .cy-site *,
    .cy-site *::before,
    .cy-site *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* 10) TERMİNAL PENCERESİ ------------------------------------------------------- */
/* Kütüphane ve Blog başlıklarının sağındaki "bash" penceresi; Kütüphane künye
   paneli ve kod gezgini de aynı renkleri (--kut-*) kullanır. */
:root {
    --kut-bg: #0b1320;          /* editör zemini */
    --kut-panel: #0f1b2b;
    --kut-cizgi: #1f2e42;
    --kut-yazi: #c9d6e3;
    --kut-soluk: #7f93a8;       /* koyu zemin üzerinde 5.3:1 */
    --kut-yesil: #7ee2a8;
    --kut-sari: #f5c76a;
    --kut-mavi: #8cc0ff;
    --kut-mor: #c4a7ff;
}

.cy-terminal {
    overflow: hidden;
    border: 1px solid var(--kut-cizgi);
    border-radius: var(--cy-radius-lg);
    background: var(--kut-bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    font-family: var(--cy-mono);
}
.cy-terminal__bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    border-bottom: 1px solid var(--kut-cizgi);
    background: var(--kut-panel);
    color: var(--kut-soluk);
    font-size: .75rem;
}
.cy-terminal__noktalar {
    flex: none;
    width: 42px;
    height: 12px;
    background:
        radial-gradient(circle at 6px 6px, #ff5f57 5px, transparent 5.5px),
        radial-gradient(circle at 21px 6px, #febc2e 5px, transparent 5.5px),
        radial-gradient(circle at 36px 6px, #28c840 5px, transparent 5.5px);
}
.cy-terminal__govde { padding: 1rem 1.125rem 1.125rem; color: var(--kut-yazi); font-size: .8125rem; line-height: 1.85; }
.cy-t-prompt { color: var(--kut-yesil); }
.cy-t-dolar { color: var(--kut-soluk); }
.cy-t-arg { color: var(--kut-sari); }
.cy-terminal__agac { margin-top: .25rem; }
.cy-terminal__agac li { display: flex; flex-wrap: wrap; gap: 0 .625rem; white-space: nowrap; }
.cy-t-dal { color: #3f5673; }
.cy-terminal__agac a { color: var(--kut-mavi); font-weight: 600; }
.cy-terminal__agac a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cy-terminal__agac .is-aktif a { color: var(--kut-sari); }
.cy-t-yorum { color: var(--kut-soluk); }
.cy-t-alt { margin-top: .375rem; color: var(--kut-soluk); }
.cy-t-imlec { display: inline-block; width: .55em; height: 1.1em; margin-left: .375rem; vertical-align: -.2em; background: var(--kut-yesil); opacity: .8; }
