/* BBAPL Membership Plugin Styles */

/* Form Wrapper */
.bbapl-membership-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Form Groups */
.bbapl-form-group {
    margin-bottom: 20px;
}

.bbapl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.bbapl-form-group input[type="text"],
.bbapl-form-group input[type="email"],
.bbapl-form-group input[type="password"],
.bbapl-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bbapl-form-group input:focus,
.bbapl-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.bbapl-form-group .required {
    color: #d63638;
}

/* Checkbox */
.bbapl-form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Buttons */
.bbapl-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.bbapl-btn-primary {
    background: #0073aa;
    color: #fff;
}

.bbapl-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.bbapl-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.bbapl-btn-secondary:hover {
    background: #dcdcde;
}

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

/* Form Footer */
.bbapl-form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
    text-align: center;
    font-size: 14px;
}

.bbapl-form-footer a {
    color: #0073aa;
    text-decoration: none;
}

.bbapl-form-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.bbapl-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.bbapl-message.success {
    background: #d7f0d7;
    border-left: 4px solid #46b450;
    color: #155724;
}

.bbapl-message.error {
    background: #fce4e4;
    border-left: 4px solid #d63638;
    color: #721c24;
}

.bbapl-message.info {
    background: #e5f5fa;
    border-left: 4px solid #00a0d2;
    color: #0c5460;
}

/* Membership Plans */
.bbapl-membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.bbapl-membership-plan {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.bbapl-membership-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.bbapl-membership-plan.active {
    border-color: #0073aa;
    background: #f0f8ff;
}

.plan-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.current-plan-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #46b450;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-price {
    margin: 20px 0;
}

.plan-price .price {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
}

.plan-price .period {
    font-size: 14px;
    color: #666;
}

.plan-description {
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.plan-features {
    margin: 30px 0;
    text-align: left;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
    color: #333;
}

.plan-features li:before {
    content: "✓";
    color: #46b450;
    font-weight: bold;
    margin-right: 10px;
}

.plan-action {
    margin-top: 20px;
}

.plan-action .bbapl-btn {
    width: 100%;
}

/* User Profile */
.bbapl-user-profile-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bbapl-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.bbapl-profile-header h2 {
    margin: 0;
}

.bbapl-profile-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bbapl-profile-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.membership-info p {
    margin: 10px 0;
}

.membership-info strong {
    display: inline-block;
    min-width: 120px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-active {
    background: #d7f0d7;
    color: #155724;
}

.status-badge.status-expired {
    background: #fce4e4;
    color: #721c24;
}

.status-badge.status-cancelled {
    background: #f0f0f1;
    color: #666;
}

/* Content Restriction */
.bbapl-restricted-content {
    background: #fff;
    padding: 40px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.bbapl-restriction-message {
    font-size: 18px;
    margin-bottom: 20px;
}

.bbapl-content-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: left;
    opacity: 0.6;
}

.bbapl-admin-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .bbapl-membership-form-wrapper {
        padding: 20px;
    }
    
    .bbapl-membership-plans {
        grid-template-columns: 1fr;
    }
    
    .bbapl-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bbapl-profile-header .bbapl-btn {
        margin-top: 15px;
    }
}
