﻿/* ═══════════════════════════════════════════════
   MAP-BG.CSS — Arka Plan Harita Animasyonu
   ═══════════════════════════════════════════════ */

/* z-index hiyerarşisi:
   0  → #mapBgWrap   (SVG harita)
   1  → #mapBgOverlay (karartma)
   2  → harita UI (pin, label, ripple, köşeler)
   3  → #mapBgLoader
   10 → form#form1   (katalog içeriği)
*/

/* ── Kök katman ── */
#mapBgWrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* GPU katmanı — animasyon harita SVG viewBox değişimi */
    will-change: transform;
    contain: strict;
}

#worldSvg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    /* SVG viewport dönüşümleri GPU'da */
    will-change: opacity;
}

    #worldSvg.loaded {
        opacity: 1;
    }

/* ── Overlay ── */
#mapBgOverlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient( ellipse 85% 75% at 50% 50%, rgba(0,8,20,.40) 0%, rgba(0,5,15,.68) 100% );
    /* overlay statik — repaint yok */
    will-change: auto;
}

/* ── Pin animasyonları ── */
@keyframes mapPingRing {
    0% {
        r: 0.8;
        opacity: 0.9;
    }

    100% {
        r: 7;
        opacity: 0;
    }
}

@keyframes mapPingRing2 {
    0% {
        r: 0.8;
        opacity: 0.6;
    }

    100% {
        r: 4;
        opacity: 0;
    }
}

/* ── Konum etiketi ── */
#mapLocationLabel {
    position: fixed;
    bottom: 8%;
    inset-inline: 0;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .55s ease;
    z-index: 2;
    padding: 0 20px;
    /* transform yerine opacity — reflow yok */
    will-change: opacity;
}

.mlbl-country {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.7rem, 3.5vw, 1.5rem);
    font-weight: 700;
    color: rgba(255,255,255,.52);
    letter-spacing: .25em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(22,66,131,.75), 0 0 50px rgba(22,66,131,.35);
}

.mlbl-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.42rem, 1.5vw, .7rem);
    font-weight: 400;
    color: rgba(120,170,220,.42);
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ── Köşe süsler ── */
.map-corner {
    position: fixed;
    width: clamp(11px, 2.2vw, 20px);
    height: clamp(11px, 2.2vw, 20px);
    opacity: 0;
    transition: opacity .45s ease;
    z-index: 2;
    pointer-events: none;
}

    .map-corner.tl {
        top: 5%;
        left: 5%;
        border-top: 1.5px solid rgba(100,160,230,.38);
        border-left: 1.5px solid rgba(100,160,230,.38);
    }

    .map-corner.tr {
        top: 5%;
        right: 5%;
        border-top: 1.5px solid rgba(100,160,230,.38);
        border-right: 1.5px solid rgba(100,160,230,.38);
    }

    .map-corner.bl {
        bottom: 5%;
        left: 5%;
        border-bottom: 1.5px solid rgba(100,160,230,.38);
        border-left: 1.5px solid rgba(100,160,230,.38);
    }

    .map-corner.br {
        bottom: 5%;
        right: 5%;
        border-bottom: 1.5px solid rgba(100,160,230,.38);
        border-right: 1.5px solid rgba(100,160,230,.38);
    }

/* ── Faz göstergesi ── */
#mapPhaseIndicator {
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity .5s;
    z-index: 2;
    pointer-events: none;
}

.map-phase-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(100,160,230,.18);
    transition: background .4s, transform .4s;
}

    .map-phase-dot.active {
        background: rgba(100,160,230,.6);
        box-shadow: 0 0 6px rgba(100,160,230,.5);
        transform: scale(1.4);
    }

/* ── Ripple ── */
#mapRippleWrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* ── Loader ── */
#mapBgLoader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: #000814;
    transition: opacity .9s ease;
    will-change: opacity;
}

    #mapBgLoader span {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(.52rem,1.8vw,.78rem);
        letter-spacing: .3em;
        text-transform: uppercase;
        color: rgba(100,160,230,.48);
    }

    #mapBgLoader.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* ══════════════════════════════════════
   SAYFA Z-INDEX + ARKA PLAN
   Sadece görsel override — layout yok!
   ══════════════════════════════════════ */
body {
    background: transparent !important;
}

    /* Form içeriği haritanın üstünde — layout stlyes.css'te */
    body > form#form1 {
        position: relative;
        z-index: 10;
    }

/* Header — sadece renk/blur */
.header {
    background: rgba(0,10,30,.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(100,160,230,.14);
    /* padding/font/width yok — stlyes.css yönetir */
}

/* Sidebar — sadece renk/blur, layout yok */
.projects-sidebar {
    background: rgba(0,10,28,.72) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border-radius, padding, width → stlyes.css yönetir */
}

/* content-area — transparan */
.content-area {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Mobilde backdrop-filter kapat — büyük perf kazancı */
@media (max-width: 768px) {
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0,10,30,.90) !important;
    }

    .projects-sidebar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0,10,28,.92) !important;
    }

    .project-details-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(5,12,32,.97) !important;
    }
}

/* Gizli elementler */
.world-map-container {
    display: none !important;
}

.brand-footer {
    display: none !important;
}
