@font-face {
    font-family: 'gta-6-font';
    src: url('/fonts/Pricedown Bl.otf') format('opentype');
    font-display: swap;
}
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.gta-button {
    display: inline-flex;
    position: relative;
    isolation: isolate;

    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: auto;
    padding: 8px 14px;
    box-sizing: border-box;

    border-radius: 4px;
    background: linear-gradient(110deg, #7b2ff7, #e84393, #ff9f43);

    color: white;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.gta-button::before {
    content: "";
    position: absolute;
    z-index: -1;

    inset: -8px;
    padding: 8px;
    border-radius: 12px;

    background: conic-gradient(
        from var(--glow-angle),
        #1500ff,
        #ff0000,
        #ee00ff,
        #ff0000
    );

    filter: blur(12px);

    /* Cut out the centre */
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gta-button:hover::before {
    opacity: 0.9;
    animation: rotateGlow 5s linear infinite;
}

@keyframes rotateGlow {
    from { --glow-angle: 0deg; }
    to   { --glow-angle: 360deg; }
}

.gta-button:hover {
    transform: translateY(-2px);
}

.gta-button:link,
.gta-button:visited,
.gta-button:hover,
.gta-button:active {
    color: white;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .gta-button:hover,
    .gta-button:hover::before {
        animation: none;
        transform: none;
    }
}

.gta-button-icon {
    display: block;
    position: static;
    float: none;

    width: 40px;
    height: 40px;
    max-width: none;

    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.gta-button-text {
    font-family: 'gta-6-font', sans-serif;
    font-size: 22px;
    white-space: nowrap;
}

.gta-button i {
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .gta-button {
        transition: none;
    }

    .gta-button:hover {
        transform: none;
    }
}
