:root {
    --bg: #0b0f14;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --text: #e9eef5;
    --muted: #a7b0bd;
    --accent: #8ab4ff;
    --radius: 20px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 800px at 10% 10%, #122032, #0b0f14) fixed;
    color: var(--text);
    font-family: Poppins, system-ui, -apple-system, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* Glass */
.glass-nav,
.glass-footer,
.glass-card {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header */
header.glass-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .brand {
    font-weight: 700;
    font-size: 1.1rem
}

header nav a {
    margin-left: 16px;
    color: #dbe7ff
}

/* Footer - modern cam efekti */
footer.glass-footer {
    margin: 32px auto 16px;
    padding: 10px 16px;
    max-width: 480px;

    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--text);

    background: var(--glass2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    animation: fadeUp .6s ease;
}

footer.glass-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color .3s;
}

footer.glass-footer a:hover {
    color: #fff;
}

/* küçük giriş animasyonu */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    padding: 40px 16px;
    text-align: center
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 6px
}

.hero p {
    color: var(--muted);
    margin: 0 0 20px
}

/* Toolbar */
.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    margin: 8px 0 4px;
}

.search {
    display: flex;
    gap: 8px
}

.search input {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    min-width: 240px;
}

.search button {
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    font-weight: 600;
    color: #0b0f14;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.chip.active {
    background: var(--glass-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18)
}

@media(max-width:768px) {
    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch
    }

    .chip-row {
        justify-content: flex-start;
        overflow: auto;
        -webkit-overflow-scrolling: touch
    }
}

/* Grid */
.grid {
    display: grid;
    gap: 16px;
    padding: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card .thumb {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0f1720
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.card .meta {
    padding: 14px
}

.badge {
    font-size: .8rem;
    opacity: .8
}

.card h3 {
    margin: 8px 0 4px;
    font-size: 1.05rem
}

.card time {
    font-size: .9rem;
    color: var(--muted)
}

.empty {
    padding: 24px;
    text-align: center
}


/* ===========================
   3D MODAL & TILT CARD
   =========================== */
.modal-3d[aria-hidden="true"] {
    display: none
}

.modal-3d {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
}

.modal-3d .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity .18s ease;
}

.modal-3d.show .modal-backdrop {
    opacity: 1
}

.modal-3d .modal-content {
    position: relative;
    max-width: min(920px, 92vw);
    margin: 6vh auto;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(20px);
    opacity: 0;
    transition: all .18s ease;
}

.modal-3d.show .modal-content {
    transform: translateY(0);
    opacity: 1
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.14)
}

/* Perspective sahne */
.tilt-stage {
    perspective: 1400px;
    perspective-origin: 50% 40%;
    padding: 16px;
}

.tilt-card {
    position: relative;
    height: min(64vh, 560px);
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .18s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    background: #0d141d;
}

/* Katmanlar */
.layer {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
}

.layer-bg {
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.02);
    transform: translateZ(0px);
}

.layer-title {
    left: 28px;
    right: 28px;
    top: 26px;
    height: auto;
    display: flex;
    align-items: flex-start;
    font-weight: 700;
    font-size: clamp(24px, 3.6vw, 40px);
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    transform: translateZ(70px);
}

.layer-cat {
    left: 28px;
    bottom: 56px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    transform: translateZ(55px);
}

.layer-date {
    right: 28px;
    bottom: 26px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 500;
    letter-spacing: .2px;
    transform: translateZ(40px);
}

/* Parıltı */
.shine {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 65%);
    mix-blend-mode: screen;
    opacity: .75;
}


/* ========== 3D VIEWER (aynı sayfa overlay) ========== */
:root {
    --card-max-vh: 88vh;
}

@supports (height: 100dvh) {
    :root {
        --card-max-vh: 88dvh;
    }
}

.viewer.hidden {
    display: none;
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: stretch;
    background: radial-gradient(1600px 1000px at 50% 30%, rgba(14, 18, 24, .96) 0%, rgba(10, 12, 16, .96) 60%, rgba(6, 8, 10, .98) 100%);
    backdrop-filter: blur(3px);
}

.viewer-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1010;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.viewer-space {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .25), transparent 60%),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, .20), transparent 60%),
        radial-gradient(3px 3px at 80% 20%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(2px 2px at 30% 80%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(2px 2px at 90% 50%, rgba(255, 255, 255, .18), transparent 60%);
    opacity: .55;
    filter: blur(.5px);
}

.viewer-stage {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2.5vh, 24px);
    perspective: 1200px;
}

@media (max-width:540px) {
    .viewer-stage {
        perspective: 900px;
    }
}

.viewer-scene {
    width: 100%;
    max-width: min(96vw, 1200px);
    margin-inline: auto;
    transform-style: preserve-3d;
    cursor: pointer;
    max-height: var(--card-max-vh);
}

/* Kart: oran resme göre — JS ile --img-w/--img-h dolduruluyor */
.viewer-card {
    --img-w: 4;
    --img-h: 3;
    --ratio: calc(var(--img-w) / var(--img-h));
    aspect-ratio: var(--ratio);
    width: min(96vw, 1100px, calc(var(--card-max-vh) * var(--ratio)));
    height: auto;
    position: relative;
    margin: 0 auto;

    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .05);

    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--scale, 1));
    transform-style: preserve-3d;
    transition: transform .15s ease, box-shadow .25s ease;

    overflow: hidden;
    /* taşma yok */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: pan-y;
    padding: 0;
}

.viewer-card .layer {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.v-bg {
    background: center/contain no-repeat;
    /* JS ile image url atanıyor */
    transform: translateZ(-40px);
    filter: saturate(1.02) contrast(1.02) brightness(.98);
    background-color: #0B0E13;
    pointer-events: none;
}

.v-glare {
    position: absolute;
    inset: -40%;
    background: radial-gradient(500px 500px at 50% 50%, rgba(255, 255, 255, .18), transparent 60%);
    mix-blend-mode: screen;
    opacity: .85;
    pointer-events: none;
    transform: translateZ(80px);
}

.viewer-card .edgeLight {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(140deg, rgba(246, 196, 83, .25), rgba(255, 255, 255, .08), rgba(246, 196, 83, .20));
    opacity: .0;
    filter: blur(12px);
    pointer-events: none;
    transition: opacity .25s ease;
}

.viewer-card:hover .edgeLight {
    opacity: .35;
}

/* Üst rozetler */
.v-meta {
    left: 3%;
    right: 3%;
    top: 3%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    transform: translateZ(60px);
}

.v-title {
    left: 3%;
    right: 3%;
    bottom: 5%;
    transform: translateZ(85px);
}

.v-title h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(20px, calc(2.2vw + 12px), 30px);
    color: #FFE9B0;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 0 22px rgba(246, 196, 83, .16);
}

/* Butonlar: sadece MOBİL */
.viewer .btnrow {
    position: absolute;
    right: 3%;
    top: 3%;
    display: none;
    gap: 8px;
    transform: translateZ(70px);
}

@media (max-width:768px) {
    .viewer .btnrow {
        display: flex;
    }
}

