/* ========================================
   BUTTONS COMPONENT
======================================== */

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    padding: 0.8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;

    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

/* Primary Button */

.btn--primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.btn--primary:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

/* Secondary Button */

.btn--secondary {
    color: #60a5fa !important;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(96, 165, 250, 0.4);
}

.btn--secondary:hover {
    color: #ffffff !important;
    background: rgba(37, 99, 235, 0.2);
    border-color: #60a5fa;
    transform: translateY(-2px);
}

/* Ghost Button */

.btn--ghost {
    color: #cbd5e1 !important;
    background: transparent;
    border-color: transparent;
}

.btn--ghost:hover {
    color: #ffffff !important;
    background: rgba(148, 163, 184, 0.1);
}

/* Sizes */

.btn--sm {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.btn--md {
    padding: 0.7rem 1.2rem;
}

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

/* Icon */

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

/* Focus & Disabled */

.btn:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.6);
    outline-offset: 4px;
}

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

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .btn,
    .btn__icon {
        transition: none;
    }
}