/* ═══ Galeri — tam ekran sinema modu (masaüstü ve mobil ayrı tasarlandı) ═══ */
:root {
    --gx-bg: #0d1424;
    --gx-surface: #162038;
    --gx-line: rgba(255, 255, 255, .1);
    --gx-text: #f8fafc;
    --gx-muted: rgba(248, 250, 252, .62);
    --gx-amber: #8FB0EC;
    --gx-ease: cubic-bezier(.2, .8, .2, 1);
    --gx-top: 56px;
}

/* Site kabuğunu gizle: yalnızca <main> ve teklif popup'ı kalır */
body.gx-on { overflow: hidden; padding: 0 !important; background: var(--gx-bg); }
body.gx-on > *:not(main):not(dialog):not(script):not(style):not(link):not(.skip-link) { display: none !important; }
body.gx-on .skip-link { display: none; }

.gx, .gx * { box-sizing: border-box; }
.gx {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    background: var(--gx-bg); color: var(--gx-text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transition: opacity .5s ease;
}
.gx[data-ready="1"] { opacity: 1; }
.gx a { color: inherit; text-decoration: none; }
.gx button { font: inherit; color: inherit; cursor: pointer; }

/* ── Üst çubuk ── */
.gx-top {
    flex: none; height: var(--gx-top); display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right));
    background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gx-line); position: relative; z-index: 5;
}
.gx-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gx-muted); transition: color .2s, background .2s; }
.gx-back:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.gx-brand { position: absolute; left: 50%; transform: translateX(-50%); font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; pointer-events: none; }
.gx-brand b { color: var(--gx-amber); font-weight: 700; }
.gx-top-actions { display: flex; align-items: center; gap: 8px; }
.gx-iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gx-line); background: transparent; transition: background .2s, transform .35s var(--gx-ease); }
.gx-iconbtn:hover { background: rgba(255, 255, 255, .08); }
.gx-iconbtn:active { transform: rotate(180deg); }
.gx-cta { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #3d6fd9; color: #fff; font-weight: 700; font-size: 14px; transition: filter .2s, transform .2s; }
.gx-cta:hover { filter: brightness(1.08); }
.gx-cta:active { transform: scale(.97); }

/* ── Gövde ── */
.gx-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gx-rail { flex: none; position: relative; z-index: 4; }
.gx-rail-head { display: none; }
.gx-filters {
    display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; scroll-snap-type: x proximity;
    background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gx-line);
}
.gx-filters::-webkit-scrollbar { display: none; }
.gx-chip {
    flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--gx-line); background: transparent; font-size: 14px; font-weight: 600; color: var(--gx-muted);
    transition: background .25s, color .25s, border-color .25s;
}
.gx-chip em { font-style: normal; font-size: 12px; opacity: .6; }
.gx-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.gx-chip.is-on { background: #fff; color: #0f172a; border-color: #fff; }

/* Mobil ürün seçici */
.gx-fbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(7, 11, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--gx-line); }
.gx-fbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); font-weight: 700; font-size: 15px; text-align: left; transition: background .2s, transform .15s; }
.gx-fbtn:active { transform: scale(.98); background: rgba(255, 255, 255, .12); }
.gx-fbtn-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-fchev { color: var(--gx-muted); }
.gx-fcount { flex: none; font-size: 13px; color: var(--gx-muted); }
.gx-fcount b { color: var(--gx-amber); font-size: 15px; }
.gx-fbar + .gx-filters { display: none; }
.gx-fshuffle { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transition: background .2s, transform .35s var(--gx-ease); }
.gx-fshuffle:active { transform: rotate(180deg); background: rgba(255, 255, 255, .14); }

/* Mobil üst çubuk: sade — simge + marka + küçük buton */
@media (max-width: 899px) {
    .gx-top { height: 52px; }
    .gx-back { width: 38px; height: 38px; padding: 0; justify-content: center; border: 1px solid var(--gx-line); border-radius: 50%; }
    .gx-back span { display: none; }
    .gx-brand { font-size: 17px; }
    .gx-top-actions #gx-shuffle { display: none; }
    .gx-cta { height: 36px; padding: 0 14px; font-size: 13px; }
}

