@charset "utf-8";

/*
 * Enhanced Tistory Skin — style.css
 *
 * 01. Fonts & Variables
 * 02. Reset & Base
 * 03. Scrollbar & Selection
 * 04. Scroll Progress Bar
 * 05. Navbar
 * 06. Sidebar
 * 07. Content & Cards (List)
 * 08. Pagination
 * 09. Protected Entry
 * 10. Article Entry
 * 11. Article Content Typography
 * 12. Table of Contents (Floating)
 * 13. Tags
 * 14. Comments
 * 15. Progress Circle (Scroll to Top)
 * 16. Namecard
 * 17. Footer
 * 18. Animations
 * 19. Responsive — Tablet (1200px)
 * 20. Responsive — Mobile (768px)
 * 21. Responsive — Small (480px)
 */


/* ============================================================
   01. Fonts & Variables
   ============================================================ */

@import url("//fonts.googleapis.com/earlyaccess/notosanskr.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

@font-face {
    font-family: "NEXON Lv1 Gothic OTF";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 배경 */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --bg-elevated: #f0f0f2;
    --bg-navbar: rgba(255, 255, 255, 0.85);

    /* 텍스트 */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a52;
    --text-muted: #8e8e99;

    /* 액센트 (코랄 오렌지) */
    --accent: #FF6B35;
    --accent-hover: #FF8F65;
    --accent-secondary: #E85D26;
    --gradient: linear-gradient(135deg, #FF6B35, #E85D26);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(232, 93, 38, 0.08));

    /* 보더 */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 24px rgba(0, 150, 136, 0.12);

    /* 레이아웃 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --navbar-height: 64px;
    --sidebar-width: 260px;
    --right-sidebar-width: 280px;
    --content-max-width: 1100px;
    --article-max-width: 768px;

    /* 트랜지션 */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s var(--ease);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);
}


/* ============================================================
   02. Reset & Base
   ============================================================ */

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

* {
    font-family: "NEXON Lv1 Gothic OTF", "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: inherit;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

* s {
    text-decoration: line-through;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ============================================================
   03. Scrollbar & Selection
   ============================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

::selection {
    background: rgba(0, 150, 136, 0.25);
    color: var(--text-primary);
}


/* ============================================================
   03-1. Cursor Trail
   ============================================================ */

#cursorCanvas {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    pointer-events: none;
}


/* ============================================================
   04. Scroll Progress Bar
   ============================================================ */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.05s linear;
}


/* ============================================================
   04-1. Site Banner
   ============================================================ */

.site-banner {
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.site-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   05. Navbar
   ============================================================ */

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    width: 100%;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: background var(--transition);
}

.navbar .navbar-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.navbar .navbar-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.navbar .navbar-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.navbar .blog_title a {
    display: flex;
    align-items: center;
}

.navbar .blog_title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .blog_img img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: border-color var(--transition);
}

.navbar .blog_img img:hover {
    border-color: var(--accent);
}

.navbar .navbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    transition: border-color var(--transition-fast);
}

.navbar .navbar-search:focus-within {
    border-color: var(--accent);
}

.navbar .navbar-search i {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.navbar .navbar-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    width: 140px;
    outline: none;
}

.navbar .navbar-search input::placeholder {
    color: var(--text-muted);
}


/* ============================================================
   06. Sidebar
   ============================================================ */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.active {
    display: none;
}

.sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    transition: all var(--transition-slow);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(0);
    visibility: visible;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
    padding-top: 0.5rem;
}


.sidebar .sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
}

.sidebar .sidebar-profile .profile-img {
    margin-bottom: 0.75rem;
}

.sidebar .sidebar-profile .profile-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: border-color var(--transition);
}

.sidebar .sidebar-profile .profile-img img:hover {
    border-color: var(--accent);
}

.sidebar .sidebar-profile .profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.sidebar .sidebar-profile .profile-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.sidebar .sidebar-profile .profile-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sidebar .sidebar-profile .subscribe-btn,
.sidebar .sidebar-profile .manage-btn {
    height: 32px;
    box-sizing: border-box;
}

.sidebar .sidebar-profile .subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 1rem;
    border-radius: 20px;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-accent);
}

.sidebar .sidebar-profile .subscribe-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.25);
}

.sidebar .sidebar-profile .subscribe-btn i {
    font-size: 0.65rem;
}

