/* ── Site loader (2 saniye) ── */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #08080a;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader.is-hidden {
    display: none !important;
}

.site-loader-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 77, 141, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 50%, rgba(147, 51, 234, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #1a1a1f 0%, #0d0d0f 100%);
}

.site-loader-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
}

.site-loader-logo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.site-loader-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(255, 77, 141, 0.5);
}

.site-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ff6b9d;
    border-right-color: rgba(255, 255, 255, 0.25);
    animation: loaderSpin 0.9s linear infinite;
}

.site-loader-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-loader-tagline {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.site-loader-bar {
    width: 220px;
    height: 4px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.site-loader-progress {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6b9d, #ffffff);
    border-radius: 999px;
    animation: loaderProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.is-loading {
    overflow: hidden;
}

/* ── Page transitions ── */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #0d0d0f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.page-leaving .page-content {
    opacity: 0.5;
    transition: opacity 0.28s ease;
}

/* ── Scroll reveal ── */
.reveal-on-scroll,
.zuki-stats,
.zuki-categories,
.popular-products-section,
.why-zuki,
.faq-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible,
.zuki-stats.is-visible,
.zuki-categories.is-visible,
.popular-products-section.is-visible,
.why-zuki.is-visible,
.faq-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card,
.zuki-stat-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-zuki.is-visible .why-card,
.zuki-stats.is-visible .zuki-stat-card {
    opacity: 1;
    transform: translateY(0);
}

.zuki-category-card,
.product-card,
.shop-category-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why-zuki.is-visible .why-zuki-grid .why-card:nth-child(1) { transition-delay: 0.05s; }
.why-zuki.is-visible .why-zuki-grid .why-card:nth-child(2) { transition-delay: 0.12s; }
.why-zuki.is-visible .why-zuki-grid .why-card:nth-child(3) { transition-delay: 0.19s; }

.zuki-stats.is-visible .zuki-stats-grid .zuki-stat-card:nth-child(1) { transition-delay: 0.05s; }
.zuki-stats.is-visible .zuki-stats-grid .zuki-stat-card:nth-child(2) { transition-delay: 0.12s; }
.zuki-stats.is-visible .zuki-stats-grid .zuki-stat-card:nth-child(3) { transition-delay: 0.19s; }

/* ── Page enter ── */
body.page-visible .site-header {
    animation: softFadeDown 0.55s ease both;
}

body.page-visible .page-content {
    animation: softFadeIn 0.55s ease both;
}

body.page-visible .zuki-hero {
    animation: heroEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Logo glow pulse ── */
.hero-logo-glow {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderProgress {
    0%   { width: 0; }
    70%  { width: 88%; }
    100% { width: 100%; }
}

@keyframes softFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes softFadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroEnter {
    from { opacity: 0; transform: scale(0.97) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(255, 107, 157, 0.2),
            0 25px 60px rgba(0, 0, 0, 0.45),
            0 0 60px rgba(255, 77, 141, 0.25);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(255, 107, 157, 0.35),
            0 30px 70px rgba(0, 0, 0, 0.5),
            0 0 100px rgba(255, 77, 141, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .zuki-stats,
    .zuki-categories,
    .popular-products-section,
    .why-zuki,
    .faq-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .site-loader,
    .page-transition,
    .hero-logo-glow,
    body.page-visible .site-header,
    body.page-visible .page-content,
    body.page-visible .zuki-hero {
        animation: none !important;
    }
}
