@import url("./mobile-style.css");
@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');

:root {
    --color-primary-rgb: 98, 179, 212;
    --color-primary-hex: #62b3d4;
    --color-background-dark-rgb: 12, 11, 10;
    --color-background-dark-hex: rgb(12, 11, 10);
    --color-background-light-rgb: 251, 249, 247;
    --color-background-light-hex: #fbf9f7;
    --color-accent-yellow-rgb: 229, 186, 37;
    --color-accent-yellow-hex: #e5ba25;
    --color-neutral-gray-rgb: 217, 217, 217;
    --color-neutral-gray-hex: #D9D9D9;
    --color-error-red-rgb: 154, 3, 30;
    --color-error-red-hex: #9A031E;
    --gray-soft-hex: #555;
    --color-primary-dark-hex: #00adf7;
    --color-primary-dark-rgb: 0, 173, 247;
    --color-neutral-gray-hex: #D9D9D9;
    --color-text-dark: #002947;
    --color-secondary-blue-hex: #666666;
    --s: #e9687b;
    --shadow: 3px 3px 8px rgba(184, 185, 190, .6),
        -3px -3px 8px rgba(255, 255, 255, .9);

    /* Radius & spacing */
    --radius: 10px;
    --card-radius: 16px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    text-decoration: none;
}

body {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    background-color: var(--color-background-light-hex);
    color: var(--color-text-dark);
    line-height: 1.25;
    /* letter-spacing: -.01em; */
    font-weight: 500;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'calt';
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;

}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), .25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), .4);
}

::-webkit-scrollbar-track {
    background: transparent;
}


.hidden {
    display: none;
}

.loader-wrapper.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}


.loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid var(--color-primary-hex);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dönme animasyonu */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderBackdropIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px) saturate(1);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(20px) saturate(1.35);
    }
}

main {
    display: none;
    min-height: 50vh;
}

#cookie-card.cookie-card {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    /* beyaz kart */
    color: var(--color-text-dark, #333333);
    border: 1px solid var(--color-neutral-gray-hex, #D9D9D9);
    border-radius: var(--card-radius, 16px);
    box-shadow: var(--shadow, 3px 3px 6px #b8b9be, -3px -3px 6px #fff);
    padding: var(--spacing-md, 15px);
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

#cookie-card.is-visible {
    display: block;
    animation: cookie-slide-up .35s ease forwards;
}

@keyframes cookie-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-card.is-visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* İç düzen */
.cookie-wrapper {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--spacing-sm, 8px);
    align-items: center;
}

.cookie-icon .icon-cookie-box {
    font-size: 28px;
    line-height: 1;
}

.cookie-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm, 8px);
    margin-bottom: 6px;
}

.cookie-title {
    font-weight: 700;
    font-size: 16px;
}

