/*
|--------------------------------------------------------------------------
| SADE KEBAP - ANA SAYFA VIDEO
|--------------------------------------------------------------------------
| Tam genişlik video alanı.
|--------------------------------------------------------------------------
*/

.sade-home-video {
    position: relative;

    /*
     * Section bir parent/container içinde include edilse bile
     * viewport'un tamamına taşsın.
     */
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 0;

    overflow: hidden;
    background: #ffffff;
}

/*
|--------------------------------------------------------------------------
| VIDEO FRAME
|--------------------------------------------------------------------------
*/
.sade-home-video__frame {
    position: relative;

    width: 100%;
    max-width: none;

    height: clamp(470px, 38vw, 720px);

    margin: 0;

    overflow: hidden;

    background: #2b1715;
}

/*
|--------------------------------------------------------------------------
| VIDEO
|--------------------------------------------------------------------------
*/
.sade-home-video__media {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    background: #2b1715;
}

/*
|--------------------------------------------------------------------------
| VIDEO ÜZERİNDEKİ HAFİF KARARTMA
|--------------------------------------------------------------------------
*/
.sade-home-video__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

      background:
        linear-gradient(
            90deg,
            rgba(30, 15, 13, 0.58) 0%,
            rgba(30, 15, 13, 0.40) 28%,
            rgba(30, 15, 13, 0.22) 52%,
            rgba(30, 15, 13, 0.10) 76%,
            rgba(30, 15, 13, 0.03) 100%
        ),
        linear-gradient(
            180deg,
            rgba(20, 10, 9, 0.8) 0%,
            rgba(20, 10, 9, 0.45) 100%
        );

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

/*
|--------------------------------------------------------------------------
| PLAY BUTONU
|--------------------------------------------------------------------------
*/
.sade-home-video__play {
    position: absolute;
    top: 50%;
    left: 50%;

    z-index: 3;

    width: 112px;
    height: 112px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    transform: translate(-50%, -50%);

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.sade-home-video__play-inner {
    position: absolute;
    inset: 8px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #2b1715;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.18);

    transition:
        transform .3s ease,
        background-color .3s ease,
        color .3s ease;
}

.sade-home-video__play-inner i {
    font-size: 23px;
    margin-left: 4px;
}

.sade-home-video__pulse {
    position: absolute;
    inset: 0;

    z-index: 1;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);

    animation: sadeVideoPulse 2s ease-out infinite;
}

.sade-home-video__play:hover .sade-home-video__play-inner {
    transform: scale(1.06);

    background: #a43a34;
    color: #2b1715;
}

@keyframes sadeVideoPulse {
    0% {
        transform: scale(.86);
        opacity: .9;
    }

    70% {
        transform: scale(1.30);
        opacity: 0;
    }

    100% {
        transform: scale(1.30);
        opacity: 0;
    }
}

/*
|--------------------------------------------------------------------------
| VIDEO OYNARKEN
|--------------------------------------------------------------------------
*/
.sade-home-video__frame.is-playing .sade-home-video__overlay,
.sade-home-video__frame.is-playing .sade-home-video__play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/
@media (max-width: 991.98px) {
    .sade-home-video {
        padding: 0;
    }

    .sade-home-video__frame {
        height: clamp(380px, 58vw, 540px);
    }

    .sade-home-video__play {
        width: 96px;
        height: 96px;
    }

    .sade-home-video__play-inner {
        inset: 7px;
    }
}

/*
|--------------------------------------------------------------------------
| MOBIL
|--------------------------------------------------------------------------
*/
@media (max-width: 575.98px) {
    .sade-home-video {
        padding: 0;
    }

    .sade-home-video__frame {
        width: 100%;
        height: 68vw;

        min-height: 260px;
        max-height: 380px;
    }

    .sade-home-video__play {
        width: 78px;
        height: 78px;
    }

    .sade-home-video__play-inner {
        inset: 6px;
    }

    .sade-home-video__play-inner i {
        font-size: 18px;
        margin-left: 3px;
    }
}

/*
|--------------------------------------------------------------------------
| REDUCED MOTION
|--------------------------------------------------------------------------
*/
@media (prefers-reduced-motion: reduce) {
    .sade-home-video__pulse {
        animation: none;
    }

    .sade-home-video__play-inner,
    .sade-home-video__overlay {
        transition: none;
    }
}
