/* Buttons */

/* ----- pill button ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-weight: 600; transition: transform .12s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { 
    background: var(--surface2); 
}
.btn:active { 
    transform: scale(.97); 
}

/* variants */
.btn.primary { 
    background: var(--accent); 
    border-color: var(--accent); 
    color: var(--accent-contrast); 
}
.btn.primary:hover { 
    background: color-mix(in srgb, var(--accent) 88%, #000); 
}
.btn.ghost { 
    background: transparent; 
}
.btn.danger { 
    background: var(--danger); 
    border-color: var(--danger); 
    color: #fff; 
}
[data-theme="dark"] .btn.danger { 
    color: #1a0a0d; 
}
.btn.danger-ghost { 
    color: var(--danger); 
    background: transparent; 
    border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); 
}
.btn.small { 
    min-height: 38px; 
    padding: 0 14px; 
    font-size: .9rem; 
}
.btn.wide {
    width: 100%; 
}
.btn:disabled { 
    opacity: .45; 
    cursor: not-allowed; 
}

/* ----- round icon-only button ----- */
.icon-btn { 
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--text); flex: none; }
.icon-btn:hover { background: var(--surface2); }
.icon-btn.danger { color: var(--danger); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }

/* ----- button styled as plain text ----- */
.linklike { background: none; border: 0; padding: 0; text-align: left; color: inherit; font-weight: inherit; }
.linklike.muted { color: var(--muted); font-size: .82rem; text-decoration: underline; }