.cookie-action {
    font-size: 18px;
    color: var(--color-accent-yellow-hex, #e5ba25);
}

.cookie-description {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.cookie-description .cookies-policy {
    color: var(--color-secondary-blue-hex, #666666);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Butonlar */
.cookie-actions {
    display: flex;
    gap: var(--spacing-sm, 8px);
    flex-wrap: wrap;
}

.accept-button,
.btn-outline,
.btn-ghost,
.btn-icon {
    appearance: none;
    border: none;
    border-radius: var(--radius-card, 12px);
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.accept-button {
    background: var(--color-primary-hex, #62b3d4);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.accept-button:hover {
    filter: brightness(0.95);
}

.accept-button:active {
    transform: translateY(1px);
}

.accept-button:focus-visible {
    outline: 2px solid rgba(255, 79, 0, .35);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 79, 0, .12);
}

/* “Reddet / Sadece gerekli” için nötr veya hatalı durum */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-neutral-gray-hex, #D9D9D9);
    color: var(--color-text-dark, #333333);
}

.btn-outline:hover {
    background: var(--color-background-light-hex, #f3f4f6);
}

/* Daha yumuşak ikincil */
.btn-ghost {
    background: #fff;
    border: 1px dashed var(--color-neutral-gray-hex, #D9D9D9);
    color: var(--color-text-dark, #333333);
}

.btn-ghost:hover {
    background: var(--color-background-light-hex, #f3f4f6);
}

/* İkon buton (ayarlar) */
.btn-icon {
    background: transparent;
    padding: 6px 10px;
    border-radius: 10px;
}

.btn-icon:hover {
    background: var(--color-background-light-hex, #f3f4f6);
}

/* ——— DARK MODE ——— */
@media (prefers-color-scheme: dark) {
    #cookie-card.cookie-card {
        background: var(--color-background-dark-hex, #1C1C1E);
        color: #e5e7eb;
        border-color: #2a2a2a;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    }

    .cookie-description {
        color: #c9d1d9;
    }

    .btn-outline {
        border-color: #3a3a3a;
        color: #e5e7eb;
    }

    .btn-ghost {
        background: transparent;
        border-color: #3a3a3a;
        color: #e5e7eb;
    }

    .btn-icon:hover {
        background: rgba(255, 255, 255, .06);
    }
}

/* ——— MODAL ——— */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 10000;
    display: none;
}

.cookie-modal.open {
    display: block;
}

.cookie-modal-box {
    width: min(720px, 92vw);
    margin: 8vh auto;
    background: #fff;
    color: var(--color-text-dark, #333333);
    border-radius: var(--card-radius, 16px);
    border: 1px solid var(--color-neutral-gray-hex, #D9D9D9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.cookie-modal-header,
.cookie-modal-footer {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm, 8px);
}

.cookie-modal-body {
    padding: 12px 16px;
    display: grid;
    gap: var(--spacing-sm, 12px);
}

.pref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #eef2f7;
    padding: 12px;
    border-radius: var(--radius-card, 12px);
    background: #fff;
}

.pref-row p {
    margin: .25rem 0 0 0;
    color: #4b5563;
    font-size: 14px;
}

/* Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    display: none;
}

.slider2 {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #d1d5db;
    border-radius: 999px;
    transition: .2s;
}

.slider2:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

input:checked+.slider2 {
    background: var(--color-primary-hex, #62b3d4);
}

input:checked+.slider2:before {
    transform: translateX(20px);
}

/* Koyu mod modal */
@media (prefers-color-scheme: dark) {
    .cookie-modal-box {
        background: var(--color-background-dark-hex, #1C1C1E);
        color: #e5e7eb;
        border-color: #2a2a2a;
    }

    .pref-row {
        background: transparent;
        border-color: #2a2a2a;
    }

    .pref-row p {
        color: #c9d1d9;
    }
}

/* Erişilebilirlik: odak görünürlüğü */
.accept-button:focus-visible,
.btn-outline:focus-visible,
.btn-ghost:focus-visible,
.btn-icon:focus-visible,
.switch input:focus-visible+.slider2 {
    outline: 2px solid rgba(255, 79, 0, .35);
    outline-offset: 2px;
}




a.ads {
    background-color: var(--color-neutral-gray-hex);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    z-index: 0;
}


.ads .icon {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 1rem;
    color: var(--color-primary-hex);
    z-index: 1;
    background-color: white;
    padding: 6px 10px;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ads-img {
    display: flex;
    justify-content: center;
    align-items: center;
}


.ads-img img {
    pointer-events: none;
    max-width: 600px;
}

.header {
    display: block;
    position: sticky;
    top: -50px;
    z-index: 9998;
    box-shadow: -3px 70px 60px -60px rgba(0, 0, 0, 0.1);

}

.top-bar {
    background-color: rgb(var(--color-primary-rgb), .9);
    /* arka plan korunur */
    color: #1C1C1E;
    /* koyu metin: yüksek kontrast */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-background-light-hex);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Marka etiketi: beyaz zemin + koyu metin = güçlü kontrast */
.top-bar .brand-placeholder {
    background-color: rgb(var(--color-background-light-rgb));
    padding: .5rem;
    border-radius: .5rem;
    color: var(--color-background-dark-hex);
    font-weight: 600;
}

/* Arama kutusu */
.top-bar .search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 16px;
}

.top-bar .search-box input[type="search"] {
    width: 100%;
    padding: 10px 44px 10px 14px;
    /* sağ ikon boşluğu */
    border: 1px solid #cfcfcf;
    /* daha koyu kenar: kontrast ok */
    border-radius: 20px;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--color-text-dark);
    transition: border-color .2s, box-shadow .2s;
}

/* Placeholder artık net görünüyor */
.top-bar .search-box input[type="search"]::placeholder {
    color: #666666;
    font-weight: 500;
}

/* Net focus halkası */
.top-bar .search-box input[type="search"]:focus {
    border-color: var(--color-primary-hex);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .25);
    outline: none;
}

/* Buton/ikon kontrastı */
.top-bar .search-box button {
    background: transparent;
    border: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--color-primary-dark-hex);
    /* turuncunun koyu tonu: daha görünür */
    line-height: 1;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}

.top-bar .search-box button:hover {
    opacity: .9;
}

.top-bar .search-box button:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .6);
    outline-offset: 2px;
}

/* Tarih metni kontrastlı */
.top-bar .date-display {
    white-space: nowrap;
    font-size: 01rem;
    font-weight: 600;
    color: #111;
    /* yüksek kontrast */
}

/* Tercih edilen yüksek kontrast durumunda biraz daha belirgin kenar/focus */
@media (prefers-contrast: more) {
    .top-bar .search-box input[type="search"] {
        border-color: #8a8a8a;
    }

    .top-bar .search-box input[type="search"]:focus {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, .25), 0 0 0 5px rgba(var(--color-primary-rgb), .35);
    }
}



.navbar .main-nav {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text-dark);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    gap: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    position: relative;
    user-select: none;

    /* Safari & iOS */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* iOS uzun basış menüsünü kapatır */

    /* Eski Edge/IE */
    -ms-user-select: none;

    /* Görsel sürüklemeyi de engelle (isteğe bağlı) */
    -webkit-user-drag: none;
    user-drag: none;


}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    text-decoration: none;
}

.logo {
    width: 50px;
    overflow: hidden;
    margin-right: 10px;
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary-hex);
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: auto;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--color-text-dark);
    position: relative;
    padding: 6px 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 2px;
    background: var(--color-primary-hex);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Active chip (sade) */
.nav-links a.active {
    background: rgba(var(--color-primary-rgb), .12);
    color: var(--color-text-dark);
    border: 1px solid rgba(var(--color-primary-rgb), .28);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: none;
    transition: background .2s, color .2s, border-color .2s;
}

.nav-links a.active:hover {
    background: rgba(var(--color-primary-rgb), .16);
}


.link-item {
    position: relative;
    overflow: visible;
}

.link-drop {
    /* display: none;  // JS zaten yönetiyor */
    position: absolute;
    /* <-- fixed DEĞİL */
    min-width: 220px;
    max-width: min(360px, 100vw - 16px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    padding: 6px;
    z-index: 1000;
    flex-direction: column;
    /* JS top/left veriyor; burada set etme */
}

/* (opsiyonel) ok işareti kullanıyorsan temel stil + hizalar */
.link-drop::before {
    content: "";
    position: absolute;
    top: -8px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, .08);
    border-top: 1px solid rgba(0, 0, 0, .08);
    transform: rotate(45deg);
    border-radius: 2px;
}

.link-drop[data-align="left"]::before {
    left: 16px;
}

.link-drop[data-align="center"]::before {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.link-drop[data-align="right"]::before {
    right: 16px;
    left: auto;
}

.link-drop .separator {
    position: relative;
    margin-block: .5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.link-drop .separator::before {
    content: "";
    position: absolute;
    top: 22px;
    width: 100%;
    height: .1rem;
    background: rgba(var(--color-primary-rgb));
    border-radius: .5rem;

}

.link-drop a {
    color: var(--color-text-dark);
    padding: 10px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
}

.link-drop a:hover {
    background: rgba(var(--color-primary-rgb), .10);
}

.search-form {
    width: 90%;
    max-width: 1440px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 4px 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 1rem;
    color: #333;
    background: transparent;
    outline: none;
}

.search-form input[type="search"]::placeholder {
    color: #aaa;
    font-weight: 400;
}

.search-form button {
    background: var(--color-primary-hex);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}

.search-form button:hover {
    background: var(--color-primary-dark-hex);
}


/* ——— GALERİ / SLIDER İYİLEŞTİRMELERİ (ÇizgiliDefter#2025) ——— */

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 40px 20px;
    flex-wrap: nowrap;
    user-select: none;

    /* Safari & iOS */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* iOS uzun basış menüsünü kapatır */

    /* Eski Edge/IE */
    -ms-user-select: none;

    /* Görsel sürüklemeyi de engelle (isteğe bağlı) */
    -webkit-user-drag: none;
    user-drag: none;

    width: 90%;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
}

/* === Slider === */
.slider {
    flex: 2 1 600px;
    /* Büyüme payı 2, küçülme payı 1, temel genişlik 600px */
    max-width: 1200px;
    /* width: 100%; */
    /* <-- BU SATIRI KALDIRIN VEYA YORUM ALIN */
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    z-index: 0;
    background: var(--color-background-light-hex, #f3f4f6);
    outline: 1px solid rgba(0, 0, 0, .03);
}

/* Slaytlar */
.slides {
    width: 100%;
    height: 100%;
    position: relative
}

/* Performans: blur yerine opacity+transform kullan */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
        transform: none
    }
}

/* Resim */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    aspect-ratio: 16/9;
}

/* Overlay: daha hafif, sadece alt tarafı koyulaştır */
.overlay {
    position: absolute;
    inset: 0 0 0 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .48) 0%,
            rgba(0, 0, 0, .18) 35%,
            rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
}

/* Caption kartı: marka çizgisi ve okunurluk */
.caption {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 625px;
    background: rgba(28, 28, 30, .6);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    color: #fff;
    background: transparent;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(var(--color-text-dark), .35), inset 0 0 0 1px rgba(var(--color-primary-rgb), .25);
}

.caption::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-background-dark-rgb), 0.65);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.caption::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 1px 1px 0 rgba(var(--color-background-light-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-background-light-rgb), 0.2),
        inset 0 -1px 0 rgba(var(--color-background-light-rgb), 0.1);
    z-index: -1;
}

