/* My Custom Profile Editor Styles */

/* Base container */
.my-profile-editor-container {
    max-width: 600px;
    margin: 40px auto;
    background: rgba(48, 48, 48, 0.7); /* Dark glassy background */
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px); /* Glass effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
    padding: 25px;
    color: #f0f0f0; /* White text for contrast */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.my-profile-editor-title {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* Individual profile item */
.my-profile-editor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-profile-editor-item:last-child {
    border-bottom: none;
}

.my-profile-editor-item label {
    font-weight: 500;
    color: #e0e0e0;
    flex: 1;
}

.my-profile-editor-value {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.my-profile-editor-value:hover {
    color: #ffffff; /* Lighter white on hover */
}

.my-profile-editor-value .my-profile-editor-text {
    margin-right: 10px;
    color: #c0c0c0;
}

.my-profile-editor-icon {
    color: #ffffff;
    font-size: 0.9em;
}

.my-profile-editor-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modals */
.my-profile-editor-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    backdrop-filter: blur(8px); /* More blur for modal background */
    -webkit-backdrop-filter: blur(8px);
}

.my-profile-editor-modal-content {
    background: rgba(0, 0, 0, 0.85); /* Darker glassy for content */
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    width: 90%; /* Could be more responsive */
    max-width: 500px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #f8f8f8;
}

.my-profile-editor-modal-content h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.my-profile-editor-modal-content p {
    color: #b0b0b0;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.my-profile-editor-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.my-profile-editor-modal-close:hover,
.my-profile-editor-modal-close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

/* Form elements in modals */
.my-profile-editor-modal-content input[type="email"],
.my-profile-editor-modal-content input[type="text"],
.my-profile-editor-modal-content textarea {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible input background */
    color: #ffffff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.my-profile-editor-modal-content input[type="email"]:focus,
.my-profile-editor-modal-content input[type="text"]:focus,
.my-profile-editor-modal-content textarea:focus {
    border-color: #5cb85c; /* Green accent on focus */
    background-color: rgba(255, 255, 255, 0.1);
}

.my-profile-editor-modal-content textarea {
    resize: vertical;
}

/* Buttons */
.my-profile-editor-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.my-profile-editor-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.my-profile-editor-button-cancel {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.my-profile-editor-button-cancel:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.my-profile-editor-button-save,
.my-profile-editor-button-update {
    background-color: #5cb85c; /* Green accent */
    color: #ffffff;
    font-weight: bold;
}

.my-profile-editor-button-save:hover,
.my-profile-editor-button-update:hover {
    background-color: #4cae4c; /* Darker green on hover */
}

.my-profile-editor-button-remove {
    background-color: #d9534f; /* Red accent for remove */
    color: #ffffff;
}

.my-profile-editor-button-remove:hover {
    background-color: #c9302c; /* Darker red on hover */
}

/* Profile Photo Section in Profile Info Modal */
.my-profile-editor-profile-info-section {
    margin-bottom: 25px;
}

.my-profile-editor-profile-info-section label {
    display: block;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 500;
}

.my-profile-editor-photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.my-profile-editor-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0; /* Prevent it from shrinking */
}

.my-profile-editor-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-profile-editor-photo-recommendation {
    font-size: 0.85em;
    color: #909090;
    margin-top: 10px;
    margin-left: calc(96px + 20px); /* Align with text under photo actions */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .my-profile-editor-modal-content {
        margin: 5% auto;
        width: 95%;
    }
    .my-profile-editor-photo-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .my-profile-editor-photo-recommendation {
        margin-left: 0; /* Full width under actions */
    }
}
