/* ================================================================
   AVESTA TRAVEL — Global Page Loader
   HTML'e inline yazılır, CSS yüklenmeden önce de çalışır.
================================================================ */

#avp-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #0b1426;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
    pointer-events: all;
    transition: opacity .4s ease, visibility .4s ease;
}

#avp-loader.avp-hiding {
    opacity: 0;
    visibility: hidden;
}

/* ── Logo alanı ── */
.avp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: avpFadeUp .5s ease both;
}

.avp-brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e85d04, #c2410c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(232, 93, 4, .3);
    animation: avpPulse 1.8s ease-in-out infinite;
}

.avp-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.03em;
    line-height: 1;
}

.avp-brand-sub {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── Progress bar ── */
.avp-progress-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    animation: avpFadeUp .5s .1s ease both;
}

.avp-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e85d04, #f97316);
    border-radius: 99px;
    transition: width .3s ease;
    position: relative;
}

/* Shimmer efekti */
.avp-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: avpShimmer 1s ease infinite;
}

/* ── Animasyonlar ── */
@keyframes avpFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes avpPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(232, 93, 4, .3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 12px 32px rgba(232, 93, 4, .5);
        transform: scale(1.04);
    }
}

@keyframes avpShimmer {
    from {
        transform: translateX(-40px);
    }

    to {
        transform: translateX(40px);
    }
}

/* ── Admin versiyonu (koyu) ── */
#avp-loader.avp-admin {
    background: #0f172a;
}

#avp-loader.avp-admin .avp-brand-name {
    color: #f8fafc;
}

#avp-loader.avp-admin .avp-brand-sub {
    color: #334155;
}

#avp-loader.avp-admin .avp-progress-wrap {
    background: #1e293b;
}