/* ==========================================================================
   yerlesim.css — logo (üst alan), arama bölümü, alt alan, yüzen öğeler, 404/bakım
   ========================================================================== */

/* ---- Üst alan: gradyan logo yazısı ------------------------------------- */

.ust-alan {
    position: relative;
    isolation: isolate;
    overflow-x: clip; /* arka plandaki ışık süsleri dar ekranda sayfayı yana genişletmesin */
}

/* Arka planda yüzen renkli ışık kümeleri */
.ust-alan::before,
.ust-alan::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
    animation: tdYuz 14s ease-in-out infinite;
}
.ust-alan::before { top: -140px; left: 8%;  width: 420px; height: 320px; background: #b9a6ff; }
.ust-alan::after  { top: -120px; right: 6%; width: 380px; height: 300px; background: #ffb3d1; animation-delay: -6s; }

.logo-kutusu {
    display: flex;
    justify-content: center;
    padding: clamp(22px, 4vw, 44px) var(--td-bosluk) clamp(6px, 1.5vw, 14px);
}
.logo-baglantisi { display: inline-block; text-decoration: none; }
/* Dar ekranda hesap düğmesi (sağ üst) logonun üstüne binmesin */
@media (max-width: 640px) {
    .logo-kutusu { padding-top: 64px; }
}
.logo-yazi {
    display: inline-block;
    margin: 0;
    padding: 0 .08em .1em;
    font-family: var(--td-yazi-baslik);
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
    text-align: center;
    background: var(--td-gradyan);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: tdGradyan 9s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(109, 74, 255, .18));
    transition: transform var(--td-gecis-yavas), filter var(--td-gecis);
}
.logo-baglantisi:hover .logo-yazi { transform: scale(1.025) rotate(-.6deg); filter: drop-shadow(0 10px 26px rgba(255, 77, 141, .28)); }

/* ---- Arama bölümü -------------------------------------------------------- */

.arama-bolumu { padding: 4px 0 clamp(18px, 2.4vw, 30px); text-align: center; }

.tema-bolumu { padding-bottom: clamp(24px, 4vw, 48px); }

/* ---- Alt alan ------------------------------------------------------------ */

main { display: block; min-height: 50vh; outline: none; }

.alt-alan {
    margin-top: clamp(28px, 4vw, 56px);
    padding-block: 4px;
    background: radial-gradient(900px 200px at 10% -40%, rgba(109, 74, 255, .3), transparent 60%),
                radial-gradient(800px 200px at 95% -30%, rgba(255, 77, 141, .22), transparent 60%),
                var(--td-koyu);
    color: #9ca0bd;
    font-size: .85rem;
}
.alt-alan a { color: #d6d9ee; }
.alt-alan a:hover { color: #fff; }
/* Kategori dizini (kapalı <details>): tarayıcılar için gerçek bağlantılar, ziyaretçi için hızlı gezinti */
.alt-dizin { padding-top: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.alt-dizin__ozet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    color: #d6d9ee;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.alt-dizin__ozet::-webkit-details-marker { display: none; }
.alt-dizin__ozet::before { content: "▸"; display: inline-block; transition: transform var(--td-gecis); }
.alt-dizin[open] .alt-dizin__ozet::before { transform: rotate(90deg); }
.alt-dizin__ozet:focus-visible { outline: 2px solid var(--td-altin); outline-offset: 3px; border-radius: 4px; }
.alt-dizin__ipucu { color: #7f84a3; font-weight: 500; }
.alt-dizin__ic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px 24px;
    padding-bottom: 18px;
}
.alt-dizin__ana { display: block; margin-bottom: 4px; color: #fff; font-weight: 700; }
.alt-dizin__ic ul { margin: 0; padding: 0; list-style: none; }
.alt-dizin__ic li { padding: 1px 0; }
.alt-dizin__ic a span { color: #7f84a3; font-size: .78em; }

.alt-telif {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-block: 18px;
}
.alt-telif p { margin: 0; }
.alt-imza a {
    font-weight: 700;
    color: var(--td-altin);
    border-bottom: 1px dashed rgba(245, 179, 1, .5);
}
.alt-imza a:hover { color: #ffd45e; border-bottom-style: solid; }
.alt-yasal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.alt-yasal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.alt-yasal a:hover { color: #fff; }

/* Yatay iPhone çentiği: kenar boşlukları güvenli alanı aşmasın */
@supports (padding: env(safe-area-inset-left)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ---- Yüzen öğeler -------------------------------------------------------- */

.yukari-cik {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--td-gradyan);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 10px 26px rgba(109, 74, 255, .4);
    opacity: 0;
    transform: translateY(14px) scale(.9);
    transition: opacity var(--td-gecis), transform var(--td-gecis), box-shadow var(--td-gecis);
}
.yukari-cik:not([hidden]) { opacity: 1; transform: none; }
.yukari-cik:hover { transform: translateY(-3px); animation: tdGradyan 3s ease infinite; }
.yukari-cik[hidden] { display: grid; visibility: hidden; }

.bildirim-alani {
    position: fixed;
    left: 50%; bottom: 24px;
    z-index: 200;
    display: grid;
    gap: 10px;
    width: min(92vw, 420px);
    transform: translateX(-50%);
    pointer-events: none;
}
.bildirim {
    padding: 14px 18px;
    border-radius: var(--td-yaricap);
    background: var(--td-koyu);
    color: #fff;
    font-size: .95rem;
    box-shadow: var(--td-golge-3);
    animation: tdGiris .35s ease both;
    pointer-events: auto;
}
.bildirim--basarili { border-left: 5px solid var(--td-basari); }
.bildirim--hata     { border-left: 5px solid var(--td-hata); }

/* ---- 404 / bakım --------------------------------------------------------- */

.hata-sayfasi { padding: clamp(30px, 6vw, 80px) 0; text-align: center; }
.hata-sayfasi__kod {
    margin: 0;
    font-family: var(--td-yazi-baslik);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
    background: var(--td-gradyan);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tdGradyan 8s ease infinite;
}
.hata-sayfasi p { color: var(--td-metin-soluk); }
.hata-sayfasi .arama-formu { margin-block: 26px; }
.hata-sayfasi__islem { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.sayfa-sade { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; background: var(--td-gradyan-yumusak); }
.bakim-sayfasi { max-width: 560px; padding: 40px 24px; text-align: center; }
.bakim-sayfasi p { color: var(--td-metin-soluk); }
