/* 
    Global Button Component Styles for CareLinks Website
    Include this file in your main CSS or add to your build process
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 2px solid rgba(1, 32, 112, 0.5);
    outline-offset: 2px;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent !important;
    border-color: currentColor;
}

.btn-outline:hover {
    background: currentColor !important;
    color: white !important;
}

/* Size variations */
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-md { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.25rem; }

/* Icon sizing */
.btn-sm i { font-size: 0.875rem; }
.btn-md i { font-size: 1rem; }
.btn-lg i { font-size: 1.125rem; }
.btn-xl i { font-size: 1.25rem; }

/* Button type styles */
.btn-primary { 
    background: linear-gradient(135deg, #012070 0%, #0d49e0 100%); 
    color: white; 
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #0d49e0 0%, #012070 100%); 
    color: white; 
}

.btn-secondary { 
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); 
    color: white; 
}
.btn-secondary:hover { 
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%); 
    color: white; 
}

.btn-success { 
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); 
    color: white; 
}
.btn-success:hover { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}

.btn-warning { 
    background: linear-gradient(135deg, #fecd00 0%, #ffd700 100%); 
    color: #012070; 
}
.btn-warning:hover { 
    background: linear-gradient(135deg, #ffd700 0%, #fecd00 100%); 
    color: #012070; 
}

.btn-danger { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
    color: white; 
}
.btn-danger:hover { 
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); 
    color: white; 
}

.btn-info { 
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); 
    color: white; 
}
.btn-info:hover { 
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); 
    color: white; 
}

.btn-light { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); 
    color: #1e293b; 
    border-color: #e2e8f0;
}
.btn-light:hover { 
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); 
    color: #1e293b; 
}

.btn-dark { 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    color: white; 
}
.btn-dark:hover { 
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%); 
    color: white; 
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    .btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
    .btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
    .btn-xl { padding: 1rem 2rem; font-size: 1.125rem; }
}