.caption:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-background-dark-rgb));
    border-radius: inherit;
    z-index: -2;
}

.caption h2 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0 0 8px
}

.caption p {
    font-size: .95rem;
    margin: 0 0 16px;
    opacity: .95
}

/* CTA butonu: marka rengi + güçlü focus */
.caption button {
    position: relative;
    padding: 10px 18px;

    /* Arka plan — mevcut renk yapısı */
    background: rgba(var(--color-primary-dark-rgb), 0.45);
    color: #fff;

    border: none;
    border-radius: 99rem;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Cam efekti gölge */
    box-shadow:
        0 6px 16px rgba(var(--color-primary-dark-rgb), 0.35),
        inset 1px 1px 0 rgba(255, 255, 255, 0.32),
        inset -1px -1px 0 rgba(var(--color-primary-rgb), 0.15);

    overflow: hidden;
    isolation: isolate;

    transition:
        transform .12s ease,
        box-shadow .25s ease,
        background .25s ease,
        filter .2s ease,
        color .2s ease;
}

/* Arkaplan parıltı */
.caption button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: rgba(var(--color-primary-rgb), 0.55);
    z-index: -2;
    transition: background .25s ease;
}

/* İç parlama (çok hafif) */
.caption button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Hover efekti */
.caption button:hover {
    background: rgba(var(--color-primary-dark-rgb), 0.62);
    filter: brightness(1.05);
}

/* Active efekti */
.caption button:active {
    transform: translateY(1px) scale(.98);
    box-shadow:
        0 4px 12px rgba(var(--color-primary-dark-rgb), 0.45),
        inset 0 0 6px rgba(255, 255, 255, 0.1);
}

/* Focus */
.caption button:focus-visible {
    outline: 2px solid rgba(var(--color-primary-dark-rgb), .5);
    outline-offset: 2px;
    box-shadow:
        0 0 0 4px rgba(var(--color-primary-dark-rgb), 0.22);
}

/* Navigasyon okları: 44x44 hedef, iyi kontrast, klavye odağı */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .55);
    /* NAV ile aynı renk */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;

    /* Glass efektleri */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        inset 1px 1px 0 rgba(255, 255, 255, 0.15),
        inset -1px -1px 0 rgba(255, 255, 255, 0.08);

    overflow: hidden;
    isolation: isolate;

    transition:
        transform .15s ease,
        box-shadow .2s ease,
        background .25s ease,
        color .2s ease;
}

/* Arkadaki parıltı */
.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(var(--color-primary-rgb), 0.5);
    /* hafif ışık */
    z-index: -2;
    transition: background .25s ease;
}

/* İç parlama */
.nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.15),
        inset -1px -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(var(--color-primary-dark-rgb), 0.05);
    z-index: -1;
}

/* Hover */
.nav:hover {
    background: rgba(var(--color-primary-dark-rgb));
}

/* Aktif basma efekti */
.nav:active {
    transform: scale(0.97);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 0 6px rgba(255, 255, 255, 0.1);
}


.nav.prev {
    left: 12px
}

.nav.next {
    right: 12px
}

.nav:hover {
    filter: brightness(1.1)
}

.nav:active {
    transform: translateY(-50%) scale(.98)
}

.nav:focus-visible {
    outline: 2px solid rgba(255, 79, 0, .5);
    outline-offset: 2px;
}