.viewer .btn {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
}

/* Toast */
.viewer .toast {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .15);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    z-index: 1010;
}

.viewer .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Logo */
.logo-wrap{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  transform-origin: left center; transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}
.logo-wrap img{ height:44px; max-width:180px; object-fit:contain; border-radius:10px; display:block }
.logo-text{ font-weight:700; font-size:1.1rem; color:#e9eef5 }

@media (max-width:540px){
  .logo-wrap img{ height:36px; max-width:160px }
}

/* Scroll başlayınca logo gizle, en üste çıkınca göster */
body.logo-hidden .logo-wrap{
  opacity:0; transform: translateY(-10px) scale(.88); filter: blur(2px); pointer-events:none;
}


/* SOL-ÜST sabit hero logosu */
.hero-logo{
  position: fixed;
  left: max(16px, calc(env(safe-area-inset-left) + 12px));
  top:  max(16px, calc(env(safe-area-inset-top) + 12px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 4px;                     /* çok hafif nefes */
  backdrop-filter: blur(1px);       /* cam hissi çok hafif */
  -webkit-backdrop-filter: blur(1px);
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.hero-logo img{
  height: clamp(56px, 9vh, 120px);  /* masaüstünde büyük, mobilde uyumlu */
  max-width: 28vw;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.45));
  border-radius: 8px;               /* saydam PNG için kenar kumpas */
}

/* Fallback emoji/harf kullanırsanız: */
.hero-logo-fallback{
  font-size: clamp(28px, 5vh, 48px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* AŞAĞI KAYINCA GİZLE — en üste çıkınca geri gelsin */
body.logo-hidden .hero-logo{
  opacity: 0;
  transform: translateY(-10px) scale(.92);
  filter: blur(2px);
  pointer-events: none;
}

@media (max-width: 640px){
  .hero-logo{
    left: max(10px, calc(env(safe-area-inset-left) + 8px));
    top:  max(10px, calc(env(safe-area-inset-top) + 8px));
  }
  .hero-logo img{
    height: clamp(40px, 7.2vh, 88px);
    max-width: 50vw;
  }
}




/* Sol-üst sabit logo */
.hero-logo {
    position: fixed;
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
    top: max(12px, calc(env(safe-area-inset-top) + 12px));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.hero-logo img {
    height: clamp(48px, 8vh, 120px);
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45));
    border-radius: 8px;
}

/* Aşağı kayınca gizle; en üste çıkınca aç */
body.logo-hidden .hero-logo {
    opacity: 0;
    transform: translateY(-10px) scale(.92);
    filter: blur(2px);
    pointer-events: none;
}

/* ===== PAYLAŞIMLAR — Yeni Tasarım ===== */
.posts {
    --gap: clamp(14px, 2.4vw, 22px);
    --radius: 20px;
    --overlayBlur: 10px;
    margin-top: clamp(40px, 8vh, 80px);
}

/* Paylaşımlar başlık: ortala + sol/sağ solan çizgiler */
.posts .head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* sol çizgi – başlık – sağ çizgi */
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(10px, 2vh, 16px);
}

.posts .head h2 {
    margin: 0;
    color: #fff;
    letter-spacing: .3px;
    font-size: clamp(18px, 2.4vw, 28px);
    text-align: center;
}

/* solan çizgiler */
.posts .head::before,
.posts .head::after {
    content: "";
    height: 2px;
    display: block;
    border-radius: 999px;
}

.posts .head::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
}

.posts .head::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28));
}

/* eski tek çizgi elemanı varsa gizle */
.posts .head .rule {
    display: none !important;
}

/* PAYLAŞIMLAR GRID düzeni */
.post-grid {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
    justify-content: center;
    /* ortala */
    max-width: 1400px;
    /* toplam genişlik kısıtla */
    margin: 0 auto;
    /* ortala */
    padding: 0 clamp(16px, 4vw, 40px);
    /* yan boşluk */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

@media (min-width:1100px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Kart */
.post {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
    isolation: isolate;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    filter: saturate(1.03);
}

/* Kapak */
.post .cover {
    position: relative;
    aspect-ratio: 16 / 10;
    /* dengeli kırpma */
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.post .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.post:hover .cover img {
    transform: scale(1.06);
}

/* Parıltı */
.post::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .0;
    background: radial-gradient(600px 320px at var(--mx, 120%) var(--my, -20%),
            rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: screen;
    transition: opacity .25s ease;
}

.post:hover::after {
    opacity: .6;
}

/* Alt cam şerit */
.post .glassbar {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    backdrop-filter: blur(var(--overlayBlur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--overlayBlur)) saturate(140%);
    background: linear-gradient(135deg, rgba(28, 33, 43, .62), rgba(28, 33, 43, .34));
    border: 1px solid rgba(255, 255, 255, .16);
}

/* Başlık + tarih */
.post .title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(14px, 1.4vw, 18px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post time {
    color: #d7e4ff;
    opacity: .9;
    font-size: .9rem;
}

/* Sağ aksiyonlar */
.post .actions {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
}

.iconbtn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.iconbtn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
}

.iconbtn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Boş durum */
.posts .empty {
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .10);
    color: #eaf1ff;
    padding: 22px;
    text-align: center;
}

/* Daha sıkışık mobil cambar */
@media (max-width:460px) {
    .post .glassbar {
        padding: 8px 10px;
    }

    .iconbtn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}





:root {
    --page-bg: #0b0f14;
    --header-gap: 16px;

    /* banner chips */
    --chipW: clamp(200px, 22vw, 280px);
    --chipH: 64px;
    --chipActiveScale: 1.07;

    /* smart header */
    --nav-h: 58px;
    --nav-offset: calc(10px + env(safe-area-inset-top));

    /* about */
    --aboutMax: 1200px;
    --cardR: 22px;
    --glassBg1: rgba(255, 255, 255, .08);
    --glassBg2: rgba(255, 255, 255, .04);
    --glassBorder: rgba(255, 255, 255, .12);
    --neon1: #7c5cff;
    --neon2: #19d37e;
    --neon3: #23a3ff;
}

/* ====== LOGO (sol üst) ====== */
.hero-logo {
    position: fixed;
    left: max(36px, calc(env(safe-area-inset-left) + 36px));
    /* biraz sağa aldım */
    top: max(14px, calc(env(safe-area-inset-top) + 14px));
    z-index: 60;
    width: clamp(110px, 14vw, 170px);
    height: clamp(110px, 14vw, 170px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-logo-fallback {
    font-size: clamp(58px, 8vw, 88px);
    line-height: 1;
}

body.logo-hidden .hero-logo {
    opacity: 0;
    transform: translateY(-10px) scale(.92);
    filter: blur(2px);
    pointer-events: none;
}

/* ====== SMART HEADER ====== */
.smart-nav {
    position: fixed;
    left: 50%;
    top: var(--nav-offset);
    transform: translateX(-50%) translateY(-140%);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 14px;
    height: var(--nav-h);
    padding: 0 14px;
    border-radius: 999px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    width: clamp(320px, 84vw, 980px);
    transition: transform .35s ease, opacity .35s ease;
}

.smart-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.smart-nav .brand {
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    text-decoration: none;
    padding: 0 6px;
}

.smart-nav .links {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
}

.smart-nav .links a {
    color: #eaf1ff;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

.smart-nav .links a:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .10);
    display: none;
    place-items: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 4px auto;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width:760px) {
    .smart-nav {
        width: clamp(300px, 92vw, 640px)
    }

    .smart-nav .links {
        display: none
    }

    .nav-toggle {
        display: grid;
        margin-left: auto
    }
}

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.nav-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer .drawer-card {
    position: absolute;
    left: 50%;
    top: calc(var(--nav-offset) + var(--nav-h) + 8px);
    transform: translate(-50%, -10px);
    width: clamp(300px, 92vw, 640px);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
    padding: 14px;
    transition: transform .28s ease;
}

.nav-drawer.open .drawer-card {
    transform: translate(-50%, 0);
}

.nav-drawer .drawer-card a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 14px 12px;
    border-radius: 12px;
}

.nav-drawer .drawer-card a+a {
    margin-top: 6px;
}

.nav-drawer .drawer-card a:hover {
    background: rgba(255, 255, 255, .12);
}

/* ====== BANNER ====== */
.banner-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.banner-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.2, .65, .2, 1);
    will-change: transform;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.banner-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 800px at 10% 10%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .42)),
        linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .58));
    pointer-events: none;
    z-index: 1;
}

