/* MUSIKSCHULE365.DE - Profilbild Optimierungen */

/* Profilbild Container */
.profile-image-container {
    position: relative;
    display: inline-block;
}

/* Profilbild Styling */
.profile-image {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Default Avatar */
.default-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Kamera Icon für Upload */
.camera-upload-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-blue, #2125ec);
    color: white;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.camera-upload-icon:hover {
    background: var(--blue-dark, #1a1dba);
    transform: scale(1.1);
}

/* Navigation Profilbild */
.nav-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-default-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile Optimierungen */
@media (max-width: 767.98px) {
    .profile-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .default-avatar {
        width: 80px !important;
        height: 80px !important;
        font-size: 32px !important;
    }
    
    .camera-upload-icon {
        padding: 0.375rem;
        font-size: 0.875rem;
    }
    
    .nav-profile-image {
        width: 28px;
        height: 28px;
    }
    
    .nav-default-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Hover Effekte */
.profile-image-container:hover .camera-upload-icon {
    transform: scale(1.1);
}

/* Loading State */
.profile-image-loading {
    opacity: 0.7;
    filter: grayscale(50%);
}

/* Error State */
.profile-image-error {
    border-color: #dc3545;
}

/* Success State */
.profile-image-success {
    border-color: #28a745;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* File Input Styling */
.profile-image-input {
    display: none;
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 10;
}

/* Responsive Breakpoints */
@media (min-width: 768px) and (max-width: 1023px) {
    .profile-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .default-avatar {
        width: 100px !important;
        height: 100px !important;
        font-size: 40px !important;
    }
}
