/* =========================================================
   Zafer Mızrak - Premium Industrial Loader
   ========================================================= */

.zm-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(247, 247, 244, 0.98) 55%, rgba(238, 236, 230, 0.98) 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition:
            opacity 0.55s ease,
            visibility 0.55s ease;
}

.zm-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.zm-loader-card {
    position: relative;
    width: min(320px, calc(100vw - 48px));
    padding: 34px 34px 30px;
    border: 1px solid rgba(31, 34, 45, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
            0 24px 80px rgba(31, 34, 45, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.zm-loader-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    120deg,
                    transparent 0%,
                    transparent 35%,
                    rgba(218, 138, 69, 0.10) 46%,
                    rgba(218, 138, 69, 0.18) 50%,
                    rgba(218, 138, 69, 0.10) 54%,
                    transparent 65%,
                    transparent 100%
            );
    transform: translateX(-120%);
    animation: zmLoaderSheen 1.8s ease-in-out infinite;
    pointer-events: none;
}

.zm-loader-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    margin-bottom: 24px;
}

.zm-loader-logo {
    max-width: 190px;
    max-height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(31, 34, 45, 0.08));
    animation: zmLoaderLogoPulse 1.8s ease-in-out infinite;
}

.zm-loader-line {
    position: relative;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(31, 34, 45, 0.09);
    overflow: hidden;
}

.zm-loader-line span {
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
            90deg,
            transparent,
            #DA8A45,
            transparent
    );
    animation: zmLoaderLine 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.zm-loader-text {
    margin-top: 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(31, 34, 45, 0.52);
}

@keyframes zmLoaderSheen {
    0% {
        transform: translateX(-120%);
    }

    48%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes zmLoaderLine {
    0% {
        left: -45%;
    }

    100% {
        left: 100%;
    }
}

@keyframes zmLoaderLogoPulse {
    0%,
    100% {
        opacity: 0.86;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-1px) scale(1.015);
    }
}

@media (max-width: 575px) {
    .zm-loader-card {
        width: min(280px, calc(100vw - 40px));
        padding: 28px 26px 25px;
        border-radius: 22px;
    }

    .zm-loader-logo {
        max-width: 160px;
        max-height: 66px;
    }

    .zm-loader-logo-wrap {
        margin-bottom: 20px;
    }

    .zm-loader-text {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zm-loader-card::before,
    .zm-loader-line span,
    .zm-loader-logo {
        animation: none;
    }

    .zm-page-loader {
        transition: none;
    }
}

.zm-testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.zm-testimonial-stars span {
    display: inline-block;
    font-size: 23px;
    line-height: 1;
    color: #DA8A45;
    background: linear-gradient(135deg, #f8c37a 0%, #DA8A45 45%, #9f4f17 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 18px rgba(218, 138, 69, 0.32);
    transform: translateY(0);
}

.zm-testimonial-stars span:nth-child(2) {
    opacity: 0.96;
}

.zm-testimonial-stars span:nth-child(3) {
    opacity: 1;
}

.zm-testimonial-stars span:nth-child(4) {
    opacity: 0.96;
}

.zm-testimonial-stars span:nth-child(5) {
    opacity: 0.92;
}

.zm-testimonial-stars-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(218, 138, 69, 0.10);
    border: 1px solid rgba(218, 138, 69, 0.24);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
    line-height: 1;
}

.zm-testimonial-stars-badge span {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    background: linear-gradient(135deg, #ffd89a 0%, #DA8A45 48%, #a95017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 16px rgba(218, 138, 69, 0.35);
}

.pbmit-slider-video-item {
    position: relative;
    overflow: hidden;
}

.pbmit-slider-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: none !important;
    z-index: 0;
}

.pbmit-slider-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.pbmit-slider-video-item .container {
    position: relative;
    z-index: 2;
}

/* Tema overlay kullanıyorsa video için de aynı derinliği koruyalım */
.pbmit-slider-video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.pbmit-slider-video {
    position: relative;
    z-index: 0;
}

/* Mobilde video ekranı güzel kaplasın */
@media (max-width: 991px) {
    .pbmit-slider-video {
        object-fit: cover;
        object-position: center center;
    }
}

/* Çok dar ekranlarda makine/video merkezi daha iyi dursun */
@media (max-width: 575px) {
    .pbmit-slider-video {
        object-position: center center;
    }
}