/**
 * Elite motion — subtle UX-focused micro-interactions
 * Respects prefers-reduced-motion
 */
:root {
    --elite-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --elite-ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
    --elite-duration: 0.65s;
    --elite-duration-fast: 0.22s;
    --bp-gold: #d8842b;
    --bp-purple: #6c3ff2;
}

/* ── Custom cursor (new-design.html) ───────────── */
.bp-cursor-dot,
.bp-cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .2s ease, width .2s ease, height .2s ease, background .2s ease, border-color .2s ease;
    will-change: transform, width, height, opacity;
}

.bp-cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--bp-gold);
    box-shadow: 0 0 18px rgba(216, 132, 43, .62);
}

.bp-cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(108, 63, 242, .46);
    border-radius: 999px;
    box-shadow: 0 0 26px rgba(108, 63, 242, .18);
}

.beyga-cursor-ready .bp-cursor-dot,
.beyga-cursor-ready .bp-cursor-ring {
    opacity: 1;
}

.beyga-cursor-active .bp-cursor-ring {
    width: 58px;
    height: 58px;
    border-color: rgba(216, 132, 43, .62);
    background: rgba(108, 63, 242, .08);
}

.beyga-cursor-active .bp-cursor-dot {
    background: #fff;
}

html {
    scroll-behavior: smooth;
}

/* ── Scroll reveal ─────────────────────────────── */
.elite-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity var(--elite-duration) var(--elite-ease-out),
        transform var(--elite-duration) var(--elite-ease-out);
    transition-delay: var(--elite-d, 0ms);
    will-change: opacity, transform;
}

.elite-reveal.elite-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.elite-reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
    transition-delay: var(--elite-d, 0ms);
}

.elite-reveal-fade.elite-in {
    opacity: 1;
}

/* ── Card lift & shine ─────────────────────────── */
.elite-lift {
    position: relative;
    isolation: isolate;
    transition:
        transform var(--elite-duration-fast) var(--elite-ease-out),
        box-shadow var(--elite-duration-fast) var(--elite-ease-out),
        border-color var(--elite-duration-fast) ease;
}

.elite-lift::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease, opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.elite-lift:hover::after {
    opacity: 1;
    transform: translateX(120%);
}

.cl-course-card.elite-lift:hover,
.cl-product-card.elite-lift:hover,
.custom-seance-card.elite-lift:hover {
    transform: translateY(-6px);
}

/* ── Press / tap feedback ──────────────────────── */
.elite-press {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.14s var(--elite-ease-out);
}

.elite-press:active {
    transform: scale(0.97);
}

.elite-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    animation: eliteRipple 0.55s ease-out forwards;
}

