/* buttons.css — .button, .download-button и их варианты */

.button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    transition:
        background var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-family);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.button:active::after {
    opacity: 1;
    transition: opacity 0s;
}

.button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 158, 179, 0.35);
    will-change: transform;
}

.button:active {
    transform: translateY(0) scale(0.98);
}

.button.small {
    padding: 6px 16px;
    font-size: 13px;
}

.developer-actions .button {
    color: white;
}
.developer-actions .button:hover {
    color: white;
}

.button.disabled,
.button[disabled] {
    background: #555;
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
    box-shadow: none !important;
}

.button.wide {
    padding-left: 30px;
    padding-right: 30px;
}

/* ---------- Кнопки скачивания ---------- */

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent);
    font-size: 16px;
    transition:
        background var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
    min-width: 200px;
    flex: 0 1 auto;
    font-family: var(--font-family);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(61, 158, 179, 0.4);
    border-color: var(--accent-light);
    will-change: transform;
}

.download-button:active {
    transform: scale(0.96);
}

.download-button.gamejolt::before {
    content: "\f0e7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.download-button.itch::before {
    content: "\f83a";
    font-family: "Font Awesome 6 Brands";
}

.button:focus-visible,
.download-button:focus-visible,
.social-icon:focus-visible {
    border-radius: var(--radius-pill);
}