.gx-sheet { position: absolute; inset: 0; z-index: 25; display: flex; align-items: flex-end; }
.gx-sheet[hidden] { display: none; }
.gx-sheet-bg { position: absolute; inset: 0; background: rgba(2, 4, 9, .6); opacity: 0; transition: opacity .3s ease; }
.gx-sheet.is-open .gx-sheet-bg { opacity: 1; }
.gx-sheet-panel { position: relative; width: 100%; max-height: 82%; display: flex; flex-direction: column; background: #0d1424; border-radius: 22px 22px 0 0; border-top: 1px solid var(--gx-line); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .45s var(--gx-ease); }
.gx-sheet.is-open .gx-sheet-panel { transform: none; }
.gx-sheet-grab { width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .26); margin: 10px auto 0; }
.gx-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; font-size: 17px; font-family: 'Bricolage Grotesque', Inter, sans-serif; }
.gx-sheet-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); }
.gx-sheet-grid { overflow-y: auto; padding: 6px 14px 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gx-opt { position: relative; display: block; width: 100%; height: 118px; border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; background: #131c30; text-align: left; isolation: isolate; transition: transform .15s, border-color .2s; }
.gx-opt:active { transform: scale(.97); }
.gx-opt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gx-opt::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,20,36,0) 20%, rgba(13,20,36,.55) 58%, rgba(13,20,36,.94) 100%); }
.gx-opt-name { position: absolute; left: 12px; right: 12px; bottom: 11px; font-weight: 800; font-size: 16px; line-height: 1.15; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); font-family: 'Bricolage Grotesque', Inter, sans-serif; }
.gx-opt-count { position: absolute; top: 9px; right: 9px; min-width: 26px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: rgba(7, 11, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12px; font-weight: 800; color: #fff; }
.gx-opt.is-on { border-color: var(--gx-amber); box-shadow: 0 0 0 1px var(--gx-amber); }
.gx-opt.is-on .gx-opt-count { background: #3d6fd9; color: #fff; }
.gx-opt-check { position: absolute; top: 9px; left: 9px; width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; background: #3d6fd9; color: #fff; }
.gx-opt.is-on .gx-opt-check { display: grid; }
.gx-opt--all .gx-mosaic { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #0d1424; }
.gx-opt--all .gx-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-opt--all { grid-column: 1 / -1; height: 132px; }
.gx-opt--all .gx-opt-name { font-size: 20px; }
.gx-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-bottom: env(safe-area-inset-bottom); }
.gx-intro { padding: 28px 18px 18px; }
.gx-intro h1 { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; font-size: clamp(30px, 8vw, 44px); line-height: 1.04; letter-spacing: -.03em; }
.gx-intro p { margin: 10px 0 0; color: var(--gx-muted); font-size: 14px; }
.gx-empty { padding: 60px 18px; text-align: center; color: var(--gx-muted); }

/* ── Duvar (JS sütunlara dağıtır; JS yoksa düz ızgara) ── */
.gx-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 6px 28px; }
.gx-wall.is-cols { display: flex; align-items: flex-start; gap: 6px; }
.gx-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; will-change: transform; }
.gx-tile {
    position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--gx-surface);
    opacity: 0; transform: translateY(24px) scale(.985);
    transition: opacity .7s var(--gx-ease), transform .7s var(--gx-ease);
}
.gx-tile.in { opacity: 1; transform: none; }
.gx-tile img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.06); transition: filter .6s ease, transform .9s var(--gx-ease); }
.gx-tile.loaded img { filter: none; transform: none; }
.gx-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, .78)); opacity: 0; transition: opacity .35s; pointer-events: none; }
.gx-tag { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; transform: translateY(10px); opacity: 0; transition: opacity .35s, transform .35s var(--gx-ease); pointer-events: none; }
.gx-tag b { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.gx-tag i { font-style: normal; font-size: 12px; color: var(--gx-amber); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gx-tile:hover::after, .gx-tile:focus-visible::after { opacity: 1; }
.gx-tile:hover .gx-tag, .gx-tile:focus-visible .gx-tag { opacity: 1; transform: none; }
.gx-tile:hover img { transform: scale(1.05); }
.gx-tile:focus-visible { outline: 2px solid var(--gx-amber); outline-offset: -2px; }
@media (hover: none) { .gx-tag { opacity: 1; transform: none; } .gx-tile::after { opacity: 1; } .gx-tag i { display: none; } .gx-tag b { font-size: 13px; } }

/* ── Görüntüleyici ── */
.gx-view { position: absolute; inset: 0; z-index: 20; display: flex; overflow: hidden; touch-action: none; }
.gx-view[hidden] { display: none; }
.gx-view-bg { position: absolute; inset: 0; background: rgba(4, 7, 13, .97); opacity: 0; transition: opacity .35s ease; }
.gx-view.is-open .gx-view-bg { opacity: 1; }
.gx-stage { position: absolute; inset: 0; padding: 56px 12px 190px; overflow: hidden; }
.gx-img { position: absolute; left: 0; top: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform, opacity; transform-origin: 50% 50%; }
.gx-img.is-hidden { opacity: 0; pointer-events: none; }
.gx-fly { position: fixed; z-index: 30; margin: 0; object-fit: cover; border-radius: 6px; pointer-events: none; will-change: left, top, width, height; }
.gx-x, .gx-nav { position: absolute; z-index: 6; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gx-line); background: rgba(13, 20, 36, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s .15s, background .2s, transform .2s; }
.gx-view.is-open .gx-x, .gx-view.is-open .gx-nav { opacity: 1; }
.gx-x { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.gx-x:hover, .gx-nav:hover { background: rgba(255, 255, 255, .16); }
.gx-nav { top: 50%; margin-top: -22px; display: none; }
.gx-prev { left: 14px; } .gx-next { right: 14px; }
.gx-counter { position: absolute; z-index: 6; top: max(22px, calc(env(safe-area-inset-top) + 10px)); left: 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gx-muted); opacity: 0; transition: opacity .35s .15s; }
.gx-view.is-open .gx-counter { opacity: 1; }

/* Bilgi paneli: mobilde alttan çekmece */
.gx-info {
    position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; max-height: 78%;
    background: rgba(13, 20, 36, .92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid var(--gx-line); border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .5s var(--gx-ease);
}
.gx-view.is-open .gx-info { transform: translateY(0); }
.gx-info-toggle { display: block; width: 100%; height: 26px; border: 0; background: transparent; padding: 0; }
.gx-info-toggle span { display: block; width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); margin: 11px auto 0; }
.gx-info-in { padding: 4px 18px 16px; overflow-y: auto; max-height: calc(78vh - 30px); }
.gx-info:not(.is-open) .gx-caption, .gx-info:not(.is-open) .gx-links, .gx-info:not(.is-open) .gx-similar { display: none; }
.gx-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gx-amber); }
.gx-info h2 { margin: 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.gx-caption { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--gx-muted); }
.gx-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gx-links a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gx-line); font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s; }
.gx-links a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.gx-actions { display: flex; gap: 10px; margin-top: 16px; }
.gx-primary { flex: 1; height: 50px; border: 0; border-radius: 12px; background: #3d6fd9; color: #fff; font-weight: 800; font-size: 15px; transition: filter .2s, transform .15s; }
.gx-primary:hover { filter: brightness(1.08); }
.gx-primary:active { transform: scale(.98); }
.gx-share { flex: none; height: 50px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); font-weight: 700; font-size: 14px; transition: background .2s, transform .15s; }
.gx-share:hover { background: rgba(255, 255, 255, .13); }
.gx-share:active { transform: scale(.97); }
.gx-actions { position: relative; }
.gx-sharemenu { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 9; min-width: 230px; padding: 6px; border-radius: 14px; background: #162038; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: gxPop .22s var(--gx-ease); }
.gx-sharemenu[hidden] { display: none; }
@keyframes gxPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.gx-sharemenu a, .gx-sharemenu button { width: 100%; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 600; text-align: left; color: #fff; transition: background .15s; }
.gx-sharemenu a:hover, .gx-sharemenu button:hover { background: rgba(255, 255, 255, .09); }
.gx-sharemenu a svg { color: #4ade80; }
.gx-toast { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--gx-ease); white-space: nowrap; }
.gx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gx-similar { margin-top: 18px; }
.gx-similar-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gx-similar-row::-webkit-scrollbar { display: none; }
.gx-sim { flex: none; width: 84px; height: 62px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--gx-surface); opacity: .78; transition: opacity .2s, border-color .2s, transform .2s; }
.gx-sim:hover { opacity: 1; transform: translateY(-2px); }
.gx-sim img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══ Masaüstü ═══ */
@media (min-width: 900px) {
    :root { --gx-top: 64px; }
    .gx-body { flex-direction: row; }
    .gx-rail { width: 300px; flex: none; border-right: 1px solid var(--gx-line); display: flex; flex-direction: column; padding: 34px 26px 24px; overflow-y: auto; }
    .gx-rail-head { display: block; margin-bottom: 30px; }
    .gx-h { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; font-size: 32px; line-height: 1.04; letter-spacing: -.03em; }
    .gx-rail-head p { margin: 12px 0 0; color: var(--gx-muted); font-size: 14px; line-height: 1.55; }
    .gx-fbar, .gx-sheet { display: none !important; }
    .gx-fbar + .gx-filters { display: flex; }
    .gx-filters { flex-direction: column; gap: 2px; overflow: visible; padding: 0; background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .gx-chip { height: 48px; width: 100%; justify-content: space-between; border: 0; border-bottom: 1px solid var(--gx-line); border-radius: 0; padding: 0 2px; font-size: 17px; font-family: 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.01em; }
    .gx-chip:hover { background: transparent; padding-left: 10px; color: #fff; }
    .gx-chip { transition: padding .35s var(--gx-ease), color .2s; }
    .gx-chip.is-on { background: transparent; color: var(--gx-amber); border-color: var(--gx-amber); padding-left: 10px; }
    .gx-chip em { font-size: 13px; opacity: .7; }
    .gx-intro { display: none; }
    .gx-scroll { padding: 22px 22px 0; }
    .gx-wall { padding: 0 0 40px; gap: 14px; }
    .gx-wall.is-cols { gap: 14px; }
    .gx-col { gap: 14px; }
    .gx-tile { border-radius: 10px; }
    .gx-tag { padding: 18px; }
    .gx-tag b { font-size: 18px; }

    .gx-stage { padding: 72px 380px 40px 40px; }
    .gx-nav { display: grid; }
    .gx-prev { left: 24px; } .gx-next { right: 404px; }
    .gx-x { right: 24px; top: 16px; }
    .gx-counter { top: 28px; left: 28px; }
    .gx-info {
        left: auto; top: 0; width: 364px; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--gx-line);
        padding: 0; transform: translateX(100%); display: flex; flex-direction: column; background: rgba(10, 16, 30, .95);
    }
    .gx-view.is-open .gx-info { transform: none; }
    .gx-info-toggle { display: none; }
    .gx-info-in { padding: 84px 30px 30px; max-height: none; flex: 1; }
    .gx-info h2 { font-size: 30px; }
    .gx-info:not(.is-open) .gx-caption, .gx-info:not(.is-open) .gx-links, .gx-info:not(.is-open) .gx-similar { display: block; }
    .gx-links { display: flex; }
    .gx-similar-row { flex-wrap: wrap; overflow: visible; }
    .gx-sim { width: calc(33.333% - 6px); height: 70px; }
}
@media (min-width: 1500px) { .gx-rail { width: 340px; } .gx-stage { padding-right: 420px; } .gx-info { width: 404px; } .gx-next { right: 444px; } }

@media (prefers-reduced-motion: reduce) {
    .gx, .gx-tile, .gx-tile img, .gx-tag, .gx-info, .gx-view-bg, .gx-chip { transition: none !important; }
    .gx-scroll { scroll-behavior: auto; }
    .gx-tile { opacity: 1; transform: none; }
}

/* Site temasının koyu başlık rengi galeride okunmaz olmasın */
.gx h1, .gx h2, .gx h3 { color: var(--gx-text); }
