/**
 * API Connect Manager - Frontend Styles
 * Stripe Checkout and Portal buttons
 * 
 * @package API_Connect_Manager
 * @since 4.0.0
 */

/* Reset and base */
.acm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.acm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Checkout button */
.acm-btn-checkout {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.acm-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

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

/* Login button */
.acm-btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.acm-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Portal button */
.acm-btn-portal {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.acm-btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Disabled button */
.acm-btn-disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.acm-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading state */
.acm-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.acm-btn.loading .btn-text {
    display: none;
}

.acm-btn.loading .btn-loading {
    display: inline-flex;
}

.acm-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Spinner */
.acm-btn .spinner {
    width: 20px;
    height: 20px;
}

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

.acm-btn-lg {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 14px;
}

/* Full width */
.acm-btn-full {
    width: 100%;
}

/* Icons */
.acm-btn svg:not(.spinner) {
    width: 20px;
    height: 20px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .acm-btn:focus {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .acm-btn {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
    }
}
