@charset "utf-8";

/* ✨ Latest Posts Widget */

:root {
    --lt-primary:   #3b6ef5;
    --lt-accent:    #ff5e7e;
    --lt-bg:        #ffffff;
    --lt-surface:   #f7f9fc;
    --lt-border:    #e4eaf4;
    --lt-text:      #1e2535;
    --lt-sub:       #5a6a8a;
    --lt-muted:     #aab4cc;
    --lt-hover-bg:  #eef2ff;
    --lt-shadow:    0 2px 14px rgba(59,110,245,0.09);
    --lt-radius:    18px;
    --lt-radius-sm: 10px;
    --lt-ease:      all 0.22s cubic-bezier(.4,0,.2,1);
}

/* ════════ 래퍼 ════════ */
.lt {
    position: relative;
    margin-bottom: 40px;
    border: 1.5px solid var(--lt-border);
    border-radius: var(--lt-radius);
    background: var(--lt-bg);
    box-shadow: var(--lt-shadow);
    overflow: hidden;
}

.lt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lt-primary), var(--lt-accent));
}

/* ════════ 타이틀 ════════ */
.lt .lt_title {
    display: block;
    padding: 18px 20px 0;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lt-text);
    letter-spacing: -0.3px;
}

.lt .lt_title a {
    color: inherit;
    text-decoration: none;
    transition: var(--lt-ease);
}

.lt .lt_title a:hover { color: var(--lt-primary); }

/* ════════ 박스 ════════ */
.lt .lt_box {
    padding: 0 14px 14px;
    min-height: 160px;
}

.lt .lt_box ul {
    margin: 0;
    padding: 0;
}

/* ════════ 리스트 아이템
   구조: <li>
           <span.lt_subject>  제목링크 + 아이콘들  </span>
           <span.lt_date>  날짜  </span>
         </li>

   li = flex 컨테이너
   lt_subject = flex:1, overflow hidden → 제목이 잘리더라도 날짜는 절대 안 잘림
   lt_date = flex-shrink:0 → 날짜 고정
════════ */
.lt .lt_box li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-bottom: 1px dashed var(--lt-border);
    border-radius: var(--lt-radius-sm);
    transition: background var(--lt-ease);
}

.lt .lt_box li:last-child { border-bottom: none; }
.lt .lt_box li:hover      { background: var(--lt-hover-bg); }
.lt .lt_box li::before    { display: none; }

/* 제목+아이콘 묶음 — flex:1로 남은 공간 모두 차지, 넘치면 말줄임 */
.lt .lt_box li .lt_subject {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
}

/* 제목 링크만 말줄임 */
.lt .lt_box li .lt_subject > a {
    flex: 0 1 auto;          /* 아이콘 공간 남기고 줄어들 수 있음 */
    min-width: 0;
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--lt-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    transition: color var(--lt-ease);
}

.lt .lt_box li .lt_subject > a:hover  { color: var(--lt-primary); }
.lt .lt_box li .lt_subject > a strong { font-weight: 700; color: var(--lt-primary); }

/* 날짜 — flex-shrink:0 으로 절대 줄어들지 않음 */
.lt .lt_box li .lt_date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--lt-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

/* ════════ 뱃지 아이콘 공통 ════════ */
.lt .lt_badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.lt .lt_badge_new  { background: #ffffff ; color: #FF0000; border: 1px solid #FF0000; }
.lt .lt_badge_hot  { background: #fff0f2; color: var(--lt-accent);   border: 1px solid #ffd4dc; }
.lt .lt_badge_file { background: #fff8e1; color: #e6a820;             border: 1px solid #ffe082; }
.lt .lt_badge_link { background: #f5eafe; color: #a855f7;             border: 1px solid #ddb6fc; }
.lt .lt_badge_cmt  { background: var(--lt-primary); color: #fff; min-width: 16px; padding: 0 3px; border-radius: 8px; }

.lt .lt_badge i { font-size: 9px; color: inherit; }

/* 🔒 비밀글 */
.lt .lt_icon_lock {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #eaf4f6;
    color: #4f818c;
    border: 1px solid #cbe3e8;
    font-size: 9px;
}

/* ════════ 빈 목록 ════════ */
.lt .lt_box li.lt_empty {
    justify-content: center;
    padding: 44px 0;
    font-size: 14px;
    color: var(--lt-muted);
    border-bottom: none;
}

.lt .lt_box li.lt_empty:hover { background: none; }

/* ════════ 더보기 ════════ */
.lt .lt_more {
    border-top: 1px solid var(--lt-border);
    text-align: right;
    padding: 10px 16px;
}

.lt .lt_more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lt-sub);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--lt-border);
    background: none;
    transition: var(--lt-ease);
}

.lt .lt_more a:hover {
    border-color: var(--lt-primary);
    color: var(--lt-primary);
    background: var(--lt-hover-bg);
}

/* ════════ aside / 사이드바 ════════ */
.latest_wr { display: flex; flex-wrap: wrap; gap: 20px; }
.lt_wr      { position: relative; width: calc(50% - 10px); }

.aside_lt { position: relative; width: 100%; margin-bottom: 20px; }
.aside_lt .lt_title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--lt-text); display: block; }
.aside_lt .lt_box   { border: 1.5px solid var(--lt-border); border-radius: var(--lt-radius-sm); padding: 12px 14px; background: var(--lt-bg); }
.aside_lt .lt_box ul { margin: 0; padding: 0; }
.aside_lt .lt_box li { list-style: none; display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-bottom: 1px dashed var(--lt-border); }
.aside_lt .lt_box li:last-child { border-bottom: none; }
.aside_lt .lt_box li::before { display: none; }
.aside_lt .lt_box li .lt_subject { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aside_lt .lt_box li .lt_subject > a { font-size: 13px; color: var(--lt-text); text-decoration: none; }
.aside_lt .lt_box li .lt_subject > a:hover { color: var(--lt-primary); }
.aside_lt .lt_date { flex-shrink: 0; font-size: 11px; color: var(--lt-muted); white-space: nowrap; }

/* ════════ 바로가기 ════════ */
.short_cut { margin-bottom: 28px; }
.short_cut ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.short_cut li { list-style: none; }
.short_cut li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--lt-border);
    border-radius: var(--lt-radius-sm);
    background: var(--lt-surface);
    color: var(--lt-sub);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--lt-ease);
}
.short_cut li a::after { content: '›'; font-size: 18px; color: var(--lt-muted); line-height: 1; }
.short_cut li a:hover  { border-color: var(--lt-primary); color: var(--lt-primary); background: var(--lt-hover-bg); }
