/**
 * MadBot - Button Styles
 * Primary, secondary, outline, and utility buttons
 */

/* ==========================================================================
   BASE BUTTON
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
}

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

/* ==========================================================================
   BUTTON VARIANTS
   ========================================================================== */

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

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

/* Gradient Button */
.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.light-mode .btn-secondary {
    background: #F1F5F9;
    color: #1E293B;
    border-color: #E2E8F0;
}

.light-mode .btn-secondary:hover {
    background: #E2E8F0;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 12px;
}

.btn-ghost:hover {
    color: var(--text-color);
    background: rgba(255,255,255,0.05);
}

.light-mode .btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

/* ==========================================================================
   BUTTON SIZES
   ========================================================================== */

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   SUBMIT BUTTON (Form specific)
   ========================================================================== */

.submit-btn {
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-normal), transform 0.1s;
}

.submit-btn:hover {
    opacity: 0.9;
}

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

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

/* ==========================================================================
   ICON BUTTONS
   ========================================================================== */

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   LINK STYLE BUTTON
   ========================================================================== */

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}
