/* feed 전체 컨테이너 */
.feed-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* 게시글 박스 */
.feed-container .post {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 20px;
    /*overflow: hidden;*/
}

/* 게시글 헤더 */
.feed-container .post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* 왼쪽: 프로필 이미지 + 닉네임 + 시간 */
.feed-container .post-header-left {
    display: flex;
    align-items: center;
}

.feed-container .post-header-left img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
}

.feed-container .post-header-left .username {
    font-weight: bold;
    font-size: 14px;
}

.feed-container .post-header-left .time {
    color: gray;
    font-size: 12px;
    margin-left: 8px;
}

/* 오른쪽: ⋮ 메뉴 버튼 */
.feed-container .post-header-right .menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* 게시글 이미지 */
.feed-container .post-img {
    width: 100%;
    display: block;
    max-height: 700px;
    object-fit: cover;
}

/* 액션 버튼 (좋아요, 댓글, 공유) */
.feed-container .post-actions {
    padding: 10px;
}

.feed-container .post-actions button {
    background: none;
    border: none;
    font-size: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* 게시글 본문 */
.feed-container .post-content {
    padding: 0 10px 10px 10px;
}

.feed-container .post-content .likes {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.feed-container .post-content .caption {
    font-size: 14px;
    line-height: 1.4;
}
.post-img {
    max-height: 420px;
    object-fit: cover;
}

/* 버튼 공통: background 초기화를 color만 투명으로 */
.feed-container .post-actions button {
    background-color: transparent; /* background: none; 사용 금지 */
    border: none;
    font-size: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* like 버튼: 더 구체적인 선택자로 배경 적용 */
.feed-container .post-actions button.btn.like {
    background: url("/images/like/emptyLove.png") no-repeat center/contain;
    width: 24px;
    height: 24px;
    display: inline-block;
    padding: 0;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000; /* 이미지 로딩 전 배경 대비 */
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.post-image-area .carousel-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding-bottom: 100%;
}


.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain; /* 필요 시 cover 로 변경 */
    background: #000;
}

/* 표시바(인디케이터)를 "막대" 형태로 */
.carousel-indicators {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.carousel-indicators button {
    flex: 1 1 0;
    height: 4px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.carousel-indicators button.active {
    background: #fff;
}

/* 이미지 없는 경우 */
.carousel.empty .no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    color: #999;
    display: grid;
    place-items: center;
    background: #f7f7f7;
    font-size: 14px;
}

/* 댓글 모달 */
/* 하단에서 올라오는 모달 */
.modal-dialog-bottom {
    position: absolute;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: 500px; /* 모바일 느낌 */
}

/* 댓글 리스트 스크롤 */
.comment-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* 댓글 항목 */
.comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.comment-item img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}
.comment-text {
    flex: 1;
}
.comment-like {
    margin-left: 8px;
    cursor: pointer;
}

/* 댓글 입력창 */
.comment-input-wrapper {
    border-top: 1px solid #ddd;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}
.comment-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
}
.comment-input-wrapper button {
    margin-left: 8px;
}
.modal.show .modal-dialog.modal-dialog-bottom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
.postViewModal{
    max-width: 1024px;
}
/* 댓글 textarea 쪽 css */
.pcCommentInput:focus {
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid #ccc; /* 얇은 밑줄 포커스 */
}
.pcCommentsArea {
    max-height: calc(100vh - 313px);      /* 원하는 높이 (예: 250px) */
    height:100%;
    overflow-y: auto;       /* 내용이 넘치면 세로 스크롤 */
    padding-right: 5px;     /* 스크롤바 때문에 내용 붙지 않게 여백 */
    padding-top: 10px;
}
.postComment {
    border-top: 1px solid #ddd;
    padding-top: 11px;
}

/* 대댓글 들여쓰기 */
.comment-item .replies { margin-left: 12px; }

/* 게시물 오른쪽 상단을 누르면 ul 태그가 나오는거 */
.post-header-right {
    position: relative; /* 메뉴 기준점 */
}

.dropdown-menu {
    position: absolute;
    top: 100%;        /* 버튼 바로 아래 */
    right: 0;
    width: 180px;     /* 고정 폭 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* 라운드 모서리 안 넘치게 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 200;
    font-size: 14px;
    text-align: center;  /* 텍스트 가운데 */
    font-weight: 500;
}

.dropdown-menu li {
    list-style: none;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee; /* 인스타처럼 구분선 */
}

.dropdown-menu li:last-child {
    border-bottom: none; /* 마지막은 구분선 제거 */
}

.dropdown-menu li:hover {
    background: #f9f9f9;
}
