@charset "utf-8";

/* 피드 게시판 스타일 */
.rb_feed_wrap {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 피드 헤더 */
.feed_header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e8ed;
    z-index: 10;
    padding: 16px 20px;
}

.feed_header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feed_title {
    font-size: 20px;
    font-weight: 700;
    color: #0f1419;
    margin: 0;
}

.feed_stats {
    color: #536471;
    font-size: 13px;
}

/* 글쓰기 영역 */
.feed_compose {
    border-bottom: 1px solid #e1e8ed;
}

.compose_inner {
    display: flex;
    gap: 12px;
}

.avatar_img, .avatar_placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar_placeholder {
    background: #1d9bf0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.compose_content {
    flex: 1;
    display: flex;           /* 추가 */
    justify-content: flex-end; /* 오른쪽 정렬 */
}
.compose_write_btn {
    width: auto;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: white;
}

.compose_textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 20px;
    line-height: 1.4;
    resize: none;
    min-height: 40px;
    max-height: 200px;
    padding: 12px 0;
    color: #0f1419;
}

.compose_textarea::placeholder {
    color: #536471;
}

.compose_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.compose_media {
    display: flex;
    gap: 8px;
}

.compose_btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.compose_btn:hover {
    background: #f7f9fa;
}

.compose_btn img {
    width: 20px;
    height: 20px;
}

.compose_submit {
    background: #1d9bf0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.compose_submit:hover {
    background: #1a8cd8;
}

.compose_submit:disabled {
    background: #8ecdf7;
    cursor: not-allowed;
}

.compose_login {
    text-align: center;
    padding: 40px 20px;
    color: #536471;
}

.login_btn {
    display: inline-block;
    background: #1d9bf0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
}

/* 피드 아이템 */
.feed_item {
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.2s;
}

.feed_item_inner {
    display: flex;
    padding: 16px 20px;
    gap: 12px;
}

.feed_profile {
    flex-shrink: 0;
}

.profile_link {
    display: block;
}

.profile_img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feed_content {
    flex: 1;
    min-width: 0;
}

.feed_content_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.feed_author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author_name {
    font-weight: 600;
    color: #0f1419;
    text-decoration: none;
}

.author_name:hover {
    text-decoration: underline;
}

.author_id {
    color: #536471;
    font-size: 15px;
}

.feed_time {
    color: #536471;
    font-size: 15px;
}

.feed_actions {
    display: flex;
    align-items: center;
}

.feed_action_btn {
    background: none;
    border: none;
    padding: 8px 8px 8px 0px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feed_action_btn img {
    width: 18px;
    height: 18px;
}

.feed_text_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feed_text {
    font-size: 15px;
    line-height: 1.4;
    color: #0f1419;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.feed_images {
    margin-bottom: 12px;
}

.feed_image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 4px;
}

.feed_actions_bar {
    display: flex;
    align-items: center;
    max-width: 425px;
}

.action_btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px 8px 8px 0px;
    cursor: pointer;
    transition: all 0.2s;
    color: #536471;
}

.action_btn img {
    width: 18px;
    height: 18px;
}

.action_count {
    font-size: 13px;
    min-width: 20px;
    text-align: left;
}

/* 좋아요 버튼 */
.like_btn {
    background: white;
    color: #536471;
}

/* 좋아요 활성화 상태 */
.like_btn.liked {
    color: #f91880 !important;
    /* background: #fce8f3 !important; */
}

.like_btn_static {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #536471;
    background: white;
}

/* 댓글 버튼 */
.reply_btn {
    background: white;
    color: #536471;
}

.reply_btn:hover {
    color: #1d9bf0;
    background: #e8f5fe;
}


/* 빈 피드 */
.feed_empty {
    text-align: center;
    padding: 60px 20px;
    color: #536471;
}

.empty_icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feed_empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f1419;
    margin: 0 0 8px 0;
}

.feed_empty p {
    margin: 0;
    font-size: 15px;
}

/* 로딩 */
.feed_loading {
    text-align: center;
    padding: 20px;
    color: #536471;
}

.loading_spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-top: 2px solid #1d9bf0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 */
@media (max-width: 768px) {
    .rb_feed_wrap {
        max-width: 100%;
    }
    
    .feed_header,
    .feed_compose,
    .feed_item_inner {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .compose_textarea {
        font-size: 18px;
    }
    
    .feed_text {
        font-size: 15px;
    }
}

/* 모바일 플로팅 글쓰기 버튼 (basic2와 동일) */
#floating_write_btn {
    position: fixed;
    right: 10px;
    bottom: 73px;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: none;
}

#floating_write_btn img {
    width: 30px;
    height: 30px;
}

/* 모바일 환경에서만 글쓰기 버튼 보이게 설정 */
@media only screen and (max-width: 1024px) {
    #floating_write_btn {
        display: flex;
    }
    
}

/* 사이드뷰 스타일 - 피드용 */
.feed_author .sv_wrap,
.comment_header .sv_wrap {
    display: inline;
}

.feed_author .sv_wrap .profile_img,
.comment_header .sv_wrap .profile_img,
.author_name .profile_img,
.comment_author .profile_img {
    display: none !important;
}

.feed_author .sv_member,
.feed_author .sv_guest,
.comment_header .sv_member,
.comment_header .sv_guest {
    font-weight: 600;
    color: #0f1419;
    text-decoration: none;
    cursor: pointer;
}

.feed_author .sv_member:hover,
.feed_author .sv_guest:hover,
.comment_header .sv_member:hover,
.comment_header .sv_guest:hover {
    text-decoration: underline;
}

.feed_author .sv_wrap .sv,
.comment_header .sv_wrap .sv {
    z-index: 100;
}