.banner-caption {
    position: absolute;
    left: clamp(16px, 6vw, 96px);
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    z-index: 4;
    max-width: min(46ch, 42vw);
    padding: 12px 16px;
    border-radius: 14px;
    -webkit-backdrop-filter: blur(6px);
}

.banner-caption h1 {
    margin: 0;
    font-size: clamp(20px, 2.6vw, 36px);
    letter-spacing: .3px;
}

.banner-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(90px, 22vh, 280px);
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(180deg, rgba(11, 14, 19, 0) 0%, rgba(11, 14, 19, .35) 55%, rgba(11, 14, 19, .75) 85%, var(--page-bg) 100%);
}

@media (max-width:540px) {
    .banner-bottom-fade {
        height: clamp(70px, 18vh, 220px);
    }
}

.banner-chips-wrap {
    position: absolute;
    left: 50%;
    bottom: max(6px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(92vw, 1200px);
    z-index: 5;
}

.banner-chips {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    padding: 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    user-select: none;
    cursor: grab;
}

.banner-chips:active {
    cursor: grabbing;
}

.banner-chips::-webkit-scrollbar {
    display: none;
}

.b-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: var(--chipW);
    height: var(--chipH);
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #eaf1ff;
    white-space: nowrap;
    font-weight: 700;
    font-size: 16px;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    transform: scale(1);
    transform-origin: center;
    will-change: transform;
    scroll-snap-align: center;
}

.b-chip .no {
    min-width: 36px;
    text-align: center;
    opacity: .9;
    font-weight: 800;
    letter-spacing: .3px;
}

.b-chip .tt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.b-chip.active {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .46);
    transform: scale(var(--chipActiveScale));
    z-index: 2;
}

main {
    margin-top: 0;
}

.after-banner {
    padding-top: clamp(60px, 11vh, 120px);
}

@media (max-width:540px) {
    .banner-caption {
        left: clamp(12px, 5vw, 48px);
        top: 50%;
        transform: translateY(-50%);
        max-width: 70vw;
    }

    .banner-chips-wrap {
        bottom: max(4px, env(safe-area-inset-bottom));
    }

    .after-banner {
        padding-top: clamp(48px, 9vh, 96px);
    }

    :root {
        --chipH: 58px;
        --chipW: clamp(170px, 42vw, 240px);
    }
}

/* hafif kenar vurgusu */
.hover-glow {
    --bcol: rgba(255, 255, 255, .10);
    border: 1px solid var(--bcol);
}

.hover-glow:hover {
    --bcol: rgba(255, 255, 255, .16);
}

/* ====== GRID kartları oval ====== */
.grid {
    --cardRadius: 22px;
}

.grid .card.glass-card {
    border-radius: var(--cardRadius);
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.grid .card .thumb,
.grid .card .thumb img {
    border-radius: inherit;
}

/* =========================================================
   HAKKIMIZDA — modern neon glass, çok animasyon
   ========================================================= */
.about-wrap {
    width: calc(100% - 32px);
    /* sağ & solda ~16px boşluk */
    margin: clamp(24px, 5vh, 56px) auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 24px);
    align-items: stretch;
}

/* sabit header çarpmasına karşı */
#galeri {
    scroll-margin-top: calc(var(--nav-h) + var(--nav-offset) + 20px);
}

html {
    scroll-behavior: smooth;
}

/* isterseniz kaldırabilirsiniz */


/* animasyonlu neon kenarlık: conic-gradient */
@keyframes spinHue {
    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.about-card {
    position: relative;
    height: 100%;
    border-radius: var(--cardR);
    padding: clamp(16px, 2.6vw, 24px);
    background:
        linear-gradient(180deg, var(--glassBg1), var(--glassBg2)) padding-box,
        conic-gradient(from 0deg, var(--neon1), var(--neon3), var(--neon2), var(--neon1)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
    animation: floatY 6s ease-in-out infinite;
}

.about-card::after {
    content: "";
    position: absolute;
    inset: -18%;
    pointer-events: none;
    background:
        radial-gradient(180px 220px at var(--shineX, 60%) var(--shineY, 0%), rgba(255, 255, 255, .16), transparent 62%),
        linear-gradient(to bottom, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
    opacity: .75;
    filter: blur(1px);
}

/* Reveal animasyonları */
.reveal {
    opacity: 0;
    transform: translateY(16px) scale(.98);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
}

/* === Profil kartı (tilt + avatar halo) === */
/* kart genel */
.about-profile {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.about-profile .tilt {
    transform-style: preserve-3d;
    transition: transform .12s linear;
    will-change: transform;
}

/* katman derinlikleri */
.about-profile {
    --z-avatar: 55px;
    --z-title: 40px;
    --z-sub: 28px;
    --z-stats: 34px;
    --z-btns: 22px;
}

/* elemanlar gerçekten yüzsün */
.about-profile .avatar,
.about-profile .title,
.about-profile .subtitle,
.about-profile #aboutStats,
.about-profile .about-actions {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, filter;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
}

.about-profile .avatar {
    transform: translateZ(var(--z-avatar));
}

.about-profile .title {
    transform: translateZ(var(--z-title));
}

.about-profile .subtitle {
    transform: translateZ(var(--z-sub));
}

.about-profile #aboutStats {
    transform: translateZ(var(--z-stats));
}

.about-profile .about-actions {
    transform: translateZ(var(--z-btns));
}

.about-profile:hover .avatar,
.about-profile:hover .title,
.about-profile:hover .subtitle,
.about-profile:hover #aboutStats,
.about-profile:hover .about-actions {
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .42));
}

/* istatistik kartçıkları da hafif kabarık */
.about-stat {
    transform: translateZ(8px);
    will-change: transform;
}

/* zemine düşen gölge (perspektife göre kayar) */
.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 70% at calc(50% + var(--sx, 0px)) calc(100% + 30px),
            rgba(0, 0, 0, .28), transparent 65%);
    transform: translateZ(-1px);
    opacity: .8;
}