/* Noktalar: buton olarak erişilebilir, büyük hedef, net aktif durum */
.dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.dot {
    width: 14px;
    height: 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: var(--color-secondary-blue-hex, #666666);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
    opacity: .9;
}

.dot:hover {
    opacity: 1
}

.dot:focus-visible {
    outline: 2px solid rgba(255, 79, 0, .6);
    outline-offset: 2px;
}

.dot.active {
    background: var(--color-primary-hex, #62b3d4);
    transform: scaleX(1.5);
}



.likes-post {
    flex: 0 1 38%;
    /* sağ sütun */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.likes-post h1 {
    flex: 0 0 100%;
    font-size: 1.75rem;
    color: var(--color-primary-hex);
    margin: 0 0 16px;
}


/* Kart */
.like-post-card {
    flex: 0 0 calc(50% - 10px);
    /* iki kart tek satır */
    min-width: 0;
    /* 280px min'i kaldırıyoruz ki sığsın */
    background: #fff;
    border-radius: var(--radius-card, 16px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    outline: 1px solid rgba(0, 0, 0, .04);
}

.like-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.like-post-card:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 79, 0, .12), 0 6px 18px rgba(0, 0, 0, .12);
}

/* Kartın İç Yapısı (Dikey Yapı: Resim Üstte, İçerik Altta) */
.like-postcard,
.like-post-card .like-postcard {
    display: flex;
    flex-direction: column;
    /* <-- Dikey sıralama */
    align-items: stretch;
    gap: 0;
    height: 100%;
}

/* Görsel */
.like-postcard img {
    flex: none;
    /* Flex ayarı kaldırıldı, tam genişlik alacak */
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    /* Resmi kırparak alanı doldurur */
    display: block;
    pointer-events: none;
    /* Koyu arka plan kaldırıldı */
}

/* Metin alanı */
.like-postcard .content {
    flex: 1 1 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    /* <-- Flex sıkışma sorununu çözer */
}

/* Başlık */
.like-postcard .header-card h2 {
    font-size: 1.25rem;
    color: var(--color-text-dark, #333);
    margin: 0 0 6px;

    /* İki satır sınırlaması (nowrap kaldırıldı) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Etiketler */
.like-postcard .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.like-postcard .tag {
    position: relative;
    display: inline-block;
    font-size: .75rem;
    padding: 4px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.like-postcard .tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.like-postcard .tag::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.like-postcard .tag:active {
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}


.like-postcard .tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

/* Özet (3 satır clamp) */
.like-postcard .summary {
    color: var(--color-text-dark, #333);
    width: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .88rem;
}

/* Ayırıcı */
.like-postcard .divider {
    border-top: 1px solid var(--color-neutral-gray-hex, #D9D9D9);
    margin: 8px 0;
}

/* Alt satır */
.like-postcard .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.like-postcard .date {
    font-size: .8rem;
    color: var(--color-secondary-blue-hex, #666666);
}

/* Buton */
.like-postcard .btn {
    position: relative;
    display: inline-block;
    padding: .55rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.like-postcard .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.like-postcard .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.like-postcard .btn:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

.like-postcard .btn:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}

.like-postcard .btn:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .35);
    outline-offset: 2px;
    box-shadow: var(--shadow), 0 0 0 4px rgba(var(--color-primary-rgb), .16);
}


.class-select {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 32px auto;
    max-width: 1000px;
    padding: 0 16px;
}

.class-select a {
    box-sizing: border-box;
    width: 200px;
    height: 260px;
    position: relative;
    display: inline-block;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: rgb(0, 0, 0);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.11);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.class-select a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--color-primary-rgb), 0.425), rgba(255, 255, 255, 0));
    border-radius: inherit;
    z-index: 1;
    transition: background 0.3s ease;
}

.class-select a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 3px 3px 0 rgba(0, 255, 255, 0.2),
        inset -3px -3px 0 rgba(0, 255, 255, 0.2),
        inset 0 -3px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.class-select a:active {
    transform: translateY(5px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);

}

.class-select a:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);

}



.class-select a span {
    position: relative;
    z-index: 2;
}

.class-select .class-name:first-child {
    background-image: url(/assets/img/sinif/1-sinif.png);
    background-size: cover;
    background-position: center;

}

.class-select .class-name:nth-child(2) {
    background-image: url(/assets/img/sinif/2-sinif.png);
    background-size: cover;
    background-position: center;
}

.class-select .class-name:nth-child(3) {
    background-image: url(/assets/img/sinif/3-sinif.png);
    background-size: cover;
    background-position: center;
}

.class-select .class-name:nth-child(4) {
    background-image: url(/assets/img/sinif/4-sinif.png);
    background-size: cover;
    background-position: center;
}

.class-select .ders-turkce {
    background-image: url(/assets/img/sinif/turkce.png);
    background-size: cover;
    background-position: center;
}

.class-select .ders-matematik {
    background-image: url(/assets/img/sinif/matematik.png);
    background-size: cover;
    background-position: center;
}

.class-select .ders-hayat-bilgisi {
    background-image: url(/assets/img/sinif/hayat-bilgisi.png);
    background-size: cover;
    background-position: center;
}

.class-select .ders-fen-bilimleri {
    background-image: url(/assets/img/sinif/fen-bilimleri.png);
    background-size: cover;
    background-position: center;
}

.class-select .ders-sosyal-bilgiler {
    background-image: url(/assets/img/sinif/sosyal-bilgiler.png);
    background-size: cover;
    background-position: center;
}



.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.container-title {
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Typography & spacing */
    font-size: 0.8rem;
    /* Başlığın büyüklüğü */
    font-weight: 700;
    /* Kalınlık */
    color: var(--color-text-dark);
    /* Koyu gri metin rengi */
    margin: 2rem 0 1.5rem;
    /* Üst ve alt boşluk */
    padding-bottom: 0.5rem;
    /* Alt çizgi için boşluk */

    /* Konumlandırma (underline için) */
    position: relative;
}

/* Alt çizgi efekti */
.container-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    /* Alt çizgi uzunluğu */
    height: 4px;
    /* Alt çizgi kalınlığı */
    background-color: var(--color-primary-hex);
    border-radius: 2px;
}

/* === Last Released Cards (izole) === */
.last-released {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    margin: var(--spacing-lg) 0;
    padding: 0 var(--spacing-lg);
}

.last-released .card {
    width: 325px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-light-hex);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.last-released .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

/* Card image */
.last-released .card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.last-released .card-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background-color: var(--color-primary-dark-hex);
    color: #fff;
    text-align: center;
    font-weight: 900;
    pointer-events: none;
}

/* Card body */
.last-released .card-body {
    padding: var(--spacing-md);
}

/* Title */
.last-released .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark, #333);
    margin-bottom: var(--spacing-sm);
}

/* Description */
.last-released .card-desc {
    font-size: .88rem;
    color: var(--color-text-dark-muted, #555);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
.last-released .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-md);
    flex-wrap: wrap;
}

/* Grade tag */
.last-released .grade-tag {
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    font-size: .80rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: default;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.last-released .grade-tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.last-released .grade-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.last-released .grade-tag:active {
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}


.last-released .grade-tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

/* View button */
.last-released .view-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border: none;
    width: 100%;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.last-released .view-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.last-released .view-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.last-released .view-btn:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

.last-released .view-btn:hover {
    box-shadow: 0 6px 16px rgba(var(--color-primary-dark-rgb), 0.35);
}

.last-released .view-btn:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}

