/* ================================================================
   Кнопка «второстепенное действие» — класс ui-btn-ghost
   Самостоятельный файл: не зависит от других CSS кнопок.
   Полупрозрачное «стекло» с рамкой — хорошо смотрится поверх фото.

     <a class="ui-btn-ghost" href="…">Текст</a>
     <a class="ui-btn-ghost ui-btn-ghost--lg" href="…">
         Текст <span class="ui-btn-ghost__icon" aria-hidden="true">→</span>
     </a>

   Размеры: ui-btn-ghost--sm (38px), обычная (50px), ui-btn-ghost--lg (56px)
   Переменная --accent — из общих стилей сайта (nav.css).
   ================================================================ */

.ui-btn-ghost {
    --btn-h: 50px;
    --btn-px: 24px;
    --btn-fs: 15px;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f3f4f6;
    font-family: 'Manrope', sans-serif;
    font-size: var(--btn-fs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
            transform 0.2s ease,
            box-shadow 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease,
            color 0.25s ease;
}

.ui-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(165, 180, 252, 0.6);
    background: rgba(165, 180, 252, 0.12);
    color: #fff;
    box-shadow: 0 14px 30px -16px rgba(165, 180, 252, 0.6);
}

.ui-btn-ghost:active {
    transform: translateY(0) scale(0.98);
}

.ui-btn-ghost:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* стрелка или иконка внутри кнопки */
.ui-btn-ghost__icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.ui-btn-ghost:hover .ui-btn-ghost__icon {
    transform: translateX(3px);
}

/* ===== Размеры ===== */

.ui-btn-ghost--sm {
    --btn-h: 38px;
    --btn-px: 16px;
    --btn-fs: 13px;
}

.ui-btn-ghost--lg {
    --btn-h: 56px;
    --btn-px: 30px;
    --btn-fs: 16px;
}

/* ===== Неактивная ===== */

.ui-btn-ghost:disabled,
.ui-btn-ghost[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Для тех, кто отключил анимации в системе ===== */

@media (prefers-reduced-motion: reduce) {
    .ui-btn-ghost,
    .ui-btn-ghost__icon {
        transition: none;
    }

    .ui-btn-ghost:hover,
    .ui-btn-ghost:hover .ui-btn-ghost__icon {
        transform: none;
    }
}