.avatar {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-inline: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glassBorder);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .35);
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background:
        conic-gradient(var(--neon1), var(--neon3), var(--neon2), var(--neon1));
    filter: blur(8px);
    animation: spinHue 6s linear infinite;
    z-index: 0;
}

.avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.about-profile .title {
    font-weight: 900;
    font-size: 1.3rem;
    margin-top: 10px;
    text-align: center;
}

.about-profile .subtitle {
    text-align: center;
    opacity: .75;
}

/* istatistikler */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.about-stat {
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: translateY(8px);
    opacity: 0;
}

.about-stat.in {
    transform: none;
    opacity: 1;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s ease;
}

.about-stat .v {
    font-weight: 900;
    font-size: 1.15rem;
}

.about-stat .l {
    opacity: .7;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* butonlar */
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.about-actions .btn,
.about-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .10));
    border: 1px solid rgba(255, 255, 255, .24);
    transition: transform .2s ease, background .2s ease;
}

.about-actions a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .12));
}

/* === Metin kartı (collapse + drag scroll) === */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
}

.about-scroll {
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 16px 22px;
    line-height: 1.8;
    max-height: none;
    /* expanded default */
    overflow: auto;
    scroll-behavior: smooth;
}

/* collapse mask */
.about-text.is-collapsed .about-scroll {
    max-height: clamp(240px, 30vh, 360px);
    overflow: hidden auto;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
}

/* Devamını oku + Drag handle */
.about-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.about-more {
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    color: #0b0f14;
    background: #eaf1ff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}

.about-more:hover {
    transform: translateY(-2px);
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 800;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.drag-handle:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .55);
}

.drag-handle:active {
    cursor: grabbing;
}

/* parıldayan şerit animasyonu (metin kutusunun üstünde) */
.about-scroll::after {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    display: block;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: translateX(var(--shine, -100%));
    filter: blur(2px);
    opacity: .6;
}

/* mobil tek sütun */
@media (max-width:860px) {
    .about-wrap {
        grid-template-columns: 1fr;
    }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

    .about-card,
    .reveal,
    .about-stat {
        animation: none !important;
        transition: none !important;
    }
}

/* ====== BASIC PAGE ELEMENTS YOU ALREADY HAVE ====== */
.posts .post {
    border-radius: 18px;
    overflow: hidden;
}





/* --- Parıltı kill switch (hepsi) --- */
.about-card::after,
.about-scroll::after,
/* metin kutusunun üstündeki ince şerit */
.posts .post::before,
.posts .post::after,
.posts .post .glassbar::before,
.posts .post .glassbar::after,
.hover-glow::after {
    content: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Hover’da yükselme/saturate kapansın */
.about-card,
.hover-glow,
.posts .post {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}




/* === Hakkımızda -> İstatistik kutularında hover büyütme === */
.about-stats {
    position: relative;
}

.about-stat {
    transform: translateZ(0) scale(1);
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s ease,
        border-color .18s ease;
}

/* reveal sonrası temel pozisyon */
.about-stat.in {
    transform: translateZ(0) scale(1);
    opacity: 1;
}

/* mouse ile üstüne gelince veya klavye ile odaklanınca büyüt */
.about-stat:hover,
.about-stat:focus-visible {
    transform: translateZ(0) scale(1.06);
    z-index: 1;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    outline: none;
    border-color: rgba(255, 255, 255, .18);
}

/* hareketi azalt tercihi olanlara saygı */
@media (prefers-reduced-motion: reduce) {
    .about-stat {
        transition: none;
    }
}





/* ========= LIQUID GLASS – GERİ DÖNÜŞ ========= */
:root {
    --page-bg: #0b0f14;
    --text: #eaf1ff;
    --muted: #b9c4d3;

    /* cam yüzeyler */
    --glassA: rgba(255, 255, 255, .14);
    --glassB: rgba(255, 255, 255, .08);
    --glassBorder: rgba(255, 255, 255, .26);

    /* kart camı */
    --glassCardA: rgba(255, 255, 255, .06);
    --glassCardB: rgba(255, 255, 255, .03);
    --glassBorderSoft: rgba(255, 255, 255, .12);

    --glowShadow: 0 12px 36px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    --cardShadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

body {
    background: var(--page-bg);
    color: var(--text);
}

/* ÜST NAV + genel cam yüzey */
.smart-nav,
.nav-drawer .drawer-card,
.glass {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: linear-gradient(135deg, var(--glassA), var(--glassB)) !important;
    border: 1px solid var(--glassBorder) !important;
    box-shadow: var(--glowShadow) !important;
    color: var(--text);
}

/* Kartlar, about panelleri, grid kartları */
.glass-card,
.about-card,
.grid .card {
    background: linear-gradient(180deg, var(--glassCardA), var(--glassCardB)) !important;
    border: 1px solid var(--glassBorderSoft) !important;
    box-shadow: var(--cardShadow) !important;
    color: var(--text);
}

/* Post kartlarındaki cam bar */
.posts .post .glassbar {
    background: linear-gradient(135deg, var(--glassA), var(--glassB)) !important;
    border: 1px solid var(--glassBorder) !important;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* Banner chip butonları */
.b-chip {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    color: #eaf1ff !important;
}

.b-chip.active {
    background: rgba(255, 255, 255, .20) !important;
    border-color: rgba(255, 255, 255, .46) !important;
}

/* Arama alanı, chip vb. küçük cam elemanlar */
.gallery-toolbar .search input,
.gallery-toolbar .search button,
.chip {
    background: linear-gradient(135deg, var(--glassCardA), var(--glassCardB)) !important;
    border: 1px solid var(--glassBorderSoft) !important;
    color: var(--text) !important;
}

/* Buton stilleri (primary/ghost) */
.btn.primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78)) !important;
    color: #081018 !important;
    border: 1px solid rgba(255, 255, 255, .85) !important;
    box-shadow: 0 10px 28px rgba(255, 255, 255, .18), 0 8px 24px rgba(0, 0, 0, .35);
}

.btn.primary:hover {
    filter: saturate(1.05) brightness(1.02);
}

.btn.ghost {
    background: rgba(255, 255, 255, .10) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .16) !important;
}

/* Banner yazısı ve alt geçiş aynı paletle uyumlu kalsın */
.banner-caption {
    color: #fff;
}

.banner-bottom-fade {
    background: linear-gradient(180deg,
            rgba(11, 14, 19, 0) 0%,
            rgba(11, 14, 19, .35) 55%,
            rgba(11, 14, 19, .75) 85%,
            var(--page-bg) 100%) !important;
}

/* Metin tonları */
.muted,
.subtitle,
.meta time {
    color: var(--muted) !important;
}




/* Galeri kart hover */
.grid .hover-glow {
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
}