.last-released .view-btn:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .35);
    outline-offset: 2px;
    box-shadow: var(--shadow), 0 0 0 4px rgba(var(--color-primary-rgb), .16);
}




.right-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    position: relative;
}



/* ====== .btn-categories ====== */
.right-group .btn-categories {
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    padding: 10px 16px;

    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.11);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;

    outline: none;
}

.right-group .btn-categories::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.right-group .btn-categories::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(145, 145, 145, 0.1);
    z-index: -1;
}

.right-group .btn-categories:active {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.right-group .btn-categories:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255);
    border-radius: inherit;
    z-index: -2;
}

.right-group .btn-categories i {
    color: var(--color-primary-hex);
    transition: color 0.3s ease-in-out;
}




/* .right-group .btn-categories:focus-visible {
    outline: 3px solid var(--color-primary-hex);
    outline-offset: 3px;
}

.right-group .btn-categories:hover,
.right-group .btn-categories:focus-visible:hover {
    background-color: var(--color-primary-hex);
    color: #fff;
    box-shadow: 0px 12px 70px -3px rgba(0, 0, 0, 0.15);
}

.right-group .btn-categories i {
    color: var(--color-primary-hex);
    transition: color 0.3s ease-in-out;
}

.right-group .btn-categories:hover i,
.right-group .btn-categories:focus-visible i {
    color: #fff;
} */


/* ====== .appearance ====== */
.right-group .appearance {
    border: none;
    padding: 10px;
    color: var(--color-primary-hex);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.11);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;

    outline: none;
}

.right-group .appearance::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.right-group .appearance::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(145, 145, 145, 0.1);
    z-index: -1;
}

.right-group .appearance:active {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.right-group .appearance:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255);
    border-radius: inherit;
    z-index: -2;
}

/* .right-group .appearance i {
    color: var(--color-primary-hex);
}

.right-group .appearance:focus-visible {
    outline: 3px solid var(--color-primary-hex);
    outline-offset: 3px;
}

.right-group .appearance:hover,
.right-group .appearance:focus-visible:hover {
    background-color: var(--color-primary-hex);
    color: #fff;
    box-shadow: 0px 12px 70px -3px rgba(0, 0, 0, 0.15);
}

.right-group .appearance:hover i {
    color: #fff;
} */


/* Dropdown container */
.filter-drop {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-background-light-hex);
    border: 1px solid var(--color-neutral-gray-hex);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-0.75rem);
    backdrop-filter: blur(10px);
}

/* Gösterildiğinde */
.filter-drop.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Menü öğeleri */
.filter-drop a,
.filter-drop button {
    display: block;
    width: 100%;
    padding: 0.6rem 1.2rem;
    text-align: left;
    font-size: 01rem;
    color: var(--color-text-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.filter-drop a:hover,
.filter-drop button:hover,
.filter-drop a:focus,
.filter-drop button:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Ayracı */
.filter-drop .divider {
    height: 1px;
    margin: 0.4rem 0;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Aktif öğe */
.filter-drop .active-option {
    background-color: var(--color-primary-hex);
    color: #fff;
}

/* Radio seçim alanları */
.filter-drop label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    user-select: none;
}

/* Temel görünüm - checkbox gibi */
.check {
    cursor: pointer;
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
}

.check:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -3px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* SVG kutu görünümü */
.check svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--color-neutral-gray-hex);
    /* işaretlenmemişken gri */
    stroke-width: 2;
    transform: translate3d(0, 0, 0);
    transition: stroke 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
    /* işaretlenmemişken soluk görünüm */
}

/* Hover efekti */
.check:hover:before {
    opacity: 1;
}

.check:hover svg {
    stroke: var(--color-primary-hex);
    opacity: 1;
}

/* PATH (tik çizgisi) */
.check svg path {
    stroke-dasharray: 60;

    transition: stroke-dashoffset 0.3s linear;
}

/* POLYLINE varsa (ekstra çizgi için) */
.check svg polyline {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    transition: stroke-dashoffset 0.2s linear;
}

/* Seçili olduğunda görünür hale gelir */
input[type="radio"]:checked+.check svg {
    stroke: var(--color-primary-hex);
    opacity: 1;
}

input[type="radio"]:checked+.check svg path {
    stroke-dashoffset: 0;
}

input[type="radio"]:checked+.check svg polyline {
    stroke-dashoffset: 0;
    transition-delay: 0.15s;
}




/* Varsayılan olarak grid görünümü */
.all-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* GRID görünüm (varsayılan öneri) */
.all-cards.grid-view {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

.all-cards.grid-view .all-card {
    flex-direction: column;
    flex: 0 1 calc(33.333% - 20px);
    /* 3 sütun */
}

/* LİSTE görünüm */
.all-cards.list-view {
    flex-direction: column;
    align-items: center;
}

.all-cards.list-view .all-card {
    flex-direction: row;
    width: 100%;
}

/* Kart */
.all-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    overflow: hidden;
    background: var(--color-background-light-hex);
    border-radius: var(--card-radius, 16px);
    /* Modern yumuşak gölge: root’taki --shadow kullan */
    box-shadow: var(--shadow);
    outline: 1px solid rgba(0, 0, 0, .03);
    /* çok hafif kenar */
    transition: transform .18s ease, box-shadow .22s ease, outline-color .22s ease;
}

.all-card:hover {
    transform: translateY(-2px);
    /* Hover’da hafif ring + mevcut gölge birleşik */
    box-shadow:
        var(--shadow),
        0 6px 18px rgba(0, 0, 0, .12),
        0 0 0 4px rgba(var(--color-primary-rgb), .10);
}

.all-card:focus-within {
    /* Klavye kullanıcıları için belirgin ama yumuşak vurgu */
    outline-color: rgba(var(--color-primary-rgb), .25);
    box-shadow:
        var(--shadow),
        0 0 0 4px rgba(var(--color-primary-rgb), .18);
}

/* Kart görseli */
.all-card-img {
    flex: 1;
    min-width: 40%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.all-card-img img {
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--color-primary-dark-hex);
    color: #fff;
    text-align: center;
    font-weight: 900;
}

