/* TikTok Premium Transition Animation */

/* ===== ORTAK OVERLAY ===== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    display: none;
    background: transparent;
    overflow: hidden;
}

.page-transition-overlay.active {
    display: block;
    pointer-events: all;
}

/* ===== DAİRE ===== */
.transition-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #FE2C55;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: width, height;
}

/* ===== INDEX.PHP → FORM.PHP : Küçükten büyüğe genişle ===== */
.transition-circle.animate {
    animation: circleExpand 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes circleExpand {
    0%   { width: 0;       height: 0;       }
    100% { width: 300vmax; height: 300vmax; }
}

/* ===== FORM.PHP açılışı : Büyükten küçüğe kapan ===== */
.transition-circle.reverse {
    width: 300vmax;
    height: 300vmax;
    animation: circleReverse 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes circleReverse {
    0%   { width: 300vmax; height: 300vmax; }
    100% { width: 0;       height: 0;       }
}
