

/* =========================================================
   STORY BALONCUKLARI
========================================================= */

.deh-story-bar {
    width: 100%;
    padding: 8px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.deh-story-bar::-webkit-scrollbar {
    display: none;
}

.deh-story-list {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 8px;
    width: max-content;
}


/* Story */

.deh-story-item {
    width: 70px;
    flex: 0 0 70px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.deh-story-circle {
    width: 70px;
    height: 70px;
    padding: 3px;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #feda75,
            #fa7e1e,
            #d62976,
            #962fbf,
            #4f5bd5
        );

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.deh-story-item:hover .deh-story-circle {
    transform: scale(1.06);
    box-shadow: 0 5px 18px rgba(0,0,0,.16);
}


/* Görüntülenmiş */

.deh-story-item.deh-viewed .deh-story-circle {
    background: #c9c9c9;
}


.deh-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 50%;
    border: 3px solid #fff;

    display: block;
    box-sizing: border-box;
}


.deh-story-name {
    margin-top: 6px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    line-height: 15px;

    color: #333;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   TAM EKRAN
========================================================= */

.deh-story-modal {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,.96);

    z-index: 999999999;

    display: none;

    align-items: center;
    justify-content: center;
}

.deh-story-modal.deh-active {
    display: flex;
}


/* =========================================================
   STORY SAHNESİ
========================================================= */

.deh-story-stage {

    position: relative;

    width: 100%;
    height: 100%;

    max-width: 520px;

    background: #000;

    overflow: hidden;

    box-shadow:
        0 0 60px rgba(0,0,0,.7);
}


/* Desktop */

@media (min-width: 700px) {

    .deh-story-stage {

        height: min(92vh, 900px);

        width: min(520px, 92vw);

        border-radius: 14px;

    }

}


/* =========================================================
   GÖRSEL
========================================================= */

.deh-story-main-image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transform: scale(1.03);

    transition:
        opacity .25s ease,
        transform .6s ease;

    background: #111;
}

.deh-story-main-image.deh-loaded {

    opacity: 1;

    transform: scale(1);

}


/* =========================================================
   KARARTMA
========================================================= */

.deh-story-overlay-top {

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 160px;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.70),
            rgba(0,0,0,.30),
            transparent
        );

    z-index: 3;

    pointer-events: none;
}


.deh-story-overlay-bottom {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 230px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.75),
            rgba(0,0,0,.35),
            transparent
        );

    z-index: 3;

    pointer-events: none;
}


/* =========================================================
   PROGRESS
========================================================= */

.deh-story-progress {

    position: absolute;

    top: 10px;
    left: 10px;
    right: 10px;

    display: flex;

    gap: 4px;

    z-index: 20;
}


.deh-story-progress-item {

    height: 3px;

    flex: 1;

    overflow: hidden;

    border-radius: 10px;

    background: rgba(255,255,255,.35);
}


.deh-story-progress-fill {

    width: 0;
    height: 100%;

    background: #fff;

    border-radius: 10px;
}


/* =========================================================
   HEADER
========================================================= */

.deh-story-header {

    position: absolute;

    top: 22px;
    left: 13px;
    right: 55px;

    display: flex;

    align-items: center;

    gap: 9px;

    z-index: 15;
}


.deh-story-header-icon {

    width: 35px;
    height: 35px;

    border-radius: 50%;

    border: 2px solid #fff;

    object-fit: cover;

    background: #fff;
}


.deh-story-header-text {

    color: #fff;

    text-shadow:
        0 1px 4px rgba(0,0,0,.8);

    min-width: 0;
}


.deh-story-header-title {

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.deh-story-header-subtitle {

    margin-top: 2px;

    font-size: 10px;

    opacity: .85;
}


/* =========================================================
   KAPAT
========================================================= */

.deh-story-close {

    position: absolute;

    top: 22px;
    right: 12px;

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 50%;

    background: rgba(0,0,0,.35);

    color: #fff;

    font-size: 25px;

    line-height: 36px;

    padding: 0;

    cursor: pointer;

    z-index: 30;

    backdrop-filter: blur(5px);

    transition: background .2s ease;
}

.deh-story-close:hover {

    background: rgba(255,255,255,.20);

}


/* =========================================================
   SAĞ / SOL ALAN
========================================================= */

.deh-story-prev,
.deh-story-next {

    position: absolute;

    top: 80px;
    bottom: 100px;

    width: 35%;

    z-index: 10;

    cursor: pointer;
}

.deh-story-prev {
    left: 0;
}

.deh-story-next {
    right: 0;
}


/* =========================================================
   ALT İÇERİK
========================================================= */

.deh-story-bottom {

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 22px;

    z-index: 15;

    color: #fff;
}


.deh-story-bottom-title {

    font-size: 22px;

    line-height: 28px;

    font-weight: 700;

    text-shadow:
        0 2px 8px rgba(0,0,0,.8);

    margin-bottom: 7px;
}


.deh-story-bottom-description {

    font-size: 13px;

    line-height: 19px;

    opacity: .94;

    margin-bottom: 14px;
}


/* =========================================================
   DETAY BUTONU
========================================================= */

.deh-story-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    padding: 0 17px;

    border-radius: 20px;

    background: rgba(255,255,255,.95);

    color: #111;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 5px 20px rgba(0,0,0,.25);

    transition:
        transform .2s ease,
        background .2s ease;
}

.deh-story-link:hover {

    transform: translateY(-2px);

    background: #fff;

}


/* =========================================================
   YÜKLENİYOR
========================================================= */

.deh-story-loading {

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%,-50%);

    z-index: 4;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    border: 3px solid rgba(255,255,255,.3);

    border-top-color: #fff;

    animation:
        dehStorySpin .7s linear infinite;
}


@keyframes dehStorySpin {

    to {
        transform:
            translate(-50%,-50%)
            rotate(360deg);
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 699px) {

    .deh-story-stage {

        max-width: none;

        border-radius: 0;

    }

    .deh-story-main-image {

        object-fit: cover;

    }

}


/* =========================================================
   MASAÜSTÜ KARARTMA
========================================================= */

@media (min-width: 700px) {

    .deh-story-modal {

        backdrop-filter: blur(12px);

    }

}


/* =========================================================
   MOBİL STORY BOYUTLARI
========================================================= */

@media (max-width: 480px) {

    .deh-story-bottom-title {

        font-size: 20px;

    }

    .deh-story-bottom-description {

        font-size: 12px;

    }

}