/* İçerik */
.all-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 8px);
    padding: var(--spacing-md, 15px);
}

.all-card-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark, #333);
}

/* Etiketler */
.all-card-content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.all-card-content .tag {
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    font-size: .80rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.all-card-content .tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.all-card-content .tag::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}




.all-card-content .tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

/* Açıklama + footer */
.all-card-desc {
    font-size: .88rem;
    line-height: 1.5;
    color: var(--gray-soft-hex, #555);
}

.all-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--spacing-sm, 8px);
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.all-card .card-footer .post-data {
    font-size: .85rem;
    color: var(--gray-soft-hex, #555);
}

/* Görüntüle butonu */
.all-card .card-footer .all-view-btn {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.all-card .card-footer .all-view-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.all-card .card-footer .all-view-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.all-card .card-footer .all-view-btn:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

.all-card .card-footer .all-view-btn:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}

.all-card .card-footer .all-view-btn:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .35);
    outline-offset: 2px;
    box-shadow: var(--shadow), 0 0 0 4px rgba(var(--color-primary-rgb), .16);
}



/* Sayfalama */
.pagetion {
    display: flex;
    justify-content: center;
    margin-block: 1rem;
    gap: 6px;
}

.pagetion a,
.pagetion span.active,
.pagetion span.disabled,
.pagetion span.ellipsis {
    padding: .5rem .75rem;
    border-radius: .5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.pagetion a {
    background: #fff;
    color: var(--color-text-dark, #333);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow);
    transition: filter .15s ease, box-shadow .22s ease, color .15s ease, background .15s ease;
}

.pagetion a:hover {
    filter: brightness(.98);
    box-shadow: var(--shadow), 0 0 0 3px rgba(var(--color-primary-rgb), .12);
    color: var(--color-primary-hex);
}

.pagetion span.active {
    background: var(--color-background-light-hex);
    color: var(--color-primary-hex);
    font-weight: 700;
    border: 1px solid rgba(var(--color-primary-rgb), .35);
    box-shadow: var(--shadow);
}

.pagetion span.disabled {
    background: #fafafa;
    color: #b9b9b9;
    border: 1px solid #efefef;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.pagetion span.ellipsis {
    background: transparent;
    color: var(--gray-soft-hex, #555);
    border: 1px dashed rgba(0, 0, 0, .08);
}

/* Scroll hedefi */
#cardsContainer {
    scroll-margin-top: 280px;
}


footer.footer {
    color: var(--color-background-light-hex);
    background: var(--color-primary-hex);
    margin-top: var(--spacing-lg);
}

/* Ana içerik */
footer .footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-lg) * 2) var(--spacing-md);
}

/* Kolonlar */
footer .footer-column {
    flex: 1;
    min-width: 240px;
    padding: 0 var(--spacing-md);
}

/* Sol: logo+slogan */
footer .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer .logo-circle {
    width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

footer .logo-text {
    font-size: .9rem;
    font-weight: 800;
    color: var(--color-background-light-hex);
    /* turuncu zemin üstünde açık renk */
    letter-spacing: .2px;
}

footer .tagline {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: var(--color-background-light-hex);
    opacity: .95;
    font-weight: 100;
    margin-bottom: .8rem;
}

/* Orta: sınıflar */
footer .footer-center h3,
footer .footer-right h3 {
    margin: 0 0 var(--spacing-lg);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-background-light-hex);
    letter-spacing: .2px;
}

footer .classes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .classes-list li {
    margin-bottom: var(--spacing-sm);
}

footer .classes-list a {
    text-decoration: none;
    color: var(--color-background-light-hex);
    font-size: 1rem;
    transition: opacity .15s ease, text-decoration-color .15s ease;
}

footer .classes-list a:hover {
    text-decoration: underline;
}

footer .classes-list a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Sağ: sosyal ikonlar */
footer .social-icons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    /* erişilebilir hedef */
    background: #ffffff;
    color: var(--color-primary-hex);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 20px;
    transition: transform .06s ease, filter .15s ease, box-shadow .22s ease;
}

footer .social-icons a:hover {
    filter: brightness(.96);
}

footer .social-icons a:active {
    transform: translateY(1px);
}

footer .social-icons a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 2px;
}

/* Alt şerit */
footer .footer-bottom {
    background: var(--color-primary-dark-hex);
    text-align: center;
    padding: var(--spacing-md) var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, .15);
}

footer .footer-bottom p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-dark);
}

footer .footer-bottom a {
    color: var(--color-text-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer .footer-bottom a:hover {
    opacity: .9;
}

/* Politikalar/metin */
.policy {
    color: #EDEDED;
    font-size: .85rem;
    margin-top: var(--spacing-sm);
    opacity: .95;
}

/* Yazı taşmalarını kır */
.post-excerpt {
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* düzeltildi (— değil -) */
    -webkit-box-orient: vertical;
}

/* === Paylaş Modalı === */
.share {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    width: min(400px, 90%);
    padding: 1.2rem;
    z-index: 9999;
    display: none;
    /* aç/kapat için */
}

.share-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.share-title h1 {
    margin: 0;
    font-size: 1.25rem;
}

#close-share-modal {
    font-size: 1.2rem;
    color: var(--muted);
    transition: color .2s;
}

#close-share-modal:hover {
    color: var(--text);
}

.share hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: .75rem 0 1rem;
}

/* Link ikonları */
.share .links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: .8rem;
    justify-items: center;
}

.share .links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    transition: transform .2s, opacity .2s;
}

.share .links a:hover {
    transform: scale(1.08);
    opacity: .9;
}

/* Renkler marka mantığında */
.share .links .copy {
    background: var(--brand);
}

.share .links .facebook {
    background: #1877f2;
}

.share .links .twitter {
    background: #1da1f2;
}

.share .links .linkedin {
    background: #0077b5;
}

.share .links .whatsapp {
    background: #25d366;
}

.share .links .telegram {
    background: #0088cc;
}

.share .links .reddit {
    background: #ff4500;
}

.share .links .email {
    background: #6f6f6f;
}


.contact {
    max-width: 980px;
    margin: 0 auto;
}

/* Grid yerleşim */
.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }

    /* select ve textarea tam satır olsun */
    .span-2 {
        grid-column: 1 / -1;
    }
}

