/* =================================================================
   BUTTONS - All colors hardcoded
   ================================================================= */

/* ===== BASE BUTTON ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.2s ease-out;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    user-select: none;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* ===== BUTTON VARIANTS ===== */

/* Primary Button - White bg, Black text */
.btn--primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.btn--primary:hover:not(:disabled) {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Outline Button */
.btn--outline {
    background-color: transparent;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn--outline:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    color: #000000;
}

/* Ghost Button */
.btn--ghost {
    background-color: transparent;
    color: #1a1a1a;
    border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}

/* Light Button */
.btn--light {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn--light:hover:not(:disabled) {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Dark Button */
.btn--dark {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn--dark:hover:not(:disabled) {
    background-color: #111111;
    border-color: #111111;
}

/* ===== BUTTON SIZES ===== */

.btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn--xl {
    padding: 24px 48px;
    font-size: 1.25rem;
}

/* ===== BUTTON SHAPES ===== */

.btn--rounded {
    border-radius: 9999px;
}

.btn--square {
    border-radius: 0;
}

/* ===== ICON BUTTONS ===== */

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

.btn--icon.btn--sm {
    width: 36px;
    height: 36px;
}

.btn--icon.btn--lg {
    width: 52px;
    height: 52px;
}

/* ===== BUTTON GROUPS ===== */

.btn-group {
    display: inline-flex;
    gap: 12px;
}

.btn-group--vertical {
    flex-direction: column;
}

/* ===== LOADING STATE ===== */

.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .btn--lg {
        padding: 16px 32px;
        font-size: 1rem;
    }
}