@charset "utf-8";

/**
 * [KOLIVE SNS Skin Style] - theme/kolive_new/skin/board/sns/style.css
 * 코라이브 SNS 전용 모던 트위터/스레드 스타일 3단 반응형 레이아웃
 */

/* 3단 레이아웃 래퍼 */
.sns-layout-wrap {
    display: flex;
    gap: 24px;
    max-width: 1320px;
    margin: 20px auto 40px;
    padding: 0 16px;
    align-items: flex-start;
}

/* 1단: 좌측 SNS LNB */
.sns-lnb {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sns-lnb-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #2563eb;
    padding: 6px 12px 14px;
    text-transform: uppercase;
}
.sns-lnb-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sns-lnb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.sns-lnb-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #6b7280;
}
.sns-lnb-item:hover {
    background: #f3f4f6;
    color: #111827;
}
.sns-lnb-item:hover i {
    color: #2563eb;
}
.sns-lnb-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.sns-lnb-item.active i {
    color: #2563eb;
}
.sns-lnb-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 6px;
}
.btn-lnb-write {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37,99,235,0.25);
    transition: all 0.2s ease;
}
.btn-lnb-write:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,99,235,0.35);
}

/* 2단: 중앙 메인 타임라인 */
.sns-main-feed {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sns-feed-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sns-feed-tabs {
    display: flex;
    gap: 6px;
}
.sns-feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
}
.sns-feed-tab:hover {
    background: #f8fafc;
    color: #1e293b;
}
.sns-feed-tab.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
}
.sns-feed-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sns-feed-count-badge {
    font-size: 13px;
    color: #64748b;
}
.sns-feed-count-badge strong {
    color: #2563eb;
}
.btn-sns-write-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.btn-sns-write-top:hover {
    opacity: 0.9;
}

/* SNS 피드 카드 아이템 */
.sns-feed-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sns-feed-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sns-feed-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.sns-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.sns-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.sns-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.sns-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sns-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-creator {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
}
.sns-post-meta {
    font-size: 12.5px;
    color: #94a3b8;
}

/* 카드 본문 */
.sns-card-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    word-break: break-word;
    margin-bottom: 14px;
}
.sns-card-content a.sns-content-link {
    color: #334155;
    text-decoration: none;
    display: block;
}
.sns-card-content a.sns-content-link:hover {
    color: #0f172a;
}
.sns-tag {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}
.sns-tag:hover {
    text-decoration: underline;
}

/* 미디어 갤러리 */
.sns-media-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
}
.sns-media-grid.grid-1 {
    grid-template-columns: 1fr;
    max-height: 480px;
}
.sns-media-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    max-height: 320px;
}
.sns-media-grid.grid-3 {
    grid-template-columns: 2fr 1fr;
    max-height: 320px;
}
.sns-media-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    max-height: 360px;
}
.sns-media-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
}
.sns-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.sns-media-item:hover img {
    transform: scale(1.02);
}

/* 카드 하단 액션 버튼 바 */
.sns-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.sns-action-btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.sns-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.sns-action-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}
.sns-action-btn.btn-like:hover, .sns-action-btn.btn-like.active {
    color: #ef4444;
    background: #fef2f2;
}
.sns-action-btn.btn-reply:hover {
    color: #0284c7;
    background: #f0f9ff;
}
.sns-action-btn.btn-share:hover {
    color: #10b981;
    background: #ecfdf5;
}

/* 3단: 우측 크리에이터 랭킹 사이드바 */
.sns-ranking-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sns-rank-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sns-rank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.sns-rank-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sns-rank-title i {
    color: #eab308;
}
.sns-rank-more {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
}
.sns-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sns-rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 0.15s;
}
.sns-rank-item:hover {
    background: #f8fafc;
}
.sns-rank-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}
.sns-rank-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sns-rank-item:nth-child(1) .sns-rank-num {
    background: #fef08a;
    color: #854d0e;
}
.sns-rank-item:nth-child(2) .sns-rank-num {
    background: #e2e8f0;
    color: #334155;
}
.sns-rank-item:nth-child(3) .sns-rank-num {
    background: #fed7aa;
    color: #9a3412;
}
.sns-rank-user-info {
    min-width: 0;
}
.sns-rank-user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sns-rank-user-meta {
    font-size: 11.5px;
    color: #94a3b8;
}

/* 반응형 모바일 대응 */
@media (max-width: 1024px) {
    .sns-ranking-sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
    .sns-layout-wrap {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
        margin: 12px auto 30px;
    }
    .sns-lnb {
        width: 100%;
        position: static;
        padding: 10px;
    }
    .sns-lnb-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .sns-lnb-item {
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 13px;
    }
    .sns-lnb-divider {
        display: none;
    }
    .btn-lnb-write {
        display: none;
    }
}