.sidebar .sidebar-profile .subscribe-btn .txt_state {
    font-style: normal;
}

.sidebar .sidebar-profile .manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 1rem;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar .sidebar-profile .manage-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.sidebar .sidebar-profile .manage-btn i {
    font-size: 0.65rem;
}

.sidebar .sidebar-category {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.sidebar .sidebar-category .link_tit {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 2px 0.5rem;
    font-size: 0.85rem;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-weight: 600;
}

.sidebar .sidebar-category .link_tit:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.sidebar .sidebar-category ul li ul li {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1.25rem;
    margin: 2px 0.5rem;
    font-size: 0.85rem;
    gap: 0.3rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.sidebar .sidebar-category ul li ul li:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.sidebar .sidebar-category ul li ul li ul li {
    display: flex;
    flex-direction: row;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin: 0 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.sidebar .sidebar-category ul li ul li ul li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transform: translateY(-50%);
    transition: background var(--transition-fast);
}

.sidebar .sidebar-category ul li ul li ul li:hover::before {
    background: var(--accent);
}

.sidebar .empty-div {
    height: 80px;
}


/* ============================================================
   07. Content & Cards (List)
   ============================================================ */

.container {
    margin-top: var(--navbar-height);
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - var(--navbar-height));
}

.content {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.searchList {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0;
    margin: 0 auto;
    max-width: var(--content-max-width);
}

.searchList .one_article {
    position: relative;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    transition: background var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
}

.searchList .one_article.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.searchList .one_article:hover {
    background: var(--bg-secondary);
}

.searchList .one_article > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0;
    gap: 1.25rem;
}

.searchList .one_article .thumbnail {
    position: relative;
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    background-color: var(--bg-elevated);
    background-image: url('./images/default_thumbnail_1.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.searchList .one_article .thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.searchList .one_article:hover .thumbnail img {
    transform: scale(1.05);
}

.searchList .one_article .article-info {
    flex: 1;
    min-width: 0;
}

.searchList .one_article .article-info-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.searchList .one_article .article-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
}

.searchList .one_article .article-info-top .date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.searchList .one_article .article-info-top .date::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.searchList .one_article .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.searchList .one_article .summary {
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 1.5;
}


/* ============================================================
   08. Pagination
   ============================================================ */

.paging {
    width: 100%;
    margin: 2rem 0 3rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.paging .paging-btn {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.paging .paging-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.paging .numbox {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

.paging .numbox .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.paging .numbox .num:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.paging .selected {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 600;
}


/* ============================================================
   09. Protected Entry
   ============================================================ */

.entryProtected {
    max-width: 480px;
    margin: 6rem auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.entryProtected .protected-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.entryProtected h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.entryProtected .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.entryProtected p {
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entryProtected .protected-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.entryProtected .protected-form label {
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: flex-start;
    margin-left: 0.5rem;
}

.entryProtected .protected-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.entryProtected .protected-form input[type="password"]:focus {
    border-color: var(--accent);
}

.entryProtected .protected-form .submit-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.entryProtected .protected-form .submit-btn:hover {
    opacity: 0.9;
}


/* ============================================================
   10. Article Entry
   ============================================================ */

#tt-body-index > .container > .content > .entry_wrap {
    display: none;
}

#tt-body-index .toc {
    display: none;
}

#removeButton {
    background: none;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin-left: auto;
}

#removeButton:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.entry {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.entry .titleWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.entry .titleWrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.entry .titleWrap .category-badge a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.35rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.entry .titleWrap .category-badge a:hover {
    background: var(--accent);
    color: white;
}

.entry .titleWrap .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.entry .titleWrap .entry-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.entry .titleWrap .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.entry .titleWrap .entry-meta i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.entry .titleWrap .entry-meta .divider {
    width: 1px;
    height: 14px;
    background: var(--border);
}

.entry .titleWrap .entry-meta .admin-actions {
    display: flex;
    gap: 0.75rem;
}

.entry .titleWrap .entry-meta .admin-actions a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.entry .titleWrap .entry-meta .admin-actions a:hover {
    color: var(--accent);
}


/* ============================================================
   11. Article Content Typography
   ============================================================ */

.entry .article {
    width: 100%;
    margin: 0 auto;
}

.entry .article .article_content {
    max-width: var(--article-max-width);
    margin: 3rem auto 0;
    word-break: break-word;
    line-height: 1.8;
    padding: 0 1rem;
}

.entry .article .article_content .contents_style {
    min-height: 50vh;
}

.entry .article .article_content .contents_style a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 150, 136, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.entry .article .article_content .contents_style a:hover {
    text-decoration-color: var(--accent);
}

.entry .article .article_content p {
    line-height: 1.8;
    margin: 0.6em 0;
    color: var(--text-primary);
}

.entry .article .article_content h1,
.entry .article .article_content h2,
.entry .article .article_content h3,
.entry .article .article_content h4 {
    color: var(--text-primary);
    padding-top: 1.5em;
    padding-bottom: 0.5em;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.entry .article .article_content h2 {
    font-size: 1.6rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.entry .article .article_content h3 {
    font-size: 1.3rem;
    color: var(--accent-hover);
}

.entry .article .article_content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.entry .article .article_content ul li,
.entry .article .article_content ol li {
    word-break: break-word;
    width: 85%;
    position: relative;
    left: 2rem;
    margin: 0.75em 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.entry .article .article_content blockquote,
.entry .article .article_content .contents_style blockquote {
    margin: 1.5em 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--gradient-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: normal;
}

.entry .article .article_content figure {
    margin: 1.5em 0;
}

.entry .article .article_content img {
    border-radius: var(--radius-md);
    max-width: 100%;
    height: auto;
}

.entry .article .article_content code {
    font-family: "JetBrains Mono", "D2Coding", monospace;
    font-size: 0.88em;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--accent-hover);
}

.entry .article .article_content pre code {
    display: block;
    margin: 1.5em 0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: auto;
}

pre code.hljs {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.entry .article .article_content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.entry .article .article_content table thead tr {
    background: var(--bg-elevated);
}

.entry .article .article_content table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.entry .article .article_content table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.entry .article .article_content table tbody tr td,
.entry .article .article_content table thead tr th {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    text-align: left;
}

.entry .article .article_content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2.5em 0;
}

/* 다른 카테고리 글 */
.entry .article .article_content .another_category.another_category_color_gray {
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 3rem;
}

.entry .article .article_content .another_category.another_category_color_gray * {
    color: var(--text-primary) !important;
}

.entry .article .article_content .another_category.another_category_color_gray h4,
.entry .article .article_content .another_category.another_category_color_gray h4 a {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.entry .article .article_content .another_category.another_category_color_gray table {
    border: none;
}

.entry .article .article_content .another_category.another_category_color_gray table tr a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry .article .article_content .another_category.another_category_color_gray table td {
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

/* 파일 블록 */
.entry .article .article_content figure.fileblock .filename {
    color: var(--text-primary) !important;
}

/* 오픈그래프 */
figure[data-ke-type="opengraph"] div.og-text p.og-title,
#tt-body-page figure[data-ke-type="opengraph"] div.og-text p.og-title {
    color: var(--text-primary);
}


/* ============================================================
   12. Table of Contents (Floating)
   ============================================================ */

.toc {
    position: fixed;
    top: 120px;
    left: calc((100% + var(--sidebar-width) + var(--content-max-width)) / 2 + 20px);
    max-width: 280px;
    padding: 1rem;
    border-left: 1px solid var(--border);
}

.toc-list > li {
    margin-top: 8px !important;
    font-size: 0.8rem;
}

.toc > .toc-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.toc > .toc-list li:hover {
    color: var(--text-primary);
}

.toc > .toc-list li a {
    text-decoration: none;
}

.is-active-link {
    color: var(--accent) !important;
    font-weight: 500;
}

.is-active-link::before {
    background-color: var(--accent) !important;
}

.toc-absolute {
    position: fixed;
    top: 120px;
}

.toc-fixed {
    position: fixed;
    top: 120px;
}


/* ============================================================
   13. Tags
   ============================================================ */

.entry .article .tagTrail {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry .article .tagTrail a {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-block;
}

.entry .article .tagTrail a:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}


/* ============================================================
   14. Comments
   ============================================================ */

.entry .comment {
    max-width: var(--article-max-width);
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.entry .comment .comment-header {
    margin-bottom: 1.5rem;
}

.entry .comment .comment-header a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry .comment .comment-header .cnt {
    color: var(--accent);
}

.entry .comment .commentWrite {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.entry .comment .comment_input_box {
    margin-bottom: 1rem;
}

.entry .comment .comment_input_box .guest_input_box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.entry .comment .comment_input_box .guest_input_box input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
}

.entry .comment .comment_input_box .guest_input_box input:focus {
    border-color: var(--accent);
}

.entry .comment .comment_input_box textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    width: 100%;
    min-height: 100px;
    color: var(--text-primary);
    font-size: 0.88rem;
    resize: vertical;
    transition: border-color var(--transition-fast);
    line-height: 1.5;
}

.entry .comment .comment_input_box textarea:focus {
    border-color: var(--accent);
}

.entry .comment .write_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry .comment .write_box .secret-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.entry .comment .write_box .secret-label input[type="checkbox"] {
    accent-color: var(--accent);
}

.entry .comment .write_box .comment-submit-btn {
    padding: 0.5rem 1.5rem;
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.entry .comment .write_box .comment-submit-btn:hover {
    opacity: 0.85;
}

/* 댓글 목록 */
.entry .comment .commentList ol {
    display: flex;
    flex-direction: column-reverse;
    list-style: none;
}

.entry .comment .commentList ol li {
    list-style: none;
    margin-top: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.entry .comment .commentList ol li:first-child {
    border-bottom: none;
}

.entry .comment .commentList .comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.entry .comment .commentList .comment-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.entry .comment .commentList .comment-author img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.entry .comment .commentList .comment-author .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.entry .comment .commentList .comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.entry .comment .commentList .comment-date a {
    color: var(--accent);
}

.entry .comment .commentList .comment-body {
    padding: 0.25rem 0 0.75rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.entry .comment .commentList .comment-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.entry .comment .commentList .comment-actions a {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.entry .comment .commentList .comment-actions a:hover {
    color: var(--accent);
}

/* 대댓글 */
.entry .comment .commentList ol li ul {
    list-style: none;
    padding-left: 0;
}

.entry .comment .commentList ol li ul li {
    border-bottom: none;
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-left: 2px solid var(--border);
    margin-left: 1rem;
}


/* ============================================================
   15. Progress Circle (Scroll to Top)
   ============================================================ */

.progress-circle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition);
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.progress-circle:hover {
    cursor: pointer;
    transform: scale(1.1);
    border-color: var(--accent);
}

.progress-circle .top-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 44px;
    color: var(--accent);
    z-index: 3;
}

.progress-circle .dial {
    position: absolute;
}

.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
}


/* ============================================================
   16. Namecard
   ============================================================ */

.tt_box_namecard {
    border-radius: var(--radius-md);
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.tt_box_namecard .tt_tit_cont {
    color: var(--text-primary) !important;
}


/* ============================================================
   16-1. Sidebar Profile
   ============================================================ */

/* (profile styles are in section 06 above) */


/* ============================================================
   16-2. Recent/Popular Tabs
   ============================================================ */

.recent-popular-tabs {
    padding: 1.5rem 2rem 0;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* 홈페이지에서만 표시 */
#tt-body-page .recent-popular-tabs,
#tt-body-category .recent-popular-tabs,
#tt-body-tag .recent-popular-tabs,
#tt-body-search .recent-popular-tabs,
#tt-body-guestbook .recent-popular-tabs {
    display: none;
}

.recent-popular-tabs .tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

.recent-popular-tabs .tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.recent-popular-tabs .tab-btn:hover {
    color: var(--text-primary);
}

.recent-popular-tabs .tab-btn.active {
    color: var(--accent);
    font-weight: 600;
}

.recent-popular-tabs .tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.recent-popular-tabs .tab-content {
    display: none;
}

.recent-popular-tabs .tab-content.active {
    display: block;
}

.recent-popular-tabs .tab-content ul {
    list-style: none;
}

.recent-popular-tabs .tab-content ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.recent-popular-tabs .tab-content ul li:last-child {
    border-bottom: none;
}

.recent-popular-tabs .tab-content ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.recent-popular-tabs .tab-content ul li a:hover {
    color: var(--accent);
}

.recent-popular-tabs .tab-content ul li .date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
    flex-shrink: 0;
}


/* ============================================================
   16-3. Right Sidebar & Widgets
   ============================================================ */

.right-sidebar {
    width: var(--right-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    padding: 1.5rem 1rem;
    border-left: 1px solid var(--border);
    background: var(--bg-primary);
}

/* 글 상세, 방명록 등에서 숨김 */
#tt-body-page .right-sidebar,
#tt-body-guestbook .right-sidebar {
    display: none;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* 최근 댓글 위젯 */
.widget-comments ul {
    list-style: none;
}

.widget-comments ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget-comments ul li:last-child {
    border-bottom: none;
}

.widget-comments ul li a {
    display: block;
    transition: color var(--transition-fast);
}

.widget-comments ul li a:hover {
    color: var(--accent);
}

.widget-comments .comment-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.widget-comments .comment-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* 태그 클라우드 위젯 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-cloud .tag-item {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag-cloud .tag-item:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* 방문자 카운터 위젯 */
.counter-stats {
    display: flex;
    gap: 0;
}

.counter-item {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
}

.counter-item:not(:last-child) {
    border-right: 1px solid var(--border);
}

.counter-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.counter-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}


/* ============================================================
   17. Footer
   ============================================================ */

footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

footer .footer-inner i {
    color: var(--accent);
    font-size: 0.7rem;
}

footer .footer-divider {
    color: var(--border);
    margin: 0 0.25rem;
}

footer a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--accent);
}

footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.75rem;
}

footer > div:not(.footer-inner):not(.footer-links) {
    display: none;
}


/* ============================================================
   18. Animations
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.entry .titleWrap {
    animation: fadeInUp 0.6s var(--ease) both;
}

.entry .article .article_content {
    animation: fadeIn 0.8s var(--ease) 0.2s both;
}


/* ============================================================
   19. Responsive — Tablet (1200px)
   ============================================================ */

@media only screen and (max-width: 1600px) {
    .toc {
        display: none;
    }
}

@media only screen and (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }

    .searchList {
        padding: 1rem 1.5rem;
    }

    .entry .titleWrap .entry-title {
        font-size: 2rem;
    }
}


/* ============================================================
   20. Responsive — Mobile (768px)
   ============================================================ */

@media only screen and (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    .navbar {
        padding: 0 1rem;
    }

    .navbar .blog_title h2 {
        font-size: 0.95rem;
    }

    /* 사이드바: 모바일에서 오버레이 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 999;
        width: 260px;
        height: 100vh;
        padding-top: 1rem;
        border-right: 1px solid var(--border);
        background: var(--bg-secondary);
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }

    .sidebar .sidebar-closeBtn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .container {
        margin-top: var(--navbar-height);
    }

    .navbar .navbar-search {
        display: none;
    }

    .searchList {
        padding: 0.75rem 1rem;
    }

    .searchList .one_article > a {
        gap: 1rem;
    }

    .searchList .one_article .thumbnail {
        width: 100px;
        height: 80px;
    }

    .recent-popular-tabs {
        padding: 1rem 1rem 0;
    }

    /* 글 제목 */
    .entry .titleWrap {
        padding: 3rem 1rem 2rem;
    }

    .entry .titleWrap .entry-title {
        font-size: 1.6rem;
    }

    .entry .titleWrap .entry-meta {
        font-size: 0.75rem;
    }

    /* 본문 */
    .entry .article .article_content {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .entry .article .article_content ul li,
    .entry .article .article_content ol li {
        width: 90%;
        left: 1.5rem;
    }

    /* 댓글 */
    .entry .comment {
        padding: 1.5rem 1rem;
    }

    .entry .comment .comment_input_box .guest_input_box {
        flex-direction: column;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.75rem;
    }

    footer .footer-inner {
        flex-wrap: wrap;
    }
}


/* ============================================================
   21. Responsive — Small (480px)
   ============================================================ */

@media only screen and (max-width: 480px) {
    .searchList .one_article .thumbnail {
        width: 80px;
        height: 64px;
    }

    .searchList .one_article .title {
        font-size: 0.9rem;
    }

    .searchList .one_article .summary {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .entry .titleWrap .entry-title {
        font-size: 1.4rem;
    }

    .entry .article .article_content h2 {
        font-size: 1.3rem;
    }

    .entry .article .article_content h3 {
        font-size: 1.15rem;
    }

    .entry .comment .commentList .comment-author img {
        width: 30px;
        height: 30px;
    }

    .progress-circle {
        bottom: 1rem;
        right: 1rem;
    }
}