.grid .hover-glow:hover {
    transform: scale(1.035);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
/* hover’da değişmesin */

/* ====== WIKIPEDIA SONUÇLARI ====== */
.wiki-wrap {
    width: min(1200px, 92vw);
    margin: 64px auto 40px;
}

.wiki-head h2 {
    margin: 0 0 6px;
    font-size: clamp(18px, 2.1vw, 28px);
    font-weight: 900;
}

.wiki-head .muted {
    margin: 0 0 16px;
    opacity: .8;
}

.wiki-error,
.wiki-empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

@media (max-width:1000px) {
    .wiki-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .wiki-grid {
        grid-template-columns: 1fr;
    }
}

.wiki-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .18s ease, border-color .18s ease;
}

.wiki-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .18);
}

.wiki-card .thumb {
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}

.wiki-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.wiki-card .body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wiki-card .title {
    margin: 0;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.3;
}

.wiki-card .desc {
    margin: 0;
    color: #b9c4d3;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-card .actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.wiki-card .btn {
    font-weight: 800;
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
}

/* Toolbar’daki ikinci formun hafif ayrışması */
form.search.wiki input {
    width: 100%;
}

form.search.wiki button {
    white-space: nowrap;
}


.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 5vw;
    /* sağ ve sol boşluk az */
}

.search-container {
    width: 100%;
    max-width: 900px;
    /* geniş arama kutusu */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.search-container h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.search-container form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    outline: none;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.search-container button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ee0979, #ff6a00);
}


 .search-section {
     display: flex;
     justify-content: center
 }

 .search-container {
     width: min(900px, 92%);
     padding: 24px;
     border-radius: 16px;
     background: rgba(255, 255, 255, 0.07);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.15);
     color: #e9eef6
 }

 .search-container h2 {
     margin: 0 0 14px
 }

 #wikiForm {
     display: flex;
     flex-direction: column;
     gap: 10px
 }

 #wikiForm input {
     padding: 12px 14px;
     border-radius: 12px;
     border: 1px solid rgba(255, 255, 255, .2);
     background: rgba(0, 0, 0, .3);
     color: #fff;
     outline: none
 }

 .btn-row {
     display: flex;
     gap: 10px;
     flex-wrap: wrap
 }

 .btn-row button {
     padding: 10px 14px;
     border: 0;
     border-radius: 12px;
     cursor: pointer;
     font-weight: 600
 }

 .btn-row button[type=submit] {
     background: #8ab4ff;
     color: #0b0f14
 }

 .btn-row .ai-btn {
     background: #00d4a7;
     color: #0b0f14
 }

 .ai-result {
     margin-top: 16px
 }

 .ai-card {
     display: grid;
     grid-template-columns: 160px 1fr;
     gap: 16px;
     padding: 16px;
     border-radius: 16px;
     border: 1px solid rgba(255, 255, 255, .15);
     background: rgba(255, 255, 255, .06)
 }

 .ai-thumb {
     width: 100%;
     height: 160px;
     border-radius: 12px;
     object-fit: cover;
     background: #111
 }

 .ai-title {
     margin: 0 0 8px;
     font-size: 1.25rem
 }

 .ai-badges {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
     margin: 8px 0
 }

 .ai-badge {
     padding: 6px 10px;
     border-radius: 999px;
     background: rgba(255, 255, 255, .12);
     font-size: .85rem
 }

 .ai-actions {
     display: flex;
     gap: 10px;
     margin-top: 10px;
     flex-wrap: wrap
 }

 .ai-actions a,
 .ai-actions button {
     padding: 8px 12px;
     border-radius: 10px;
     border: 1px solid rgba(255, 255, 255, .15);
     background: rgba(0, 0, 0, .25);
     color: #fff;
     text-decoration: none;
     cursor: pointer
 }

 .ai-loading {
     padding: 14px;
     border-radius: 12px;
     background: rgba(255, 255, 255, .06);
     border: 1px dashed rgba(255, 255, 255, .2);
     font-style: italic
 }

 @media (max-width:640px) {
     .ai-card {
         grid-template-columns: 1fr
     }

     .ai-thumb {
         height: 200px
     }
 }




.ai-search-wrap {
    display: flex;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) 9px;
    /* sağ/sol boşluk ≈1–2mm */
}

.ai-search-card {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    padding: clamp(20px, 2.5vw, 32px);
    position: relative;
    overflow: hidden;
}

 /* Dekoratif parıltı */
 .ai-search-card::before {
     content: "";
     position: absolute;
     inset: -40% -20% auto -20%;
     height: 70%;
     background: conic-gradient(from 120deg, rgba(138, 180, 255, .18), rgba(0, 212, 167, .14), rgba(255, 106, 0, .18), transparent 55%);
     filter: blur(28px);
     pointer-events: none;
 }

 .ai-search-head h2 {
     margin: 0;
     font-size: clamp(18px, 2.3vw, 28px);
     font-weight: 900;
     letter-spacing: .2px;
 }

 .ai-search-head p {
     margin: 8px 0 18px;
     opacity: .85;
     font-size: clamp(13px, 1.2vw, 14.5px)
 }

 .ai-search-form {
     display: flex;
     flex-direction: column;
     gap: 12px
 }

 /* Giriş satırı */
 .ai-input {
     display: grid;
     grid-template-columns: 40px 1fr auto auto;
     gap: 10px;
     align-items: center;
     padding: 10px;
     border-radius: 16px;
     background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25));
     border: 1px solid rgba(255, 255, 255, .14);
     transition: box-shadow .25s ease, border-color .25s ease, transform .08s ease;
 }

 .ai-input:focus-within {
     box-shadow: 0 0 0 6px rgba(138, 180, 255, .12), 0 8px 28px rgba(0, 0, 0, .35);
     border-color: rgba(138, 180, 255, .55);
     transform: translateY(-1px);
 }

 .ai-input-icon {
     display: grid;
     place-items: center;
     font-size: 20px;
     opacity: .9
 }

 .ai-input input {
     width: 100%;
     height: 46px;
     border: 0;
     outline: 0;
     color: #fff;
     font-size: 16px;
     border-radius: 12px;
     padding: 0 12px;
     background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
     box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
 }

 .ai-input input::placeholder {
     color: rgba(233, 238, 246, .75)
 }

 /* Butonlar */
 .btn {
     --pad-x: 16px;
     --pad-y: 12px;
     height: 46px;
     padding: var(--pad-y) var(--pad-x);
     border: 0;
     border-radius: 12px;
     font-weight: 800;
     cursor: pointer;
     transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
     white-space: nowrap;
 }

 .btn:active {
     transform: translateY(1px)
 }

 .btn-ghost {
     background: rgba(255, 255, 255, .10);
     color: #e9eef6;
     border: 1px solid rgba(255, 255, 255, .18);
 }

 .btn-ghost:hover {
     filter: brightness(1.1)
 }

 .btn-primary {
     background: linear-gradient(135deg, #00d4a7, #12b2ff 40%, #8ab4ff);
     color: #0b0f14;
     box-shadow: 0 8px 20px rgba(0, 212, 167, .25);
 }

 .btn-primary:hover {
     filter: saturate(1.1)
 }

 /* Örnek konu chip’leri */
 .ai-suggestions {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
     margin-top: 4px
 }

 .ai-suggestions button {
     padding: 10px 12px;
     border-radius: 999px;
     border: 1px solid rgba(255, 255, 255, .16);
     background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .05));
     color: #e9eef6;
     cursor: pointer;
     font-weight: 700;
     font-size: .92rem;
     transition: transform .12s ease, border-color .2s ease, background .2s ease;
 }

 .ai-suggestions button:hover {
     transform: translateY(-1px);
     border-color: rgba(138, 180, 255, .55);
 }

 /* AI sonuç kartı (mevcut sınıfları koruduk) */
 .ai-result {
     margin-top: 14px
 }

 .ai-card {
     display: grid;
     grid-template-columns: 160px 1fr;
     gap: 16px;
     padding: 16px;
     border-radius: 18px;
     background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .04));
     border: 1px solid rgba(255, 255, 255, .14);
     box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
 }

 .ai-thumb {
     width: 100%;
     height: 160px;
     object-fit: cover;
     border-radius: 14px;
     background: #0e1116
 }

 .ai-title {
     margin: 0 0 6px;
     font-size: clamp(18px, 2vw, 22px);
     font-weight: 900
 }

 .ai-badges {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
     margin: 8px 0
 }

 .ai-badge {
     padding: 6px 10px;
     border-radius: 999px;
     background: rgba(255, 255, 255, .12);
     font-size: .86rem;
     border: 1px solid rgba(255, 255, 255, .14)
 }

 .ai-actions {
     display: flex;
     gap: 10px;
     margin-top: 10px;
     flex-wrap: wrap
 }

 .ai-actions a,
 .ai-actions button {
     padding: 8px 12px;
     border-radius: 10px;
     border: 1px solid rgba(255, 255, 255, .15);
     background: rgba(0, 0, 0, .25);
     color: #fff;
     text-decoration: none;
     cursor: pointer
 }

 .ai-loading {
     padding: 14px;
     border-radius: 12px;
     background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .1), rgba(255, 255, 255, .06));
     background-size: 300% 100%;
     animation: shimmer 1.4s ease-in-out infinite;
     border: 1px dashed rgba(255, 255, 255, .22);
     font-style: italic
 }

 @keyframes shimmer {
     0% {
         background-position: 0% 0
     }

     100% {
         background-position: 100% 0
     }
 }

 @media (max-width:860px) {
     .ai-input {
         grid-template-columns: 40px 1fr;
         grid-auto-rows: auto
     }

     .ai-input .btn {
         margin-top: 8px
     }
 }

 @media (max-width:640px) {
     .ai-card {
         grid-template-columns: 1fr
     }

     .ai-thumb {
         height: 200px
     }
 }

