/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.file-upload__input {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload__button {
    display: inline-block;
    background: #F7F7F7;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s;
}

.file-upload__button:hover {
    background-color: #e9e9e9;
}

.file-upload__label {
    margin-left: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.file-upload-preview {
    display: none;
    margin: 10px 0;
    position: relative;
}

.file-upload-preview.active {
    display: block;
}

.file-upload-preview__image {
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.file-upload-preview__remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #E4382A;
    border: 1px solid #E4382A;
}

.avatar-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.file-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

/* Reply form styles */
.reply-form {
    display: none;
    margin-top: 10px;
    margin-bottom: 20px;
}

.reply-form.active {
    display: block;
}

.reply-form .comment-create__body {
    margin-left: 42px;
}

@media screen and (max-width: 440px) {
    .reply-form .comment-create__body {
        margin-left: 30px;
    }
    
    .file-upload-container {
        flex-direction: column;
        gap: 10px;
    }
}