/* Vet Q&A 피드 특정 스타일 */
.vet-qna-feed-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.create-post-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.create-post-section .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Toast UI Editor 컨테이너 높이 */
#toastEditorCreate .toastui-editor-defaultUI,
#toastEditorEdit .toastui-editor-defaultUI {
    height: 250px;
}

/* 댓글 에디터 높이 스타일 제거 또는 주석 처리
#toastEditorCreateComment .toastui-editor-defaultUI {
    height: 100px;
}
*/

.feed-posts-container .card {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feed-posts-container .card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #efefef;
}

.feed-posts-container .profile-image-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.feed-posts-container .post-author {
    font-weight: 600;
    color: #262626;
    font-size: 0.9rem;
}

.vet-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #007bff;
    background-color: #e7f3ff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.vet-badge .mdi {
    font-size: 0.9em;
    margin-right: 4px;
}

.feed-posts-container .post-timestamp {
    font-size: 0.75rem;
    color: #999;
}

.feed-posts-container .post-options-btn {
    margin-left: auto;
    color: #262626;
}

.feed-posts-container .card-body {
    padding: 0;
}

.feed-posts-container .post-image,
.feed-posts-container .post-video {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.feed-posts-container .post-content-text {
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #262626;
}

.feed-posts-container .post-content-text .post-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.feed-posts-container .post-actions {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.feed-posts-container .post-actions .action-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #262626;
    margin-right: 12px;
    cursor: pointer;
    padding: 4px;
}

.feed-posts-container .post-actions .action-btn:hover {
    color: #8e8e8e;
}

.feed-posts-container .post-meta {
    padding: 0 16px 12px;
    font-size: 0.85rem;
    color: #262626;
}

.feed-posts-container .view-cnt-text,
.feed-posts-container .cmnt-count-text {
    font-weight: 600;
    margin-right: 5px;
}

.feed-posts-container .privacy-status {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
}

/* Comments Section */
.comments-section {
    padding: 0 16px 16px;
    border-top: 1px solid #efefef;
    margin-top: 10px;
}

.comment-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-item .profile-image-xs {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.comment-item .comment-author {
    font-weight: 600;
    margin-right: 5px;
}

.comment-item .comment-text {
    word-break: break-word;
}

.comment-item .comment-actions {
    font-size: 0.7rem;
    color: #999;
    margin-left: 8px;
}

.comment-item .comment-timestamp {
    font-size: 0.7rem;
    color: #999;
    margin-left: auto;
}

.comment-input-area {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #efefef;
}

.comment-input-area textarea {
    flex-grow: 1;
    border: none;
    resize: none;
    padding: 8px;
    font-size: 0.85rem;
    max-height: 80px;
}

.comment-input-area textarea:focus {
    outline: none;
}

.comment-input-area .btn-submit-comment {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
}

.comment-input-area .btn-submit-comment:disabled {
    color: #b2dffc;
    cursor: default;
}

/* 드랍존 스타일 */
.dropzone {
    border: 2px dashed #007bff;
    border-radius: 5px;
    background: white;
    min-height: 100px;
    padding: 20px;
}

.dropzone .dz-message {
    font-weight: 400;
    font-size: 1rem;
    color: #555;
}

/* 댓글 섹션에서 더 작은 드랍존 스타일 */
.dropzone.dz-sm {
    min-height: 60px;
    padding: 10px;
    border-width: 1px;
}

.dropzone.dz-sm .dz-message {
    font-size: 0.85rem;
    margin: 0;
}

/* 기존 파일 아이템 편집 모달 */
.existing-file-item {
    padding: 0.25rem 0.5rem;
    border: 1px solid #eee;
    border-radius: 0.2rem;
    margin-bottom: 0.25rem;
}

.existing-file-item.file-marked-for-deletion {
    background-color: #ffe0e0;
    /* 연한 빨간색 배경 */
    border-color: #ffc0c0;
}

.existing-file-item.file-marked-for-deletion span {
    text-decoration: line-through;
    /* 취소선 */
    color: #dc3545;
    /* 빨간색 텍스트 */
}

.btn-delete-existing-file i {
    margin-right: 0.25rem;
}

/* 게시물 내 토스트 UI 편집 컨텐츠 스타일 */
.toastui-editor-contents {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.toastui-editor-contents p {
    margin-bottom: 0.5em !important;
}

.toastui-editor-contents img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 이미지 캐러셀 스타일 */
.post-image-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.carousel-images {
    display: flex;
}

.post-carousel-item {
    display: none;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
}

.post-image-carousel-item {
    cursor: pointer;
}

/* .post-video-carousel-item {} */
/* Specific styles for videos if any */

.post-carousel-item.active {
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 기본 레이아웃 스타일이 충돌하지 않도록 함 */
.page-content-wrapper {
    background-color: #fafafa;
}

/* 프로필 이미지 플레이스홀더 */
.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dbdbdb;
    color: white;
    font-weight: bold;
    font-size: 1em;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 모바일 반응형 조정 */
@media (max-width: 768px) {
    .vet-qna-feed-container {
        padding: 10px 0;
    }

    .feed-posts-container .card {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .create-post-section {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }

    .create-post-section .card-body {
        padding: 15px;
    }
}

/* 프로필 아바타 플레이스홀더 스타일 */
.profile-avatar-md,
.profile-avatar-sm,
.profile-avatar-xs {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    text-transform: uppercase;
}

.profile-avatar-md {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.profile-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 12px;
}

.profile-avatar-xs {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin-right: 8px;
}

/* 프로필 이미지/아바타를 정렬하는 컨테이너 */
.profile-image-container-sm,
.profile-image-container-xs {
    display: flex;
    align-items: center;
}

.comment-input-form .comment-textarea {
    min-height: 80px;
    /* 기존 에디터와 유사한 최소 높이 설정 */
    resize: vertical;
    /* 수직 크기 조절만 허용 */
}

.feed-posts-container .post-timestamp {
    font-size: 0.75rem;
    color: #999;
}

.feed-posts-container .profile-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}