/* =============================================================================
   Button System — Single Source of Truth

   All .btn, .btn-primary, .btn-secondary, .btn-danger definitions live here.
   View-specific CSS may only override LAYOUT properties (width, flex, alignment),
   never colors, padding, font-size, hover effects or disabled states.
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--kc-font-body, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* -- Primary: Turquoise CTA ------------------------------------------------ */

.btn-primary {
    background: var(--kc-turquoise, #00c78b);
    color: var(--kc-bg-primary, #0d0d0d);
    box-shadow: 0 4px 12px var(--kc-turquoise-shadow, rgba(0, 199, 139, 0.25));
}

.btn-primary:hover:not(:disabled) {
    background: var(--kc-turquoise-bright, #00e6a0);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--kc-turquoise-glow, rgba(0, 199, 139, 0.3));
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: rgba(0, 199, 139, 0.3);
    color: rgba(13, 13, 13, 0.5);
}

/* -- Secondary: Subtle/Ghost ----------------------------------------------- */

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--kc-text-secondary, #b8b8b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--kc-text-primary, #ffffff);
    border-color: rgba(255, 255, 255, 0.2);
}

/* -- Danger: Destructive Actions ------------------------------------------- */

.btn-danger {
    background: var(--kc-danger, #ef4444);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0);
}

.btn-danger:disabled {
    background: rgba(239, 68, 68, 0.3);
}

/* -- Size Variants --------------------------------------------------------- */

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-height: 32px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* -- Loading State --------------------------------------------------------- */

.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* -- Focus Ring (Accessibility) -------------------------------------------- */

.btn:focus-visible {
    outline: 2px solid var(--kc-turquoise, #00c78b);
    outline-offset: 2px;
}