/* Warriors Academy page buttons — uniform pill buttons in the site's button
   language (Montserrat, uppercase, orange) with a glossy sweep on hover.
   Overrides the base .pg_btn rules in index-style.css. */

.page_buttons {
    width: 100%;
    margin: clamp(20px, 3vw, 32px) auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
}

.page_buttons .pg_btn {
    --pg-btn-bg: var(--color-orange, #e87722);
    --pg-btn-bg-hover: var(--color-orange-bright, #f08832);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 220px;
    min-height: 42px;
    padding: 8px 26px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--pg-btn-bg);
    border-radius: 999px;
    background: var(--pg-btn-bg);
    color: var(--color-text-inverse, #fff);
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 26px rgba(var(--color-orange-rgb, 232, 119, 34), 0.28);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.3s ease;
}

/* Glossy sweep */
.page_buttons .pg_btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 45%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.28) 55%,
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.page_buttons .pg_btn:hover,
.page_buttons .pg_btn:focus-visible {
    background: var(--pg-btn-bg-hover);
    border-color: var(--pg-btn-bg-hover);
    color: var(--color-text-inverse, #fff);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(var(--color-orange-rgb, 232, 119, 34), 0.42);
    outline: none;
}

.page_buttons .pg_btn:hover::before,
.page_buttons .pg_btn:focus-visible::before {
    animation: pgBtnGloss 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.page_buttons .pg_btn:active {
    transform: translateY(-1px);
}

/* Subtle idle pulse on the ring so the row feels alive */
.page_buttons .pg_btn::after {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    border-radius: inherit;
    border: 2px solid rgba(var(--color-orange-rgb, 232, 119, 34), 0.45);
    opacity: 0;
    animation: pgBtnRing 3.2s ease-out infinite;
    pointer-events: none;
}

.page_buttons .pg_btn:nth-child(2)::after { animation-delay: 0.5s; }
.page_buttons .pg_btn:nth-child(3)::after { animation-delay: 1s; }
.page_buttons .pg_btn:nth-child(4)::after { animation-delay: 1.5s; }
.page_buttons .pg_btn:nth-child(n + 5)::after { animation-delay: 2s; }

.page_buttons .pg_btn:hover::after,
.page_buttons .pg_btn:focus-visible::after {
    animation-play-state: paused;
    opacity: 0;
}

.page_buttons .pg_btn .mc-svg,
.page_buttons .pg_btn svg {
    position: relative;
    z-index: 2;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    transition: transform 0.3s ease;
}

.page_buttons .pg_btn:hover .mc-svg,
.page_buttons .pg_btn:hover svg,
.page_buttons .pg_btn:focus-visible .mc-svg,
.page_buttons .pg_btn:focus-visible svg {
    transform: translateX(3px) scale(1.08);
}

@keyframes pgBtnGloss {
    from { left: -85%; }
    to { left: 130%; }
}

@keyframes pgBtnRing {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    70%, 100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

@media screen and (max-width: 767px) {
    .page_buttons .pg_btn {
        min-width: 180px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
}

@media screen and (max-width: 560px) {
    .page_buttons {
        gap: 10px;
    }

    .page_buttons .pg_btn {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page_buttons .pg_btn,
    .page_buttons .pg_btn .mc-svg,
    .page_buttons .pg_btn svg {
        transition: none;
    }

    .page_buttons .pg_btn::before,
    .page_buttons .pg_btn::after {
        animation: none;
        opacity: 0;
    }

    .page_buttons .pg_btn:hover,
    .page_buttons .pg_btn:focus-visible {
        transform: none;
    }
}
