/* Consolidated Button Styles */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

/* Primary Button */
.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Secondary Button */
.btn-secondary {
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

/* Secondary Button Icon Animation */
.btn-secondary i {
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover i {
    transform: translateX(2px);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Button States */
.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Size Modifiers */
.btn-large {
    width: 100%;
    height: 52px;
    font-size: 16px;
    margin-top: 8px;
}

/* HTMX Loading State */
.htmx-request.btn span:first-child {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        /* Height stays 48px from main definition */
    }
}
