﻿/* CSS - UYDU ZAMAN TÜNELİ - BAŞLANGIÇ */

/* 1. İMAR PLANI TOGGLE BUTONU */
#imarTimelineToggle.imar-timeline-toggle {
    position: fixed;
    bottom: 68px !important;
    left: 405px;
    z-index: 10 !important;
    display: block !important;
    width: 90px !important;
    height: 45px !important;
    margin: 0;
    padding: 0;
    border: 3px solid #ffcc00 !important;
    border-radius: 10px !important;
    background-color: #fff;
    background-image: url('../../images/imarlogo.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.4), 0 2px 5px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease;
    outline: none !important;
}

    #imarTimelineToggle.imar-timeline-toggle:focus,
    #imarTimelineToggle.imar-timeline-toggle:focus-visible {
        outline: none !important;
        border-color: #ffd700 !important;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 2px 6px rgba(0,0,0,0.3) !important;
    }

    #imarTimelineToggle.imar-timeline-toggle:hover {
        border-color: #ffd700 !important;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 6px rgba(0,0,0,0.3) !important;
    }

    #imarTimelineToggle.imar-timeline-toggle.is-active {
        border-color: #ffd700 !important;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.8) !important;
    }

    #imarTimelineToggle.imar-timeline-toggle i,
    #imarTimelineToggle.imar-timeline-toggle .fa {
        display: none !important;
    }

/* İMAR PLANI PANELİ */
#imarTimelineRoot {
    position: fixed;
    bottom: 68px;
    left: 405px;
    z-index: 11;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    #imarTimelineRoot #imarTimelinePanel,
    #imarTimelineRoot #imarTimelinePanel.imar-timeline-panel,
    #imarTimelineRoot .imar-timeline-panel {
        display: none;
        width: min(660px, max(240px, calc(100vw - 460px)));
        padding: 0 !important;
        margin: 0;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        pointer-events: auto;
    }

        #imarTimelineRoot #imarTimelinePanel.is-open,
        #imarTimelineRoot #imarTimelinePanel.imar-timeline-panel.is-open {
            display: block !important;
        }

    #imarTimelineRoot .imar-timeline-panel-inner {
        padding: 10px 14px 12px;
        border: 2px solid #ffd700 !important;
        border-radius: 18px !important;
        -webkit-border-radius: 18px !important;
        -moz-border-radius: 18px !important;
        background: #fefce8 !important;
        color: #78350f;
        font-family: inherit;
        font-size: small;
        overflow: visible !important;
        box-shadow: 2px 2px #eab308, 0 8px 20px rgba(234, 179, 8, 0.2) !important;
        animation: imarTimelineSlideRight 0.28s ease;
        transform-origin: left center;
    }

@keyframes imarTimelineSlideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.imar-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.imar-timeline-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.imar-timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fde047, #d97706);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

.imar-timeline-label {
    font-family: inherit;
    font-size: small;
    color: #92400e;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imar-timeline-close {
    width: 24px;
    height: 24px;
    border: 1px solid #fde047;
    border-radius: 8px;
    background: #ffffff;
    color: #d97706;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    outline: none;
}

    .imar-timeline-close:hover {
        background: #fef9c3;
        border-color: #eab308;
    }

.imar-timeline-track-wrap {
    position: relative;
    padding: 8px 0 0;
    margin: 0 10px;
}

.imar-timeline-track {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.15);
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.imar-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fde047, #d97706);
    width: 0;
    pointer-events: none;
    transition: width 0.15s ease;
}

.imar-timeline-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    background: #ffffff;
    border: 2px solid #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
    cursor: grab;
    transition: left 0.15s ease;
    z-index: 2;
}

    .imar-timeline-thumb::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 1px;
        border-width: 5px 4px 0 4px;
        border-style: solid;
        border-color: #d97706 transparent transparent transparent;
    }

    .imar-timeline-thumb:active {
        cursor: grabbing;
    }

.imar-timeline-track.is-dragging .imar-timeline-thumb,
.imar-timeline-track.is-dragging .imar-timeline-fill {
    transition: none;
}

.imar-timeline-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0;
    width: 100%;
}

.imar-timeline-mark {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0;
    text-align: center;
    font-family: inherit;
    font-size: 11px;
    color: #eab308;
    cursor: pointer;
    padding: 2px 0;
    white-space: nowrap;
}

    .imar-timeline-mark:hover,
    .imar-timeline-mark.is-active {
        color: #78350f;
        font-weight: bold;
    }

.imar-timeline-opacity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(217, 119, 6, 0.25);
}

.imar-timeline-opacity-label {
    font-size: 11px;
    color: #92400e;
    white-space: nowrap;
}

.imar-timeline-opacity-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.15);
    outline: none;
}

    .imar-timeline-opacity-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #d97706;
        cursor: pointer;
    }

    .imar-timeline-opacity-slider::-moz-range-thumb {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #d97706;
        cursor: pointer;
    }

.imar-timeline-opacity-val {
    min-width: 34px;
    text-align: right;
    font-size: 11px;
    font-weight: bold;
    color: #78350f;
}

.imar-timeline-base-note {
    margin-top: 6px;
    font-size: 10px;
    color: #92400e;
    opacity: 0.85;
}