/* ===== SMART AI SEARCH (modern glass) ===== */
.ai-search-wrap {
    display: flex;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px) 3px;
}

.ai-search-card {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    padding: clamp(20px, 2.5vw, 32px);
    position: relative;
    overflow: hidden;
}

.ai-search-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background: conic-gradient(from 120deg, rgba(138, 180, 255, .18), rgba(0, 212, 167, .14), rgba(255, 106, 0, .18), transparent 55%);
    filter: blur(28px);
    pointer-events: none;
}

.ai-search-head h2 {
    margin: 0;
    font-size: clamp(18px, 2.3vw, 28px);
    font-weight: 900;
    letter-spacing: .2px
}

.ai-search-head p {
    margin: 8px 0 18px;
    opacity: .85;
    font-size: clamp(13px, 1.2vw, 14.5px)
}

.ai-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ai-input {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25));
    border: 1px solid rgba(255, 255, 255, .14);
    transition: box-shadow .25s ease, border-color .25s ease, transform .08s ease;
}

.ai-input:focus-within {
    box-shadow: 0 0 0 6px rgba(138, 180, 255, .12), 0 8px 28px rgba(0, 0, 0, .35);
    border-color: rgba(138, 180, 255, .55);
    transform: translateY(-1px)
}

.ai-input-icon {
    display: grid;
    place-items: center;
    font-size: 20px;
    opacity: .9
}

.ai-input input {
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}

.ai-input input::placeholder {
    color: rgba(233, 238, 246, .75)
}

.btn {
    --pad-x: 16px;
    --pad-y: 12px;
    height: 46px;
    padding: var(--pad-y) var(--pad-x);
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
    white-space: nowrap
}

.btn:active {
    transform: translateY(1px)
}

.btn-ghost {
    background: rgba(255, 255, 255, .10);
    color: #e9eef6;
    border: 1px solid rgba(255, 255, 255, .18)
}

.btn-ghost:hover {
    filter: brightness(1.1)
}

.btn-primary {
    background: linear-gradient(135deg, #00d4a7, #12b2ff 40%, #8ab4ff);
    color: #0b0f14;
    box-shadow: 0 8px 20px rgba(0, 212, 167, .25)
}

.btn-primary:hover {
    filter: saturate(1.1)
}

.ai-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px
}

.ai-suggestions button {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .05));
    color: #e9eef6;
    cursor: pointer;
    font-weight: 700;
    font-size: .92rem;
    transition: transform .12s ease, border-color .2s ease, background .2s ease;
}

.ai-suggestions button:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 180, 255, .55)
}

.ai-result {
    margin-top: 14px
}

.ai-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.ai-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    background: #0e1116
}

.ai-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 900
}

.ai-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0
}

.ai-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .86rem;
    border: 1px solid rgba(255, 255, 255, .14)
}

.ai-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

.ai-actions a,
.ai-actions button {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .25);
    color: #fff;
    text-decoration: none;
    cursor: pointer
}

.ai-loading {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .1), rgba(255, 255, 255, .06));
    background-size: 300% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border: 1px dashed rgba(255, 255, 255, .22);
    font-style: italic
}

@keyframes shimmer {
    0% {
        background-position: 0% 0
    }

    100% {
        background-position: 100% 0
    }
}

@media (max-width:860px) {
    .ai-input {
        grid-template-columns: 40px 1fr;
        grid-auto-rows: auto
    }

    .ai-input .btn {
        margin-top: 8px
    }
}

@media (max-width:640px) {
    .ai-card {
        grid-template-columns: 1fr
    }

    .ai-thumb {
        height: 200px
    }
}

/* ===== QUIZ MODAL ===== */
.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none
}

.quiz-modal[aria-hidden="false"] {
    display: block
}

.quiz-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, .65);
    backdrop-filter: blur(6px);
    opacity: 0;
    animation: quizFade .22s ease forwards
}

.quiz-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%) scale(.98);
    width: min(720px, 92vw);
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #e9eef6;
    opacity: 0;
    animation: quizPop .22s cubic-bezier(.2, .7, .3, 1) .05s forwards;
    outline: none
}

.quiz-header,
.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .10)
}

.quiz-footer {
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-bottom: none
}

.quiz-header h3 {
    margin: 0;
    font-weight: 900;
    font-size: clamp(18px, 2vw, 22px)
}

