/**
 * Page Transition Effect v2.1
 * Non-critical styles — loaded via wp_enqueue_style
 * Critical styles (overlay, curtain, states) sunt inline în PHP
 */

/* ── Overlay & Curtain: styles are handled by inline_critical (PHP) ── */

/* ── Block clicks while exit animation plays ── */
body.pte-exit {
    pointer-events: none;
}

/* ── Prevent scrollbar flicker during load ── */
html.pte-loading {
    overflow: hidden;
}

html:has(body.pte-render) {
    overflow: auto;
}

/* ── Accessibility: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    #pte-overlay::after {
        transition: none !important;
        transform: scaleX(0) !important;
    }

    body.pte-axis-Y #pte-overlay::after {
        transform: scaleY(0) !important;
    }
}

/* ── Optional color themes (add class pe body via Elementor) ── */
body.pte-dark {
    --pte-color: #0a0a0a;
    --pte-loader: #ffffff;
}

body.pte-brand {
    --pte-color: #1a73e8;
}