/* Cavree Premium Button System */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

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

/* Primary Button - Luxury Gradient */
.btn-primary {
    background: linear-gradient(135deg, #6B2D5C 0%, #D4AF37 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(107, 45, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 45, 92, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(107, 45, 92, 0.3);
}

/* Secondary Button - Outline */
.btn-secondary {
    background: transparent;
    color: #6B2D5C;
    border: 2px solid #D4AF37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6B2D5C 0%, #D4AF37 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #6B2D5C;
    border: none;
}

.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 10px;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 20px;
    border-radius: 12px;
}

/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Button Group */
.btn-group {
    display: inline-flex;
    gap: 12px;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Full Width Button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Pill Button */
.btn-pill {
    border-radius: 50px;
}

/* Shimmer Effect on Hover */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-shimmer:hover::before {
    left: 100%;
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .btn-xl {
        padding: 16px 36px;
        font-size: 18px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* Special: Apply Now Button */
.btn-apply-now {
    background: linear-gradient(135deg, #D4AF37 0%, #6B2D5C 50%, #D4AF37 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    animation: gradient-shift 3s ease infinite;
}

.btn-apply-now:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* Special: Send OTP Button */
.btn-send-otp {
    background: linear-gradient(135deg, #6B2D5C 0%, #8B3D7C 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(107, 45, 92, 0.3);
}

.btn-send-otp:hover {
    background: linear-gradient(135deg, #8B3D7C 0%, #6B2D5C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 45, 92, 0.4);
}

/* Special: Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #D4AF37 0%, #F5C842 100%);
    color: #6B2D5C;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #F5C842 0%, #D4AF37 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Focus States for Accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.btn:focus:not(:focus-visible) {
    box-shadow: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .btn-ghost {
        color: #F8F1E9;
    }
    
    .btn-ghost:hover {
        background: rgba(212, 175, 55, 0.2);
    }
}