/* 2. UYDU ZAMAN TÜNELİ TOGGLE BUTONU (GÖRSEL 2 UYUMLU) */

#uyduTimelineToggle.uydu-timeline-toggle {
    position: fixed;
    bottom: 15px !important;
    left: 405px;
    z-index: 10 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 90px !important;
    height: 45px !important;
    margin: 0;
    padding: 0;
    /* REFERANS KOD UYARINCA: 3px Çerçeve Kalınlığı & 10px Radius */
    border: 3px solid #ffcc00 !important;
    border-radius: 10px !important;
    background-color: #fff;
    background-image: url('../../images/uydulogo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
    outline: none !important;
}

    #uyduTimelineToggle.uydu-timeline-toggle:focus,
    #uyduTimelineToggle.uydu-timeline-toggle:focus-visible {
        outline: none !important;
        border-color: #ffd700 !important;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.8) !important;
    }

    #uyduTimelineToggle.uydu-timeline-toggle:hover {
        border-color: #ffd700 !important;
        transform: scale(1.02);
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6) !important;
    }

    #uyduTimelineToggle.uydu-timeline-toggle.is-active {
        border-color: #ffd700 !important;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.8) !important;
    }

/* GÖRSEL 2: Ortalanmış, Gölgeli Beyaz "Uydular" Yazısı */
.uydu-toggle-text {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000, 0px 2px 4px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.3px;
}

#uyduTimelineToggle.uydu-timeline-toggle i,
#uyduTimelineToggle.uydu-timeline-toggle .fa {
    display: none !important;
}


/* UYDU PANELİ */

#uyduTimelineRoot {
    position: fixed;
    bottom: 15px;
    left: 405px;
    z-index: 11;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    #uyduTimelineRoot #uyduTimelinePanel,
    #uyduTimelineRoot #uyduTimelinePanel.uydu-timeline-panel,
    #uyduTimelineRoot .uydu-timeline-panel {
        display: none;
        width: min(640px, max(220px, calc(100vw - 460px)));
        padding: 0 !important;
        margin: 0;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        pointer-events: auto;
    }

        #uyduTimelineRoot #uyduTimelinePanel.is-open,
        #uyduTimelineRoot #uyduTimelinePanel.uydu-timeline-panel.is-open {
            display: block !important;
        }

    #uyduTimelineRoot .uydu-timeline-panel-inner {
        padding: 10px 14px 12px;
        border: 2px solid #eab308 !important;
        border-radius: 18px !important;
        -webkit-border-radius: 18px !important;
        -moz-border-radius: 18px !important;
        background: #fefce8 !important;
        color: #78350f;
        font-family: inherit;
        font-size: small;
        overflow: hidden !important;
        box-shadow: 2px 2px #eab308, 0 8px 20px rgba(234, 179, 8, 0.2) !important;
        animation: uyduTimelineSlideRight 0.28s ease;
        transform-origin: left center;
    }

@keyframes uyduTimelineSlideRight {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.uydu-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.uydu-timeline-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.uydu-timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fde047, #d97706);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

.uydu-timeline-label {
    font-family: inherit;
    font-size: small;
    color: #92400e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uydu-timeline-close {
    width: 24px;
    height: 24px;
    border: 1px solid #fde047;
    border-radius: 8px;
    background: #fff;
    color: #d97706;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    outline: none;
}

    .uydu-timeline-close:hover {
        background: #fef9c3;
        border-color: #eab308;
    }

.uydu-timeline-track-wrap {
    padding: 2px 2px 0;
}

.uydu-timeline-track {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.15);
    cursor: pointer;
    user-select: none;
    touch-action: none;
}

.uydu-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fde047, #d97706);
    width: 0;
    pointer-events: none;
    transition: width 0.15s ease;
}

.uydu-timeline-thumb {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7px;
    margin-left: -7px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
    cursor: grab;
    transition: left 0.15s ease;
    z-index: 2;
}

    .uydu-timeline-thumb:active {
        cursor: grabbing;
    }

.uydu-timeline-track.is-dragging .uydu-timeline-thumb,
.uydu-timeline-track.is-dragging .uydu-timeline-fill {
    transition: none;
}

.uydu-timeline-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 1px;
    gap: 2px;
}

.uydu-timeline-mark {
    flex: 1;
    text-align: center;
    font-family: inherit;
    font-size: 10px;
    color: #eab308;
    cursor: pointer;
    padding: 2px 0;
    white-space: nowrap;
}

    .uydu-timeline-mark:hover,
    .uydu-timeline-mark.is-active {
        color: #78350f;
        font-weight: bold;
    }

@media (max-width: 768px) {
    #imarTimelineToggle.imar-timeline-toggle,
    #uyduTimelineToggle.uydu-timeline-toggle {
        left: 55px;
    }

    #imarTimelineRoot {
        left: 0;
        right: 0;
        bottom: 103px;
        padding: 0 8px;
    }

    #uyduTimelineRoot {
        left: 0;
        right: 0;
        bottom: 60px;
        padding: 0 8px;
    }
}

/* CSS - UYDU ZAMAN TÜNELİ - BİTİŞ */
