/*
 * Ignorant Galaxy — 按钮系统（液态玻璃）
 * 只定义结构和效果，颜色由各站点自行覆盖
 * 由 Galaxy.Config 嵌入提供，全局引用
 */

/* ── 基础按钮（无色透明液态玻璃）── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    backdrop-filter: blur(var(--liquid-blur));
    -webkit-backdrop-filter: blur(var(--liquid-blur));
    box-shadow: var(--liquid-shadow), var(--liquid-highlight);
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* ── 文字按钮 ── */

.btn-text {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0 8px;
}

.btn-text::before {
    display: none;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── 尺寸 ── */

.btn-lg {
    height: 40px;
    padding: 0 24px;
    font-size: 16px;
}

.btn-sm {
    height: 24px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* ── 禁用 ── */

.btn:disabled,
.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn:disabled::before,
.btn[disabled]::before {
    display: none;
}

/* ── 全宽 ── */

.btn-block {
    width: 100%;
}
