/* Uptime.net.tr — Yol Haritası (Roadmap), yatay kaydırmalı zaman çizelgesi */

.utl-roadmap-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.utl-roadmap-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1F1F1F;
}

.utl-roadmap-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.utl-roadmap-legend .dot.is-completed {
    background-color: #E2643E;
}

.utl-roadmap-legend .dot.is-in_progress {
    background-color: #E2643E;
    opacity: .5;
}

.utl-roadmap-legend .dot.is-planned {
    background-color: #fff;
    border: 2px dashed #cfcfcf;
}

/* Kaydırmalı alan + ok butonları */

.utl-roadmap-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utl-roadmap-nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ececec;
    background-color: #fff;
    color: #E2643E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.utl-roadmap-nav:hover {
    background-color: #E2643E;
    color: #fff;
}

.utl-roadmap-nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.utl-roadmap-swiper {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px 0 30px;
    cursor: grab;
}

.utl-roadmap-swiper:active {
    cursor: grabbing;
}

/* Her kart tek bir swiper-slide; iz (track) tam kart genişliğinde olduğu ve
   aralarında boşluk bırakılmadığı için art arda gelen izler kesintisiz, tek
   parça bir çizgi gibi görünür. */

.utl-roadmap-item {
    position: relative;
    width: 300px;
    height: 460px;
}

.utl-roadmap-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background-color: #ececec;
    transform: translateY(-50%);
}

.utl-roadmap-item.is-completed .utl-roadmap-track {
    background-color: #E2643E;
}

.utl-roadmap-item.is-in_progress .utl-roadmap-track {
    background: linear-gradient(to right, #E2643E 50%, #ececec 50%);
    background-size: 200% 100%;
    animation: utl-roadmap-flow 2.4s linear infinite;
}

.utl-roadmap-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #E2643E;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #E2643E;
    z-index: 2;
}

.utl-roadmap-item.is-in_progress .utl-roadmap-dot {
    animation: utl-roadmap-pulse 1.8s ease-in-out infinite;
}

.utl-roadmap-item.is-planned .utl-roadmap-dot {
    background-color: #fff;
    border: 3px dashed #fff;
    box-shadow: 0 0 0 2px #cfcfcf;
}

.utl-roadmap-stem {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 32px;
    background-color: #ececec;
    transform: translateX(-50%);
}

.utl-roadmap-item.is-completed .utl-roadmap-stem,
.utl-roadmap-item.is-in_progress .utl-roadmap-stem {
    background-color: #E2643E;
    opacity: .35;
}

.utl-roadmap-item.is-up .utl-roadmap-stem {
    bottom: 50%;
}

.utl-roadmap-item.is-down .utl-roadmap-stem {
    top: 50%;
}

.utl-roadmap-card {
    position: absolute;
    left: 50%;
    width: 260px;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    transition: opacity .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.utl-roadmap-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.utl-roadmap-card:focus-visible {
    outline: 2px solid #E2643E;
    outline-offset: 2px;
}

.utl-roadmap-item.is-up .utl-roadmap-card {
    bottom: calc(50% + 32px);
}

.utl-roadmap-item.is-down .utl-roadmap-card {
    top: calc(50% + 32px);
}

.utl-roadmap-item.is-in_progress .utl-roadmap-card {
    opacity: .55;
}

.utl-roadmap-item.is-in_progress .utl-roadmap-card:hover {
    opacity: 1;
}

.utl-roadmap-item.is-planned .utl-roadmap-card {
    opacity: .45;
    border-style: dashed;
}

.utl-roadmap-date {
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.utl-roadmap-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    background-color: rgba(226, 100, 62, .12);
    color: #E2643E;
}

.utl-roadmap-item.is-planned .utl-roadmap-badge {
    background-color: #f2f2f2;
    color: #8a8a8a;
}

.utl-roadmap-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1F1F1F;
}

.utl-roadmap-description {
    font-size: 13px;
    color: #5c5c5c;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* Kart detay modalı: karttan büyüyerek açılan, kart tasarımını taşıyan pencere */

.utl-roadmap-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(31, 31, 31, .4);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
}

.utl-roadmap-modal-overlay.is-visible {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.utl-roadmap-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 30px 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.utl-roadmap-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #f2f2f2;
    color: #5c5c5c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.utl-roadmap-modal-close:hover {
    background-color: #E2643E;
    color: #fff;
}

.utl-roadmap-modal .utl-roadmap-badge {
    margin-bottom: 16px;
}

.utl-roadmap-modal.is-planned .utl-roadmap-badge {
    background-color: #f2f2f2;
    color: #8a8a8a;
}

.utl-roadmap-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1F1F1F;
    padding-right: 24px;
}

.utl-roadmap-modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: #5c5c5c;
    white-space: pre-line;
    margin-bottom: 0;
}

@keyframes utl-roadmap-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #E2643E, 0 0 0 0 rgba(226, 100, 62, .5);
    }
    50% {
        box-shadow: 0 0 0 2px #E2643E, 0 0 0 8px rgba(226, 100, 62, 0);
    }
}

@keyframes utl-roadmap-flow {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .utl-roadmap-track,
    .utl-roadmap-dot {
        animation: none !important;
    }

    .utl-roadmap-modal-overlay,
    .utl-roadmap-modal {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .utl-roadmap-nav {
        display: none;
    }

    .utl-roadmap-item {
        width: 220px;
        height: 380px;
    }

    .utl-roadmap-card {
        width: 190px;
        padding: 14px 16px;
    }

    .utl-roadmap-item.is-up .utl-roadmap-card {
        bottom: calc(50% + 28px);
    }

    .utl-roadmap-item.is-down .utl-roadmap-card {
        top: calc(50% + 28px);
    }

    .utl-roadmap-modal {
        padding: 26px 22px;
        max-height: 85vh;
    }
}
