/* ═══════════════════════════════════════════
   ZENVEXC — Custom Animations & Effects
   ═══════════════════════════════════════════ */

/* ─── Page Entry Animation ─── */
@keyframes zx-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zx-animate-in {
    animation: zx-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zx-delay-1 { animation-delay: 0.1s; opacity: 0; }
.zx-delay-2 { animation-delay: 0.2s; opacity: 0; }
.zx-delay-3 { animation-delay: 0.3s; opacity: 0; }
.zx-delay-4 { animation-delay: 0.4s; opacity: 0; }
.zx-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ─── Input Focus Glow ─── */
.zx-input {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.zx-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15),
                0 0 20px rgba(0, 87, 255, 0.1);
    transform: translateY(-1px);
}

.zx-input:focus + .zx-input-glow {
    opacity: 1;
    transform: scaleX(1);
}

/* ─── Input Glow Bar ─── */
.zx-input-wrap {
    position: relative;
}

.zx-input-glow {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0057FF, #3378FF, #0057FF);
    background-size: 200% 100%;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    animation: zx-glow-slide 2s linear infinite;
}

@keyframes zx-glow-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ─── Button Ripple ─── */
.zx-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zx-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.zx-btn:active::before {
    width: 300px;
    height: 300px;
}

/* ─── Button Hover Glow ─── */
.zx-btn-primary {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zx-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 87, 255, 0.35),
                0 0 40px rgba(0, 87, 255, 0.2);
    transform: translateY(-2px);
}

.zx-btn-primary:active {
    transform: translateY(0);
}

/* ─── Shake Animation (for errors) ─── */
@keyframes zx-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.zx-shake {
    animation: zx-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ─── Success Pop ─── */
@keyframes zx-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.zx-success-icon {
    animation: zx-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Loading Spin ─── */
@keyframes zx-spin {
    to { transform: rotate(360deg); }
}

.zx-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zx-spin 0.7s linear infinite;
}

/* ─── Floating Label ─── */
.zx-float-label {
    position: relative;
}

.zx-float-label input {
    padding-top: 22px;
    padding-bottom: 8px;
}

.zx-float-label label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B93A1;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 14px;
}

.zx-float-label input:focus + label,
.zx-float-label input:not(:placeholder-shown) + label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    color: #0057FF;
}

/* ─── Card Hover ─── */
.zx-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zx-card:hover {
    border-color: rgba(0, 87, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 87, 255, 0.1);
}

/* ─── Gradient Border Animation ─── */
@keyframes zx-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.zx-gradient-border {
    background: linear-gradient(90deg, #0057FF, #3378FF, #0057FF, #3378FF);
    background-size: 300% 100%;
    animation: zx-border-rotate 3s linear infinite;
    padding: 1px;
    border-radius: 12px;
}

.zx-gradient-border-inner {
    background: #11151A;
    border-radius: 11px;
}

/* ═══════════════════════════════════════════
   ZENVEXC — Floating Cards & Orbits
   ═══════════════════════════════════════════ */

@keyframes zx-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes zx-float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-1deg); }
}

@keyframes zx-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px 10px rgba(0, 87, 255, 0.3); }
}

@keyframes zx-orbit {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(40px, -60px); opacity: 0; }
}

@keyframes zx-orbit-reverse {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-50px, 40px); opacity: 0; }
}

.zx-float-1 { animation: zx-float 4s ease-in-out infinite; }
.zx-float-2 { animation: zx-float-reverse 5s ease-in-out infinite; }
.zx-float-3 { animation: zx-float 4.5s ease-in-out infinite 0.5s; }
.zx-float-4 { animation: zx-float-reverse 5.5s ease-in-out infinite 1s; }
.zx-pulse-glow { animation: zx-pulse 3s ease-in-out infinite; }
.zx-orbit-1 { animation: zx-orbit 6s ease-in-out infinite; }
.zx-orbit-2 { animation: zx-orbit-reverse 7s ease-in-out infinite 1s; }
.zx-orbit-3 { animation: zx-orbit 5s ease-in-out infinite 2s; }


/* Hide inline headers in views — layout provides its own */
main header,
main > .min-h-screen > header,
body > .min-h-screen > header {
    display: none !important;
}