@keyframes eliteRipple {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* ── Header scroll state ───────────────────────── */
.header-area {
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        backdrop-filter 0.35s ease;
}

.header-area.is-scrolled,
header.header-area.active {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

/* ── Listing hero polish ───────────────────────── */
.elite-page .clp-hero-text,
.elite-page .clp-hero-visual {
    position: relative;
    z-index: 1;
}

.elite-page .clp-hero-stack .container {
    transition: box-shadow 0.4s var(--elite-ease-out);
}

.elite-page .clp-hero-banner {
    position: relative;
    overflow: hidden;
    background-size: 220% 220%;
}

/* Banner giriş animasyonları */
.clp-hero-stack--motion .container {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
}

.clp-hero-stack--motion.clp-hero-stack--ready .container {
    animation: clpHeroContainerIn 0.8s var(--elite-ease-out) forwards;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-banner {
    animation: clpBannerBgShift 16s ease-in-out infinite alternate;
}

.clp-hero-stack--motion .clp-hero-title {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

.clp-hero-stack--motion .clp-hero-accent {
    display: block;
    width: 0;
    height: 3px;
    margin: 0 0 14px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-primary, #f97316), var(--brand-secondary, #7c3aed));
    opacity: 0;
}

.clp-hero-stack--motion .clp-hero-desc {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.clp-hero-stack--motion .clp-hero-visual {
    opacity: 0;
    transform: translate3d(16px, 0, 0) scale(0.97);
}

.clp-hero-stack--motion .clp-hero-deco {
    opacity: 0;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-title {
    animation: clpHeroTitleIn 0.85s var(--elite-ease-out) 0.12s forwards;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-accent {
    animation: clpHeroAccentIn 0.7s var(--elite-ease-out) 0.28s forwards;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-desc {
    animation: clpHeroDescIn 0.8s var(--elite-ease-out) 0.22s forwards;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-visual {
    animation: clpHeroVisualIn 0.95s var(--elite-ease-out) 0.18s forwards;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-deco--a {
    animation: clpHeroDecoIn 1s ease 0.45s forwards, eliteSvgPulse 5s ease-in-out 1.2s infinite;
}

.clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-deco--b {
    animation: clpHeroDecoIn 1s ease 0.55s forwards, eliteSvgPulse 6s ease-in-out 1.4s infinite;
}

@keyframes clpHeroContainerIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes clpBannerBgShift {
    0% { background-position: 0% 42%; }
    100% { background-position: 100% 58%; }
}

@keyframes clpHeroTitleIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes clpHeroAccentIn {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 52px;
        opacity: 1;
    }
}

@keyframes clpHeroDescIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes clpHeroVisualIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes clpHeroDecoIn {
    to { opacity: 0.45; }
}

.clp-hero-deco--a {
    position: absolute;
    top: 12%;
    right: 8%;
    pointer-events: none;
    z-index: 2;
}

.clp-hero-deco--b {
    position: absolute;
    bottom: 8%;
    left: 4%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.clp-hero-visual-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
    animation: clpPlaceholderGlow 8s ease-in-out infinite alternate;
}

@keyframes clpPlaceholderGlow {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(1.15); opacity: 1; }
}

.elite-page .clp-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 68%);
    pointer-events: none;
    animation: eliteOrbFloat 12s ease-in-out infinite alternate;
}

.elite-page .clp-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 45%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 68%);
    pointer-events: none;
    animation: eliteOrbFloat 15s ease-in-out infinite alternate-reverse;
}

.elite-page .clp-hero-visual img[data-elite-parallax] {
    transition: transform 0.1s linear;
    will-change: transform;
}

.elite-page .clp-hero-stack--ready .clp-hero-visual img {
    animation: clpHeroImgSettle 1.1s var(--elite-ease-out) 0.18s both;
}

@keyframes clpHeroImgSettle {
    from { filter: brightness(1.07) saturate(1.04); }
    to { filter: brightness(1) saturate(1); }
}

@keyframes eliteOrbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

/* Şerit: animasyon yok, sadece statik görünüm */
.elite-page .clp-strip-item {
    transition: background 0.2s ease;
}

.elite-page .clp-strip-item:hover {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 10px;
}

/* ── Sidebar & filters ─────────────────────────── */
.elite-page .sidebar {
    transition: box-shadow 0.35s ease;
}

.elite-page .sidebar .entry-widget li.category a {
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--elite-ease-out);
}

.elite-page .sidebar .entry-widget li.category a:hover {
    transform: translateX(3px);
}

/* ── Buttons on listing pages ──────────────────── */
.elite-page .cl-btn-enroll,
.elite-page .cl-btn-cart,
.elite-page .cl-layout-btn,
.elite-page .cl-clear-btn {
    transition:
        transform var(--elite-duration-fast) var(--elite-ease-out),
        box-shadow var(--elite-duration-fast) ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.elite-page .cl-btn-enroll:hover,
.elite-page .cl-btn-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.22);
}

/* ── Static pages (Hakkımızda) ─────────────────── */
.static-page-hero::after {
    animation: eliteOrbFloat 14s ease-in-out infinite alternate;
}

.static-page-card {
    transition: box-shadow 0.4s var(--elite-ease-out), transform 0.4s var(--elite-ease-out);
}

.static-page-card:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.static-page-breadcrumb a {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.static-page-breadcrumb a:hover {
    transform: translateX(2px);
}

/* ── Decorative SVG pulse (hero) ───────────────── */
.elite-deco-svg {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.elite-deco-svg circle {
    transform-origin: center;
    animation: eliteSvgPulse 4s ease-in-out infinite;
}

.elite-deco-svg circle:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes eliteSvgPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.12); opacity: 0.85; }
}

/* ── Page enter ────────────────────────────────── */
.elite-page-ready {
    animation: elitePageIn 0.45s var(--elite-ease-out) both;
}

@keyframes elitePageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Reduced motion ────────────────────────────── */
@media (scripting: none) {
    .clp-hero-stack--motion .container,
    .clp-hero-stack--motion .clp-hero-title,
    .clp-hero-stack--motion .clp-hero-accent,
    .clp-hero-stack--motion .clp-hero-desc,
    .clp-hero-stack--motion .clp-hero-visual,
    .clp-hero-stack--motion .clp-hero-deco,
    .elite-reveal,
    .elite-reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        width: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .elite-reveal,
    .elite-reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .elite-lift::after,
    .elite-page .clp-hero-banner::before,
    .elite-page .clp-hero-banner::after,
    .static-page-hero::after,
    .elite-deco-svg circle,
    .clp-hero-stack--motion .container,
    .clp-hero-stack--motion .clp-hero-title,
    .clp-hero-stack--motion .clp-hero-accent,
    .clp-hero-stack--motion .clp-hero-desc,
    .clp-hero-stack--motion .clp-hero-visual,
    .clp-hero-stack--motion .clp-hero-deco,
    .clp-hero-visual-glow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        width: 52px !important;
    }

    .clp-hero-stack--motion.clp-hero-stack--ready .clp-hero-banner {
        animation: none !important;
    }

    .elite-press:active {
        transform: none;
    }

    .elite-page-ready {
        animation: none;
    }

    .bp-cursor-dot,
    .bp-cursor-ring {
        display: none !important;
    }
}
