@charset "utf-8";

/* --- [Instagram Style CSS Variables] --- */
:root {
    --bg-color: #FAFAFA;
    /* 인스타 웹 배경색 */
    --content-bg: #FFFFFF;
    --text-main: #262626;
    --text-sub: #8E8E8E;
    --link-blue: #0095F6;
    --border-color: #DBDBDB;
    --lab-accent: #2563EB;
    /* Solkeylab Point Color */

    --max-width: 470px;
    /* 인스타 PC버전 피드 너비 */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- [Layout Container] --- */
#container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--content-bg);
    min-height: 100vh;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

@media (max-width: 500px) {
    #container {
        border: none;
        max-width: 100%;
    }
}

/* --- [1. Sticky Header] --- */
#header {
    position: sticky;
    top: 0;
    background: var(--content-bg);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    font-family: 'Pretendard', sans-serif;
}

.header-icons i {
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
    color: var(--text-main);
}

/* --- [2. Profile Area (Bio)] --- */
.profile-section {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.profile-pic {
    width: 77px;
    height: 77px;
    border-radius: 50%;
    background: #eee;
    margin-right: 28px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-sub);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-weight: 700;
    font-size: 16px;
}

.stat-label {
    color: var(--text-sub);
    font-size: 12px;
}

.profile-bio h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio p {
    color: var(--text-main);
    white-space: pre-wrap;
    margin-bottom: 8px;
}

.profile-link {
    color: #00376B;
    font-weight: 600;
    display: block;
}

/* --- [3. Story Highlights (Categories)] --- */
.story-highlights {
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    -ms-overflow-style: none;
    /* Scrollbar hide */
    scrollbar-width: none;
}

.story-highlights::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
    flex-shrink: 0;
    cursor: pointer;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid var(--border-color);
    /* 비활성 회색 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-ring.active {
    border-color: var(--lab-accent);
}

.story-img {
    width: 100%;
    height: 100%;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    background: #fff;
    border: 1px solid #efefef;
    overflow: hidden;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text {
    font-size: 11px;
    margin-top: 6px;
    color: var(--text-main);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}


/* --- [4. Feed List Style] --- */
.feed-post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 10px;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    margin-right: 10px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-user {
    font-weight: 600;
    font-size: 14px;
    flex-grow: 1;
}

.post-more {
    color: var(--text-main);
}

/* Post Image (Thumbnail) */
.post-image-area {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 정사각형 비율 */
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.post-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 썸네일 없을 때 텍스트 카드 대체 */
.no-thumb-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: #fff;
    text-align: center;
}

.no-thumb-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.no-thumb-cat {
    font-family: monospace;
    color: var(--lab-accent);
    font-size: 12px;
    text-transform: uppercase;
}

/* Action Bar */
.action-bar {
    padding: 12px 16px 0;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
}

.action-left i {
    margin-right: 16px;
    cursor: pointer;
}

.action-left i:hover {
    color: var(--text-sub);
}

/* Likes & Caption */
.post-content {
    padding: 0 16px;
    margin-top: 12px;
}

.likes-count {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.caption-area {
    font-size: 14px;
    margin-bottom: 6px;
}

.caption-user {
    font-weight: 600;
    margin-right: 6px;
}

.caption-text {
    color: var(--text-main);
}

.caption-more {
    color: var(--text-sub);
    cursor: pointer;
}

.post-date {
    padding: 0 16px;
    font-size: 10px;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-top: 4px;
}


/* --- [5. Detail View (Inside Post)] --- */
.article-view {
    padding: 20px 16px;
}

.article-title-lg {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Research Summary Card (Detail) */
.lab-summary {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.lab-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lab-row:last-child {
    margin-bottom: 0;
}

.lab-label {
    color: var(--text-sub);
    font-weight: 500;
}

.lab-val {
    font-weight: 600;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 15px;
}

.article-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}


/* --- [Bottom Nav] --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 50px;
    background: var(--content-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.bottom-nav i {
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Additional Utilities */
.u_tistory_like_btn_wrapper {
    display: none;
}

/* Hide default Tistory like button visual if possible */
.paging {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    font-weight: 600;
    color: var(--link-blue);
}