/**
 * EffortLess Association Member Manager - Frontend Styles
 * (formerly inline in templates/member-profile-content.php and shortcodes.php)
 *
 * @package ELMWG_Association
 * @version 2.12.43
 */

/* ==========================================================================
   Member Profile
   ========================================================================== */

.elmwg-profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.elmwg-profile-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.elmwg-profile-photo-large { flex-shrink: 0; }
.elmwg-profile-photo-large img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f1;
}
.elmwg-profile-photo-large .no-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #666;
    border: 4px solid #e0e0e0;
}
.elmwg-profile-info { flex-grow: 1; }
.elmwg-profile-info h1,
.elmwg-profile-info h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.3;
}
.elmwg-profile-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.elmwg-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}
.elmwg-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.elmwg-profile-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.elmwg-profile-section h2,
.elmwg-profile-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
    font-size: 20px;
}
.elmwg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.elmwg-info-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}
.elmwg-info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
    font-size: 14px;
}
.elmwg-info-item .value {
    color: #2c3338;
    font-size: 16px;
}
.elmwg-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.elmwg-status-badge.active {
    background: #e7f5ec;
    color: #00a32a;
}
.elmwg-status-badge.expired {
    background: #fce8e8;
    color: #d63638;
}
.elmwg-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}
.elmwg-btn:hover {
    background: #135e96;
    color: #fff !important;
}
.elmwg-btn-secondary {
    background: #f0f0f1;
    color: #2c3338 !important;
}
.elmwg-btn-secondary:hover {
    background: #dcdcde;
    color: #2c3338 !important;
}
.elmwg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.elmwg-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}
.elmwg-form-field input[type="text"],
.elmwg-form-field input[type="email"],
.elmwg-form-field input[type="tel"],
.elmwg-form-field select,
.elmwg-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.elmwg-form-field textarea { min-height: 100px; }
.elmwg-photo-upload-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}
.elmwg-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.elmwg-notice-success {
    background: #e7f5ec;
    border-left: 4px solid #00a32a;
}
.elmwg-notice-error {
    background: #fce8e8;
    border-left: 4px solid #d63638;
}
.elmwg-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #dba617;
}

/* ==========================================================================
   Trombinoscope
   ========================================================================== */

.elmwg-trombinoscope {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.elmwg-member-card-link { text-decoration: none; color: inherit; }
.elmwg-member-card {
    border: 1px solid #ccc;
    padding: 10px;
    width: 200px;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}
.elmwg-member-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.elmwg-member-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}
.elmwg-member-card-no-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #666;
    font-size: 14px;
}
.elmwg-member-card-name { margin: 10px 0 5px; font-size: 16px; }
.elmwg-member-card-role { margin: 5px 0; font-size: 12px; color: #666; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .elmwg-profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .elmwg-profile-meta { justify-content: center; }
    .elmwg-form-grid { grid-template-columns: 1fr; }
}