.quiz-close {
    border: 0;
    background: transparent;
    color: #e9eef6;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px
}

.quiz-close:hover {
    background: rgba(255, 255, 255, .10)
}

.quiz-body {
    padding: 10px 18px 16px;
    max-height: min(60vh, 520px);
    overflow: auto
}

.quiz-list {
    margin: 8px 0 0;
    padding: 0 0 0 22px;
    display: grid;
    gap: 12px
}

.quiz-list li {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 12px 14px;
    line-height: 1.6
}

@keyframes quizPop {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1)
    }
}

@keyframes quizFade {
    to {
        opacity: 1
    }
}


:root {
    --container-max: 1400px;
    /* genişlik sınırı */
    --page-gutter: clamp(2px, 0.5vw, 6px);
    /* kenar boşluğu: 1–2mm */
}

/* Tüm ortak bölümler aynı hizaya gelsin */
.ai-search-wrap,
.about-wrap,
.gallery-toolbar,
#galeri,
#yazilar {
    box-sizing: border-box;
    max-width: var(--container-max);
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}


/* === GALERİ: Parıltıyı GÜÇLÜ yap + katmanlamayı düzelt === */
body .grid .hover-glow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* blend'i kart içinde tut */
    z-index: 0;
    /* stacking context */
}

/* Parıltı katmanı */
body .grid .hover-glow::after {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: 1;
    /* içeriğin ÜSTÜNDE */
    pointer-events: none;

    /* DAHA BÜYÜK ve DAHA PARLAK */
    background:
        radial-gradient(360px 260px at var(--mx, 50%) var(--my, 50%),
            rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 62%),
        radial-gradient(720px 520px at var(--mx, 50%) var(--my, 50%),
            rgba(138, 180, 255, .18), rgba(0, 0, 0, 0) 70%);

    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity .15s ease;
}

body .grid .hover-glow:hover::after {
    opacity: .95;
    /* görünürlüğü arttır */
}

/* Kenar ışıltısı (hafif) */
body .grid .hover-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 220% at var(--mx, 50%) var(--my, 50%),
            rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
    opacity: .35;
    transition: opacity .15s ease;
}

body .grid .hover-glow:hover::before {
    opacity: .5;
}

/* Hover’da hafif canlanma */
body .grid .hover-glow {
    --lift: -2px;
    transform: translateY(0);
    transition: transform .18s ease, filter .18s ease;
}

body .grid .hover-glow:hover {
    transform: translateY(var(--lift));
    filter: saturate(1.05);
}


/* --- SMART AI SEARCH: canlı renk animasyonları --- */

/* Conic gradient başlangıç açısını animasyonla kontrol edeceğiz */
@property --spin {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Kartın içindeki dekoratif conic-gradient’i döndür */
.ai-search-card::before {
    /* mevcut stil kalsın; sadece ekler: */
    animation: aiSpin 9s linear infinite;
    /* mevcut background'ı var; "from 120deg" yerine değişken kullan */
    background: conic-gradient(from var(--spin),
            rgba(138, 180, 255, .18),
            rgba(0, 212, 167, .14),
            rgba(255, 106, 0, .18),
            transparent 55%);
}

@keyframes aiSpin {
    to {
        --spin: 360deg;
    }
}

/* Kartın arka planını çok hafif nefes aldır (parlaklık) */
.ai-search-card {
    animation: aiBreath 6.5s ease-in-out infinite;
}

@keyframes aiBreath {

    0%,
    100% {
        filter: saturate(1) brightness(1);
    }

    50% {
        filter: saturate(1.08) brightness(1.04);
    }
}

/* Bir de yumuşak akan bir “cam ışıltısı” ekleyelim */
.ai-search-card::after {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 60%;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
        radial-gradient(280px 220px at 20% 10%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(220px 180px at 80% 30%, rgba(138, 180, 255, .12), transparent 60%);
    opacity: .55;
    filter: blur(10px);
    animation: aiGlare 10s ease-in-out infinite;
}

@keyframes aiGlare {
    0% {
        transform: translateX(-8%) translateY(-4%);
        opacity: .45;
    }

    50% {
        transform: translateX(6%) translateY(2%);
        opacity: .65;
    }

    100% {
        transform: translateX(-8%) translateY(-4%);
        opacity: .45;
    }
}

/* Odaklanınca giriş satırının sınırı hafif renk döndürsün */
.ai-input {
    --ring: 0deg;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25));
    border-image: conic-gradient(from var(--ring),
            #8ab4ff 10%, #00d4a7 40%, #ff6a00 70%, #8ab4ff 100%) 1;
    border: 1px solid transparent;
    /* border-image için */
}

.ai-input:focus-within {
    animation: aiRing 7s linear infinite;
    box-shadow: 0 0 0 6px rgba(138, 180, 255, .12), 0 8px 28px rgba(0, 0, 0, .35);
}

@keyframes aiRing {
    to {
        --ring: 360deg;
    }
}

/* Primary butonun degrade akışı */
.btn-primary {
    background: linear-gradient(135deg, #00d4a7, #12b2ff 40%, #8ab4ff);
    background-size: 200% 200%;
    animation: aiBtnFlow 6s ease-in-out infinite;
}

@keyframes aiBtnFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hover’da animasyon hızlansın (dokunmatik dışı cihazlar için) */
@media (hover:hover) {
    .ai-search-card:hover::before {
        animation-duration: 6.5s;
    }

    .btn-primary:hover {
        animation-duration: 3.2s;
    }
}

/* Hareketi azalt tercihi olanlara saygı */
@media (prefers-reduced-motion: reduce) {

    .ai-search-card,
    .ai-search-card::before,
    .ai-search-card::after,
    .ai-input:focus-within,
    .btn-primary {
        animation: none !important;
    }
}

/* Kilidi ezerek uygulanacak hover */
.grid .card.hover-glow:hover,
.grid .glass-card.hover-glow:hover,
.grid .hover-glow:hover {
    transform: scale(1.035) !important;
    filter: none !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

/* ------- NEW: Minimal floating badge footer ------- */
.badge-footer {
    --bgA: rgba(255, 255, 255, .12);
    --bgB: rgba(255, 255, 255, .06);
    --bd: rgba(255, 255, 255, .22);

    position: relative;
    margin: 28px auto 18px;
    padding: 8px 14px;
    max-width: 720px;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    row-gap: 6px;
    flex-wrap: wrap;
    justify-content: center;

    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);

    background: linear-gradient(135deg, var(--bgA), var(--bgB));
    border: 1px solid var(--bd);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
    isolation: isolate;
}

/* subtle edge glow */
.badge-footer::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 180% at 50% -30%, rgba(255, 255, 255, .18), transparent 60%);
    opacity: .55;
    mix-blend-mode: screen;
}

/* center it nicely in page width */
footer.glass-footer.badge-footer {
    display: flex;
}

/* dots & separators */
.badge-footer .dot {
    opacity: .95;
    color: #fff;
    font-weight: 700;
}

.badge-footer .sep {
    opacity: .6;
    margin: 0 2px;
}

