/* Glowing Button Effect */
.btn-fx-glowing {
    position: relative;
    background: #3164a7;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow:
        0 0 0 0 rgba(49, 100, 167, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.15);
    animation: btn-fx-pulse-glow 2.5s ease-in-out infinite;
}

.btn-fx-glowing:hover {
    background: #2a5690;
    transform: translateY(-1px);
    box-shadow:
        0 0 25px rgba(49, 100, 167, 0.5),
        0 0 50px rgba(203, 40, 42, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-fx-glowing:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

@keyframes btn-fx-pulse-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(49, 100, 167, 0.7),
            0 16px 48px rgba(0, 0, 0, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 40px 10px rgba(203, 40, 42, 0.4),
            0 0 80px rgba(49, 100, 167, 0.3),
            0 16px 48px rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
    }
}

/* Running Border Effect */
.btn-fx-border {
    position: relative;
    background: white;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    color: #3164a7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-fx-border::before {
    content: "";
    position: absolute;
    inset: -6px;
    background: conic-gradient(
        from var(--angle),
        #3164a7 0deg 90deg,
        #cb282a 90deg 180deg,
        #3164a7 180deg 270deg,
        #cb282a 270deg 360deg
    );
    border-radius: 6px;
    z-index: -1;
    animation: btn-fx-border-flow 4s linear infinite;
}

.btn-fx-border::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 4px;
    z-index: -1;
}

.btn-fx-border:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(49, 100, 167, 0.2);
    color: #cb282a !important;
}

.btn-fx-border:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

@keyframes btn-fx-border-flow {
    0% {
        --angle: 0deg;
        filter: hue-rotate(0deg);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        --angle: 360deg;
        filter: hue-rotate(360deg);
        transform: scale(1);
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Optional: If you need to apply to existing buttons */
button.btn-fx-glowing,
button.btn-fx-border,
a.btn-fx-glowing,
a.btn-fx-border {
    text-decoration: none;
    display: inline-block;
}
