/* --- CSS Variables --- */
:root {
    --color-bg: #ffffff;
    --color-text-main: #1a1a1a;
    --color-text-sub: #888888;
    --color-point-beige: #e8e4de;
    --color-border: #f0f0f0;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

/* --- Base & Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    word-break: break-all;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Header & Navigation --- */
.header-wrap { padding: 80px 20px 40px; text-align: center; }
.header-wrap .logo {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.header-wrap .blog-desc {
    font-size: 13px;
    color: var(--color-text-sub);
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}
.gnb .category_list { display: flex; justify-content: center; gap: 35px; }
.gnb .category_list li a { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-sub); }
.gnb .category_list li a:hover { color: var(--color-text-main); }
.gnb .tt_category .link_tit, .gnb .tt_category .c_cnt { display: none; }

/* --- Grid Layout (Lookbook) --- */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
main { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 50px 30px; }
body#tt-body-page main, body#tt-body-detail main { display: block; }

.post-card .thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-color: var(--color-point-beige);
    margin-bottom: 20px;
}
.post-card .post-info { text-align: center; }
.post-card .category { font-size: 11px; color: var(--color-text-sub); text-transform: uppercase; }
.post-card .title { font-family: var(--font-serif); font-size: 19px; margin-top: 10px; font-weight: 400; }

/* --- Post Detail --- */
.post-detail { max-width: 780px; margin: 60px auto; padding: 0 20px; }
.detail-header { text-align: center; margin-bottom: 60px; }
.detail-title { font-family: var(--font-serif); font-size: 34px; margin: 20px 0; line-height: 1.3; }
.detail-header .date { font-size: 13px; color: var(--color-text-sub); }
.detail-body { font-size: 17px; line-height: 1.9; margin-bottom: 80px; }
.detail-body img { max-width: 100%; height: auto; margin: 40px 0; }

/* --- Comment Section --- */
.comment-area { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.comment-title { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }
.comment-list { margin-bottom: 50px; }
.comment-item { padding: 25px 0; border-bottom: 1px solid #fcfcfc; }
.comment-name { font-weight: 500; font-size: 14px; margin-right: 10px; }
.comment-date { font-size: 12px; color: var(--color-text-sub); }
.comment-text { font-size: 15px; color: #444; margin-top: 10px; }
.reply-list { margin-top: 10px; margin-left: 30px; border-left: 2px solid var(--color-border); padding-left: 20px; }

/* Comment Form & Secret Checkbox */
.comment-form { display: flex; flex-direction: column; gap: 15px; margin-top: 40px; }
.form-inputs { display: flex; gap: 10px; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 12px; border: 1px solid var(--color-border); font-family: var(--font-sans); outline: none;
}
.comment-form textarea { height: 100px; resize: none; }

.form-submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
.secret-label {
    font-size: 13px;
    color: var(--color-text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.secret-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #111; /* 체크박스 컬러를 블랙으로 */
    cursor: pointer;
}

.comment-form button {
    background: #111;
    color: #fff;
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
.footer-wrap { text-align: center; padding: 100px 20px 60px; font-size: 11px; color: var(--color-text-sub); text-transform: uppercase; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    main { grid-template-columns: 1fr; }
    .form-inputs { flex-direction: column; }
    .detail-title { font-size: 26px; }
}

.post-tags {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* 1. 부모 박스의 글자 크기를 0으로 해서 쉼표를 숨깁니다. */
    font-size: 0; 
    line-height: 0;
}

.post-tags a {
    display: inline-block;
    margin-right: 10px; /* 태그 사이의 간격을 조절하세요 */
    margin-bottom: 10px;
    padding: 8px 15px;
    background: #f4f4f4;
    color: #666;
    text-decoration: none;
    /* 2. 태그의 글자 크기를 다시 지정합니다. */
    font-size: 13px; 
    line-height: 1.5;
    border-radius: 20px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: #333;
    color: #fff;
}

/* 태그 앞에 # 기호 넣기 */
.post-tags a::before {
    content: "#";
    margin-right: 2px;
}