/* =====================================================================
   GORSEL GORUNTULEYICI
   ---------------------------------------------------------------------
   Teknik cizimleri tam ekranda, yakinlastirilabilir ve kaydirilabilir
   sekilde acar.

   Onceden magnific-popup kullaniliyordu ama "closeOnContentClick: true"
   ayariyla: goruntuye tiklayinca kapaniyordu, yani yakinlastirma hic
   yoktu. Muhendis ziyaretci olcu okuyamiyordu.

   Bu surum harici kutuphane KULLANMAZ - magnific-popup'in CSS ve JS
   dosyalari (iki ayri CDN istegi) kaldirildi.
   ===================================================================== */

.gg-katman {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    background: rgba(10, 16, 34, .93);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    user-select: none;
    touch-action: none;
}

.gg-katman.acik {
    display: block;
}

/* Goruntunun tasidigi alan */
.gg-sahne {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
}

.gg-sahne:active {
    cursor: grabbing;
}

.gg-gorsel {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    max-width: none;
    /* Teknik cizimler beyaz zeminli; koyu katmanda kenarlari belli olsun */
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

/* --- Ust bar --------------------------------------------------------- */
.gg-ust {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
    pointer-events: none;
}

.gg-baslik {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-araclar {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.gg-dugme {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.gg-dugme:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .45);
}

.gg-dugme:active {
    transform: scale(.94);
}

.gg-dugme:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.gg-dugme-kapat {
    background: rgba(220, 60, 50, .85);
    border-color: rgba(255, 255, 255, .3);
}

.gg-dugme-kapat:hover {
    background: rgba(220, 60, 50, 1);
}

.gg-oran {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    min-width: 56px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
}

/* --- Alt ipucu ------------------------------------------------------- */
.gg-ipucu {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .75);
    font-size: 12.5px;
    background: rgba(0, 0, 0, .45);
    padding: 7px 14px;
    border-radius: 20px;
    pointer-events: none;
    transition: opacity .3s ease;
}

.gg-ipucu.gizli {
    opacity: 0;
}

/* --- Buyutulebilir gorsele isaret ------------------------------------ */
[data-gg-buyut] {
    cursor: zoom-in;
}

@media (max-width: 575.98px) {
    .gg-dugme { width: 38px; height: 38px; }
    .gg-baslik { display: none; }
    .gg-ipucu { font-size: 11.5px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .gg-dugme { transition: none; }
    .gg-ipucu { transition: none; }
}