/* Alan kapsayıcı */
.field {
    position: relative;
}

/* Float label stili (kenarlığın üstünde “başlık” efekti) */
.field label {
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 14px;
    color: #202020;
    background: var(--color-background-light-hex);
    /* kenarlığın üstünü kapatsın */
    padding: 0 8px 0 6px;
    line-height: 1;
}

/* Etiketten çıkan ince çizgi (ekrandaki görsele benzer) */
.field label::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 11px;
    left: 100%;
    height: 2px;
    width: 64px;
    background: var(--color-background-light-hex);
    opacity: .65;
}

/* Ortak input stilleri */
.control {
    width: 100%;
    border: 2px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    padding: .5rem .8rem;
    font-size: 18px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.control:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}

.control::placeholder {
    color: #8d8d8d
}

/* Select (özel ok) */
.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    pointer-events: none;
    right: 14px;
    top: 50%;
    translate: 0 -50%;
    border-width: 7px 6px 0 6px;
    border-style: solid;
    border-color: var(--border-dark) transparent transparent transparent;
}

.contact select.control {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    /* oka yer aç */
}

/* Textarea büyük alan */
.contact textarea.control {
    min-height: 260px;
    resize: vertical;
}

/* Gönder butonu */
.actions {
    text-align: center;
    margin-top: 28px;
}

.contact .btn {
    display: inline-block;
    border: 0;
    background: var(--color-primary-dark-hex);
    color: var(--color-background-light-hex);

    padding: .5rem .8rem;
    border-radius: 10px;

    cursor: pointer;
    transition: transform .05s ease, filter .15s ease;
}

.contact .btn:hover {
    filter: brightness(1.05)
}

.contact .btn:active {
    transform: translateY(1px)
}

.form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px
}

.form-alert.ok {
    background: #e6f6ec;
    color: var(--color-primary-dark-hex);
    border: 1px solid #c7e8d2
}

.form-alert.bad {
    background: #fde7ea;
    color: var(--color-error-red-hex);
    border: 1px solid #f6c9d0
}

.detail {

    position: fixed;
    top: 0;
    background-color: rgb(var(--color-background-dark-rgb), .9);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    width: 100dvw;
    height: 100vh;
    margin: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.detail.show {
    display: flex;
    /* JS ile açılacak */
}

.detail-card {
    background-color: var(--color-background-light-hex);
    padding: 1rem;
    max-width: 600px;
    min-width: 300px;
    border-radius: var(--radius);
}

.detail-card .head {
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px var(--color-primary-dark-hex) solid;
}

.detail-card .head .close {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
    font-size: 1.2rem;
}

.detail-card .head .close:hover {
    color: var(--color-secondary-blue-hex);
}

.detail-card .body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

.detail-card .body img {
    width: 100%;
    pointer-events: none;
}

/* === ÇizgiBot kapsayıcı === */
/* Toggle’a dikkat çeken halka */
#cd-bot-toggle {
    position: relative;
}

/* Dışa doğru yayılan halka */
#cd-bot-toggle::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(var(--color-primary-rgb), .45);
    opacity: 0;
    animation: cdPulse 1.6s ease-out infinite;
}

@keyframes cdPulse {
    0% {
        transform: scale(0.7);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* Küçük “Yeni” etiketi */
#cd-bot-badge {
    position: absolute;
    right: 20px;
    bottom: 80px;
    background: var(--color-primary-dark-hex);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
    white-space: nowrap;
}

/* === ÇizgiBot kapsayıcı === */
#cd-bot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: 'Neue Haas Grotesk Display Pro', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Açma butonu (primary renk + gölge) === */
#cd-bot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    background: var(--color-primary-hex);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), .4);
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

#cd-bot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--color-primary-rgb), .5);
    background: var(--color-primary-dark-hex);
}

#cd-bot-toggle:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(var(--color-primary-rgb), .3);
}

/* === Pencere === */
#cd-bot-window {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-height: 480px;
    min-height: 360px;
    display: none;
    flex-direction: column;
    background: var(--color-background-light-hex);
    color: var(--color-text-dark);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
    border: 1px solid rgba(var(--color-neutral-gray-rgb), .5);
    overflow: hidden;
}

#cd-bot-window.open {
    display: flex;
    animation: cdOpen .25s ease;
}

@keyframes cdOpen {
    from {
        transform: translateY(6px);
        opacity: .2;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Başlık === */
.cd-bot-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--color-primary-rgb), .10);
    border-bottom: 1px solid rgba(var(--color-neutral-gray-rgb), .8);
}

.cd-bot-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.cd-bot-header button {
    border: none;
    background: transparent;
    color: var(--color-secondary-blue-hex);
    font-size: 16px;
    cursor: pointer;
    opacity: .8;
    transition: opacity .15s;
}

.cd-bot-header button:hover {
    opacity: 1;
}

/* === Mesaj Alanı === */
.cd-bot-messages {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    background: var(--color-background-light-hex);
}

/* Scrollbar (yalın, palete uygun) */
.cd-bot-messages::-webkit-scrollbar {
    width: 6px;
}

.cd-bot-messages::-webkit-scrollbar-track {
    background: rgba(var(--color-neutral-gray-rgb), .25);
}

.cd-bot-messages::-webkit-scrollbar-thumb {
    background: var(--color-neutral-gray-hex);
    border-radius: 999px;
}

/* Balonlar */
.cd-bot-msg {
    max-width: 90%;
    padding: 9px 13px;
    border-radius: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
}

/* Kullanıcı Mesajı (primary) */
.cd-bot-msg.user {
    margin-left: auto;
    background: var(--color-primary-hex);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 8px rgba(var(--color-primary-rgb), .25);
}

/* Bot Mesajı (light + hafif mavi ton) */
.cd-bot-msg.bot {
    margin-right: auto;
    background: rgba(var(--color-primary-rgb), .05);
    color: var(--color-text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .05);
    border: 1px solid rgba(var(--color-neutral-gray-rgb), .4);
}

/* Hata / uyarı mesajı */
.cd-bot-msg.error {
    margin-right: auto;
    background: rgba(var(--color-error-red-rgb), .08);
    color: var(--color-error-red-hex);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(var(--color-error-red-rgb), .4);
}

