/* Glassmorphism Profile Modal */
.profile-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal {
    width: 90%;
    max-width: 500px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.profile-modal-backdrop.active .profile-modal {
    transform: translateY(0);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.profile-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

/* Avatar Upload Section */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.avatar-wrapper:hover {
    border-color: var(--accent-color, #a855f7);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

/* Static Profile Page Container */
.profile-static-container {
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Reusing Form Styles from Modal */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-form .input-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-form .input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.profile-form .input-group input:focus {
    outline: none;
    border-color: var(--accent-color, #a855f7);
    background: rgba(255, 255, 255, 0.1);
}

.profile-form .input-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.save-btn {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.save-btn:active {
    transform: translateY(0);
}

/* Drag State */
.avatar-wrapper.drag-over {
    border-color: #ec4899;
    transform: scale(1.1);
}