/* SNS 뷰어 전용 클린 스타일 (인라인 style 제거) */
.sns-action-btn.btn-delete { color: #dc2626 !important; }
.sns-view-card .sns-card-content { font-size: 1rem; line-height: 1.75; margin: 1.13rem 0; }
.sns-rank-item .sns-avatar-img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }

/* SNS 댓글 스킨 전용 클래스 (인라인 style 100% 분리) */
.sns-comment-section { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0.88rem; padding: 1.25rem; margin-top: 1rem; }
.sns-comment-title { font-size: 0.94rem; font-weight: 700; color: #1e293b; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sns-comment-count { color: #2563eb; }
.sns-comment-list { display: flex; flex-direction: column; gap: 0.88rem; margin-bottom: 1.25rem; }
.sns-comment-empty { text-align: center; padding: 1.88rem 0; color: #94a3b8; font-size: 0.88rem; }
.sns-comment-item { padding: 0.75rem; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 0.63rem; }
.sns-comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.sns-comment-user { display: flex; align-items: center; gap: 0.5rem; }
.sns-comment-avatar { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; }
.sns-comment-name { font-size: 0.84rem; font-weight: 700; color: #1e293b; }
.sns-comment-time { font-size: 0.75rem; color: #94a3b8; }
.sns-comment-actions { display: flex; gap: 0.5rem; font-size: 0.75rem; }
.sns-comment-del { color: #dc2626; text-decoration: none; }
.sns-comment-content { font-size: 0.88rem; line-height: 1.6; color: #334155; word-break: break-word; }
.sns-comment-form-box { border: 1px solid #d1d5db; border-radius: 0.63rem; overflow: hidden; background: #ffffff; }
.sns-comment-textarea { width: 100%; border: none; padding: 0.75rem; font-size: 0.88rem; resize: vertical; min-height: 4.69rem; box-sizing: border-box; outline: none; font-family: inherit; }
.sns-comment-form-footer { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: #f9fafb; border-top: 1px solid #f1f5f9; }
.sns-comment-notice { font-size: 0.75rem; color: #94a3b8; }
.sns-comment-submit-btn { padding: 0.44rem 1.13rem; background: #2563eb; color: #ffffff; font-size: 0.81rem; font-weight: 700; border: none; border-radius: 0.38rem; cursor: pointer; }
.sns-comment-login-box { text-align: center; padding: 0.88rem; background: #f8fafc; border-radius: 0.5rem; font-size: 0.81rem; color: #64748b; }
.sns-comment-login-link { color: #2563eb; font-weight: 600; }

/* SNS 피드 작성 폼 전용 클래스 (인라인 style 100% 분리) */
.sns-write-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.sns-write-card { padding: 1.5rem; }
.sns-write-field { margin-bottom: 0.88rem; }
.sns-write-field-lg { margin-bottom: 1.13rem; }
.sns-write-label { font-size: 0.81rem; font-weight: 600; color: #4b5563; display: block; margin-bottom: 0.25rem; }
.sns-write-input { width: 100%; padding: 0.63rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.88rem; box-sizing: border-box; }
.sns-write-textarea { width: 100%; min-height: 11.25rem; padding: 0.88rem; border: 1px solid #d1d5db; border-radius: 0.63rem; font-size: 0.94rem; line-height: 1.6; resize: vertical; box-sizing: border-box; outline: none; font-family: inherit; }
.sns-write-media-box { margin-bottom: 1.25rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 0.63rem; padding: 1rem; }
.sns-write-media-title { font-size: 0.81rem; font-weight: 700; color: #334155; display: block; margin-bottom: 0.63rem; }
.sns-write-file-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sns-write-file-input { font-size: 0.81rem; color: #64748b; }
.sns-write-btn-bar { display: flex; justify-content: flex-end; gap: 0.63rem; border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.sns-write-cancel-btn { padding: 0.63rem 1.25rem; background: #f1f5f9; color: #475569; font-size: 0.88rem; font-weight: 600; border-radius: 0.5rem; text-decoration: none; }
.sns-write-submit-btn { padding: 0.63rem 1.5rem; background: #2563eb; color: #ffffff; font-size: 0.88rem; font-weight: 700; border: none; border-radius: 0.5rem; cursor: pointer; }
.sns-write-guide-title { margin-bottom: 0.75rem; }
.sns-write-guide-list { padding-left: 1.13rem; margin: 0; font-size: 0.81rem; color: #64748b; line-height: 1.7; }



