/**
 * Membership Frontend Styles
 * Styles for membership-related frontend elements
 */

/* Membership Status Notices */
.membership-status-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.membership-status-notice.membership-status-pending {
    background-color: #fff3cd;
    border-left-color: #f56500;
}

.membership-status-notice.membership-status-rejected {
    background-color: #f8d7da;
    border-left-color: #dc3232;
    border-color: #f5c6cb;
}

.membership-status-content h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 18px;
    font-weight: 600;
}

.membership-status-rejected .membership-status-content h3 {
    color: #721c24;
}

.membership-contact-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.membership-contact-link:hover {
    text-decoration: underline;
}

/* Admin Bar Membership Status */
#wp-admin-bar-membership-status .membership-pending {
    color: #f56500;
    font-weight: bold;
}

#wp-admin-bar-membership-status .membership-rejected {
    color: #dc3232;
    font-weight: bold;
}

/* Membership Required Notice */
.membership-required-notice {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3232;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
}

/* Membership Benefits Notice */
.membership-benefits-notice {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.membership-benefits-content h3 {
    margin: 0 0 15px 0;
    color: #0c5460;
    font-size: 20px;
    font-weight: 600;
}

.membership-benefits-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.membership-benefits-content li {
    margin: 8px 0;
    color: #0c5460;
}

.membership-register-btn,
.membership-contact-btn {
    display: inline-block;
    background-color: #17a2b8;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.membership-register-btn:hover,
.membership-contact-btn:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

/* Profile Section Styles */
.membership-profile-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.membership-profile-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

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

.membership-status-member {
    color: #46b450;
    font-weight: bold;
}

.membership-status-pending {
    color: #f56500;
    font-weight: bold;
}

.membership-status-rejected {
    color: #dc3232;
    font-weight: bold;
}

.membership-benefits {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.membership-benefits h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 16px;
    font-weight: 600;
}

.membership-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.membership-benefits li {
    margin: 5px 0;
    color: #155724;
}

/* Shortcode Styles */
.membership-status-shortcode {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.membership-status-shortcode h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.membership-stats-shortcode {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.membership-stats-shortcode p {
    margin: 8px 0;
    font-size: 16px;
}

.membership-stats-shortcode a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.membership-stats-shortcode a:hover {
    text-decoration: underline;
}

/* Event Page Membership Indicators */
.membership-requirement-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
}

.membership-requirement-notice .flex {
    display: flex;
    align-items: center;
}

.membership-requirement-notice svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-status-notice,
    .membership-benefits-notice,
    .membership-profile-section {
        margin: 15px 10px;
        padding: 15px;
    }
    
    .membership-benefits-content h3 {
        font-size: 18px;
    }
    
    .membership-register-btn,
    .membership-contact-btn {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .membership-status-notice,
    .membership-benefits-notice,
    .membership-profile-section {
        margin: 10px 5px;
        padding: 12px;
    }
    
    .membership-benefits-content h3 {
        font-size: 16px;
    }
    
    .membership-benefits-content ul {
        padding-left: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .membership-profile-section {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .membership-profile-section h3 {
        color: #e2e8f0;
    }
    
    .membership-status-shortcode {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .membership-status-shortcode h3 {
        color: #e2e8f0;
    }
}

/* Print Styles */
@media print {
    .membership-status-notice,
    .membership-benefits-notice,
    .membership-required-notice {
        border: 1px solid #000;
        background: none !important;
        color: #000 !important;
    }
    
    .membership-register-btn,
    .membership-contact-btn {
        display: none;
    }
}