  /**
 * Member Photo Manager - Frontend Styles
 */

/* Member Photo Shortcode Styles */
.member-photo {
    display: inline-block;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.member-photo.round {
    border-radius: 50%;
}

.member-photo.square {
    border-radius: 0;
}

/* Avatar Styles */
.avatar.photo {
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* Upload Form Container */
.mpm-upload-form-container {
    max-width: 500px;
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #F0E4CE;
}

/* Current Photo Section */
.mpm-current-photo-section {
    text-align: center;
    margin-bottom: 30px;
}

.mpm-photo-preview {
    display: inline-block;
}

.mpm-photo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mpm-no-photo-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
}

.mpm-photo-status {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.mpm-status-uploaded {
    color: #2e7d32;
    font-weight: 600;
}

.mpm-status-default {
    color: #1976d2;
}

.mpm-status-none {
    color: #999;
}

/* Upload Controls */
.mpm-upload-controls {
    text-align: center;
}

.mpm-file-input-wrapper {
    margin-bottom: 15px;
    text-align: center;
}

.mpm-file-label {
    display: inline-block;
    cursor: pointer;
}

.mpm-file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.mpm-file-requirements {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons */
.mpm-button {
    display: inline-block;
    padding: 5px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mpm-button-primary {
    background: #df782d;
    color: #fff;
}

.mpm-button-primary:hover {
    background: #df782d;
    color: #000;
}

.mpm-button-secondary {
    border: 1px solid #036c40;
    color: #036c40;
}

.mpm-button-secondary:hover {
    background: #ffff;
    color: #df782d;
}

.mpm-button-danger {
    border: 1px solid #d42f29;
    background: #ffffff;
    color: #d42f29;
}

.mpm-button-danger:hover {
    color:#ffffff;
    background: #d42f29;
}

.mpm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mpm-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Messages */
.mpm-messages {
    margin-top: 20px;
}

.mpm-message {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.mpm-message.mpm-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.mpm-message.mpm-error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* RTL overrides */
.rtl .mpm-upload-form-container {
    direction: rtl;
}

.rtl .mpm-button-group {
    flex-direction: row-reverse;
}

.rtl .mpm-file-input-wrapper {
    text-align: right;
}

.rtl .mpm-file-name {
    text-align: right;
}

.rtl .mpm-file-requirements {
    text-align: right;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .mpm-upload-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .mpm-photo-img,
    .mpm-no-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .mpm-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .mpm-button-group {
        flex-direction: column;
    }
    
    .mpm-button-group .mpm-button {
        width: 100%;
    }
}