/**
 * BrightAster Website
 *
 * @file secondary-button.css
 * @description Reusable styles for the secondary button with animated right arrow.
 * @version 1.1
 */
.btn-secondary {
    position: relative;
    display: inline-block;
    margin: 10px;
}
.btn-secondary a {
    padding: 14px 45px 14px 45px; /* Adjusted padding to balance arrow space */
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--dark-divider-color);
    border-radius: 15px;
    background: var(--divider-color);
    backdrop-filter: blur(15px);
    cursor: pointer;
    z-index: 1;
    transition: 0.2s;
    text-decoration: none;
    display: block;
    position: relative; /* Ensure positioning context for pseudo-elements */
    padding-right: 60px; /* Increased right padding to accommodate arrow */
}
.btn-secondary::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 25%;
    height: 10px;
    background: var(--accent-secondary-color);
    border-radius: 10px;
    transition: .5s;
    box-shadow: 0 0 10px var(--accent-secondary-color),
                0 0 20px var(--accent-secondary-color);
}
.btn-secondary:hover::before {
    bottom: 0;
    height: 40%;
    width: 90%;
    border-radius: 30px;
    transition-delay: 0.1s;
}
.btn-secondary a::after {
    content: '→'; /* Unicode for right arrow */
    position: absolute;
    right: 20px; /* Position arrow after text */
    top: 50%;
    transform: translateY(-50%) translateX(0); /* Center vertically */
    font-size: 18px; /* Match font size for consistency */
    color: var(--primary-color); /* Match text color */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for opacity and movement */
}
.btn-secondary:hover a::after {
    opacity: 1; /* Show arrow on hover */
    transform: translateY(-50%) translateX(5px); /* Slight right movement for animation */
}