/* profile-upload.css - สไตล์สำหรับส่วนอัปโหลดรูปโปรไฟล์ */

/* ส่วนอัปโหลดรูปโปรไฟล์ - เพิ่มเติมและแยกออกมาเป็นไฟล์ต่างหาก */
.profile-upload-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    position: relative;
    background-color: #f9faff;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: white;
    border: 2px dashed var(--public-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.profile-preview:hover {
    border-color: var(--public-secondary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-preview i {
    font-size: 3rem;
    color: var(--public-primary);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.profile-preview span {
    font-size: 0.9rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.profile-preview.has-image i,
.profile-preview.has-image span {
    display: none;
}

.profile-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.profile-preview:hover::after {
    background-color: rgba(255, 255, 255, 0.2);
}

.upload-button {
    background-color: var(--public-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.upload-button i {
    margin-right: 8px;
}

.upload-button:hover {
    background-color: var(--public-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* อนิเมชันเพิ่มเติม */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--public-primary-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--public-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--public-primary-rgb), 0);
    }
}

.profile-preview:hover i {
    animation: pulse 1.5s infinite;
    color: var(--public-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-preview {
        width: 120px;
        height: 120px;
    }
    
    .profile-preview i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .profile-preview {
        width: 100px;
        height: 100px;
    }
    
    .profile-preview i {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .profile-preview span {
        font-size: 0.8rem;
    }
    
    .upload-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}