/**
 * FX Memberships - Frontend Styles
 */

/* Restricted notice */
.fxm-restricted-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.fxm-restricted-notice p {
    margin: 0 0 15px 0;
}

.fxm-restricted-notice p:last-child {
    margin-bottom: 0;
}

/* Subscribe buttons */
.fxm-subscribe-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.fxm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.fxm-button-stripe {
    background: #635bff;
    color: #fff;
}

.fxm-button-stripe:hover {
    background: #4b45c6;
    color: #fff;
}

.fxm-button-paypal {
    background: #003087;
    color: #fff;
}

.fxm-button-paypal:hover {
    background: #001f5c;
    color: #fff;
}

.fxm-provider-badge {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Account section */
.fxm-account {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.fxm-account-header h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.fxm-account-subscription h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.fxm-subscription-active p,
.fxm-subscription-inactive p {
    margin: 8px 0;
}

.fxm-account-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.fxm-account-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Status badges */
.fxm-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.fxm-status-active {
    background: #d4edda;
    color: #155724;
}

.fxm-status-trialing {
    background: #d1ecf1;
    color: #0c5460;
}

.fxm-status-canceled {
    background: #e2e3e5;
    color: #383d41;
}

.fxm-status-past_due {
    background: #fff3cd;
    color: #856404;
}

.fxm-status-paused {
    background: #e2e3e5;
    color: #383d41;
}

.fxm-status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* Portal link */
.fxm-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fxm-portal-link:hover {
    background: #e9ecef;
    color: #212529;
}

/* Login form wrapper */
.fxm-login-form-wrapper {
    max-width: 400px;
    margin: 20px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.fxm-login-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.fxm-login-form-wrapper input[type="text"],
.fxm-login-form-wrapper input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.fxm-login-form-wrapper input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fxm-login-form-wrapper input[type="submit"]:hover {
    background: #0056b3;
}

.fxm-register-link,
.fxm-lostpassword-link {
    margin: 15px 0 0 0;
    text-align: center;
    font-size: 14px;
}

.fxm-lostpassword-link {
    margin-top: 10px;
}

/* Notices */
.fxm-notice {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
}

.fxm-error {
    padding: 12px 16px;
    background: #f8d7da;
    border-radius: 4px;
    color: #721c24;
}

/* Logout link */
.fxm-logout-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.fxm-logout-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Login link in restricted */
.fxm-login-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.fxm-login-link:hover {
    background: #0056b3;
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .fxm-subscribe-buttons {
        flex-direction: column;
    }
    
    .fxm-button {
        width: 100%;
    }
    
    .fxm-account {
        padding: 15px;
    }
    
    .fxm-login-form-wrapper {
        padding: 15px;
    }
}