/* === Botun verdiği linkler – kart tasarımı === */
/* PHP tarafında dönen <a href="...">...</a> linklerine uygulanır */
.cd-bot-messages a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
    padding: 2px 0;
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    border: none;
    color: var(--color-primary-dark-hex);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* FA ikon */
.cd-bot-messages a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f15c";
    /* fa-file-lines */
    font-size: 13px;
    margin-right: 4px;
    opacity: .9;
}

/* hover */
.cd-bot-messages a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark-hex);
}

.cd-bot-messages a+a {
    margin-top: 4px;
}

/* Link içindeki emoji/ikon sağda ise hizalama düzgün kalsın */
.cd-bot-messages a .fa,
.cd-bot-messages a .fa-solid {
    margin-left: 6px;
    font-size: 12px;
}

/* Küçük meta / açıklama yazıları */
.cd-bot-messages small {
    display: block;
    font-size: 11px;
    color: var(--gray-soft-hex);
    margin-top: 2px;
}

/* === Form === */
#cd-bot-form {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: var(--color-background-light-hex);
    border-top: 1px solid rgba(var(--color-neutral-gray-rgb), .8);
}

/* Input */
#cd-bot-input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--color-neutral-gray-rgb), .9);
    background: rgba(var(--color-neutral-gray-rgb), .15);
    font-size: 13px;
    outline: none;
    color: var(--color-text-dark);
    transition:
        border-color .15s,
        background .15s,
        box-shadow .15s;
}

#cd-bot-input::placeholder {
    color: var(--gray-soft-hex);
    opacity: .9;
}

#cd-bot-input:focus {
    background: var(--color-background-light-hex);
    border-color: var(--color-primary-hex);
    box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), .35);
}

/* Gönder butonu */
#cd-bot-form button[type="submit"] {
    border-radius: 999px;
    border: none;
    padding: 0 18px;
    min-width: 76px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-primary-hex);
    color: #fff;
    transition:
        background .15s ease,
        transform .12s,
        box-shadow .15s;
    box-shadow: 0 3px 8px rgba(var(--color-primary-rgb), .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

#cd-bot-form button[type="submit"]:hover {
    background: var(--color-primary-dark-hex);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(var(--color-primary-dark-rgb), .35);
}

#cd-bot-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), .2);
}

/* === Mobil === */
/* === Mobil (max 640px) – bottom sheet görünüm === */
@media (max-width: 640px) {

    /* Buton biraz içeri gelsin */
    #cd-bot {
        right: 12px;
        bottom: 12px;
    }

    /* Pencere artık sabit bottom-sheet gibi */
    #cd-bot-window {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: 100vw;

        /* Yükseklik */
        height: 65vh;
        max-height: 75vh;

        border-radius: 18px 18px 0 0;
        margin: 0 auto;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
        border-left: none;
        border-right: none;
    }

    /* Mobilde farklı animasyon (yukarıdan değil aşağıdan gelsin) */
    #cd-bot-window.open {
        display: flex;
        animation: cdOpenMobile .25s ease;
    }

    @keyframes cdOpenMobile {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* İçerik alanı, form ve header daha rahat nefes alsın */
    .cd-bot-header {
        padding: 10px 14px;
    }

    .cd-bot-messages {
        padding: 10px;
        font-size: 13px;
    }

    #cd-bot-form {
        padding: 8px 10px;
    }

    #cd-bot-input {
        font-size: 13px;
        padding: 8px 10px;
    }

    #cd-bot-form button[type="submit"] {
        min-width: 40px;
        height: 34px;
        padding: 0 12px;
    }
}

.sub-card {
    position: fixed;
    bottom: 480px;
    right: 1rem;
    background-color: var(--color-neutral-gray-hex);
    padding: 1rem;
    border-radius: 16px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    max-width: 300px;
    text-align: center;
}

.sub-card::before {
    content: "";
    position: relative;
}
.sub-card h1{
    font-size: 1rem;
}
.sub-card img {
    position: absolute;
    bottom: 115px;
    left: -45px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.sub-card .btn-sub {
    position: relative;
    display: inline-block;
    padding: 5px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgb(255, 255, 255);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.35);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
    
}

.sub-card .btn-sub::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 149, 0, 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.sub-card .btn-sub::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(255, 149, 0, 0.5),
        inset -1px -1px 0 rgba(255, 149, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.sub-card .btn-sub:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
}

.sub-card .btn-sub:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 149, 0);
    border-radius: inherit;
    z-index: -2;
}


.sub-card .btn-danger {
    position: relative;
    display: inline-block;
    padding: 5px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgb(255, 255, 255);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.35);
    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
    margin-top: 12px;
}

.sub-card .btn-danger::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 59, 48, 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.sub-card .btn-danger::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255 .5 ),
        inset -1px -1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.sub-card .btn-danger:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.sub-card .btn-danger:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 59, 48);
    border-radius: inherit;
    z-index: -2;
}


.sub{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.sub h1{
    font-size: 1.5rem;
}

.sub p, .sub q{
    font-size: .8rem;
}

.sub .sub-input{
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 5px;
    margin-block: 15px;
}

.sub .sub-input input{
    border: none;
    padding: .8rem .5rem;
    border-radius: 16px;
    background-color: var(--color-neutral-gray-hex);
    color: var(--color-text-dark);
    font-weight: 600;
    outline: none;
}

.sub .sub-checkbox-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: .9rem;
    color: var(--color-text-dark);
    cursor: pointer;
}

.sub .sub-checkbox-area a{
    color: var(--color-text-dark);
    font-weight: 600;
}

.sub button {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        transform 0.15s ease-out,
        box-shadow 0.2s ease,
        color 0.2s ease;
    isolation: isolate;
}

.sub button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb), 0.8);
    border-radius: inherit;
    z-index: -2;
    transition: background 0.3s ease;
}

.sub button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 1px 1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset -1px -1px 0 rgba(var(--color-primary-dark-rgb), 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.sub button:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--color-primary-rgb));
    border-radius: inherit;
    z-index: -2;
}

.sub button:active {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--color-primary-dark-rgb), 0.4);
}

.sub button:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), .35);
    outline-offset: 2px;
    box-shadow: var(--shadow), 0 0 0 4px rgba(var(--color-primary-rgb), .16);
}