/* link style */
.badge-footer .owner {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease, transform .12s ease;
}

.badge-footer .owner:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    transform: translateY(-1px);
}

/* make it compact on small screens */
@media (max-width:540px) {
    .badge-footer {
        font-size: 12px;
        gap: 6px;
        padding: 8px 12px;
        margin: 22px auto 14px;
    }

    .badge-footer .sep {
        display: none;
    }

    /* mobilde noktaları gizleyip daha sade yap */
}


/* Modern Cam Efektli Footer */
.modern-footer {
    --bgA: rgba(255, 255, 255, .12);
    --bgB: rgba(255, 255, 255, .06);
    --bd: rgba(255, 255, 255, .18);

    margin: 30px auto 18px;
    padding: 10px 20px;
    max-width: 640px;

    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: var(--muted);

    background: linear-gradient(135deg, var(--bgA), var(--bgB));
    border: 1px solid var(--bd);
    border-radius: 14px;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);

    animation: fadeUp .6s ease;
}

.modern-footer .owner {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color .3s;
}

.modern-footer .owner:hover {
    color: #fff;
}

.modern-footer .line2 {
    margin-top: 4px;
    font-size: 12px;
    opacity: .8;
}

/* küçük fade efekti */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*iletişim kısmı*/


/* ====== İLETİŞİM TASARIMI ====== */
:root {
    --acc: #8ab4ff;
    /* ana vurgu */
    --glass-bg: rgba(255, 255, 255, .06);
    --glass-br: rgba(255, 255, 255, .18);
    --muted: #a9bad2;
    --txt: #e9eef6;
    --ok-bg: rgba(138, 180, 255, .12);
    --ok-br: rgba(138, 180, 255, .35);
    --err-bg: rgba(255, 110, 110, .12);
    --err-br: rgba(255, 110, 110, .35);
}

.contact-wrap {
    margin: 36px auto 28px;
    padding: 0 clamp(14px, 4vw, 22px);
    max-width: 1200px;
}

.contact-grid {
    display: grid;
    gap: clamp(12px, 2vw, 18px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 940px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    position: relative;
    border-radius: 18px;
    padding: clamp(14px, 2vw, 18px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    border: 1px solid var(--glass-br);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
    isolation: isolate;
}

.contact-card::after {
    /* hafif neon parıltı */
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(600px 120px at var(--mx, 60%) -10%, rgba(138, 180, 255, .14), transparent 60%),
        radial-gradient(300px 90px at 20% 120%, rgba(255, 255, 255, .06), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.contact-head {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.contact-head h2 {
    margin: 0 0 2px;
    font-weight: 800;
    letter-spacing: .2px;
}

.contact-head p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(138, 180, 255, .18), rgba(138, 180, 255, .08));
    border: 1px solid var(--ok-br);
    font-size: 26px;
    transform: translateZ(0);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 12px;
    display: grid;
    gap: 8px;
}

.contact-list li {
    display: grid;
    gap: 10px;
    grid-template-columns: 40px 1fr;
    padding: 10px 10px;
    border: 1px solid var(--glass-br);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.contact-list .ci {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-br);
    background: rgba(255, 255, 255, .06);
    font-size: 18px;
}

.contact-list .cd-label {
    color: var(--muted);
    font-size: .9rem;
}

.contact-list .cd-link {
    color: var(--txt);
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
}

.contact-list .cd-link:hover {
    color: var(--acc);
}

/* Sosyal linkler (pill) */
.socials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.social-pill {
    --bd: rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: rgba(255, 255, 255, .05);
    color: var(--txt);
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.social-pill:hover {
    transform: translateY(-1px);
    border-color: var(--acc);
    background: rgba(138, 180, 255, .08);
}

/* Form */
.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form .row-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
    .contact-form .row-2 {
        grid-template-columns: 1fr;
    }
}

.contact-form .field label {
    display: block;
    margin: 3px 0 6px;
    color: var(--muted);
    font-weight: 600;
}

.contact-form .field input,
.contact-form .field textarea {
    width: 100%;
    border-radius: 14px;
    outline: 0;
    border: 1px solid var(--glass-br);
    background: rgba(255, 255, 255, .06);
    color: var(--txt);
    padding: 12px 14px;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(138, 180, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.contact-form .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* CTA düğmeleri */
.btn-cta {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .2px;
    background: linear-gradient(135deg, #8ab4ff, #a7c6ff);
    color: #0b0f14;
    box-shadow: 0 10px 24px rgba(138, 180, 255, .25);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.btn-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-ghost {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--glass-br);
    background: rgba(255, 255, 255, .05);
    color: var(--txt);
    cursor: pointer;
    font-weight: 800;
}

.btn-ghost:hover {
    border-color: var(--acc);
}

/* Alert */
.contact-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--glass-br);
}

.contact-alert.ok {
    background: var(--ok-bg);
    border-color: var(--ok-br);
    color: #d7e6ff;
}

.contact-alert.error {
    background: var(--err-bg);
    border-color: var(--err-br);
    color: #ffd2d2;
}

/* hover-parıltısı için mouse pozisyonu */
.contact-card:hover {
    will-change: transform;
}

.contact-card:hover {
    transform: translateY(-1px);
}

.contact-card {
    transition: transform .18s ease;
}

.contact-card:hover {
    transition: transform .12s ease;
}

.contact-card {
    /* JS yoksa da hafif efekt */
    background-image:
        radial-gradient(1000px 200px at 80% -30%, rgba(138, 180, 255, .06), transparent 60%),
        radial-gradient(600px 100px at 10% 120%, rgba(255, 255, 255, .04), transparent 60%);
}

/* Honeypot input gizle */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Yumuşak kaydırma */
html {
    scroll-behavior: smooth;
}

/* Üst sabit menü yüksekliği kadar boşluk bırakarak hedefe oturur */
#iletisim {
    scroll-margin-top: 90px;
    /* header yüksekliğine göre ayarlayabilirsiniz (72–100px arası) */
}

/* Başlıkların görünümü "Paylaşımlar" ile uyumlu kalsın diye min tweak (gerekirse) */
.contact-wrap>.head {
    margin: 24px 0 10px;
}

.contact-wrap>.head h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: .2px;
}.contact-section {
    text-align: center;
    margin: 60px auto;
    position: relative;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    position: relative;
    padding: 0 24px;
    letter-spacing: 2px;
}

.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 220px;
    /* çizgi uzunluğu */
    height: 3px;
    /* çizgi kalınlığı */
}

.section-title::before {
    right: 100%;
    margin-right: 20px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.section-title::after {
    left: 100%;
    margin-left: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}



.contact-wrap {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px
}

.glass-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px)
}

.contact-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.contact-icon {
    font-size: 32px
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px
}

.contact-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px
}

.contact-alert.ok {
    background: #d4edda;
    color: #155724
}

.contact-alert.error {
    background: #f8d7da;
    color: #721c24
}

.contact-form .field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    color: #fff
}

.contact-form label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #eee
}

.btn-cta {
    background: #8ab4ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer
}

.hp {
    display: none
}