/* ============================================================
   IT블로그 — Dark Space Theme  |  style.css
   ============================================================ */
/* ============================================================
   🚀 IT블로그 로딩 화면 CSS
   style.css 맨 위에 이 내용을 붙여넣으세요
   ============================================================ */

/* 키프레임 */
@keyframes ldrSpin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}
@keyframes ldrIn {
  from { opacity:0; transform:translateY(22px) scale(.93); }
  to   { opacity:1; transform:translateY(0)    scale(1);   }
}
@keyframes ldrCh {
  from { opacity:0; transform:translateY(14px) rotateX(50deg); }
  to   { opacity:1; transform:translateY(0)    rotateX(0deg); }
}
@keyframes ldrEye  { 0%,100%{opacity:.4} 50%{opacity:1} }
@keyframes ldrGlow { 0%,100%{box-shadow:0 0 0 8px rgba(124,106,247,.04),0 0 22px rgba(124,106,247,.14)} 50%{box-shadow:0 0 0 10px rgba(124,106,247,.09),0 0 46px rgba(124,106,247,.34)} }
@keyframes ldrDot  { 0%,100%{transform:translateY(-50%) scale(1)} 50%{transform:translateY(-50%) scale(1.7)} }
@keyframes ldrCr   { 0%,100%{opacity:.28} 50%{opacity:1} }
@keyframes ldrTag  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes ldrShim { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes ldrIconPop { from{opacity:0;transform:scale(.45)} to{opacity:1;transform:scale(1)} }

/* 루트 */
#itblog-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #07071a;
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease, visibility .7s ease;
}
#itblog-loader.ldr-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 캔버스 */
#ldr-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 배경 글로우 */
#itblog-loader .ldr-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 55% at 20% 15%, rgba(124,106,247,.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 80% 85%, rgba(232,121,160,.13) 0%, transparent 55%);
}

/* 스캔라인 */
#itblog-loader .ldr-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
}

/* 코너 장식 */
#itblog-loader .ldr-cr {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
}
#itblog-loader .ldr-cr::before,
#itblog-loader .ldr-cr::after {
  content: '';
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(135deg, #7c6af7, #e879a0);
  animation: ldrCr 3s ease-in-out infinite;
}
#itblog-loader .ldr-cr::before { top:0; left:0; width:100%; height:2px; }
#itblog-loader .ldr-cr::after  { top:0; left:0; width:2px;  height:100%; }
#itblog-loader .ldr-cr.tl { top:26px;    left:26px; }
#itblog-loader .ldr-cr.tr { top:26px;    right:26px;  transform:scaleX(-1); }
#itblog-loader .ldr-cr.bl { bottom:26px; left:26px;   transform:scaleY(-1); }
#itblog-loader .ldr-cr.br { bottom:26px; right:26px;  transform:scale(-1); }
#itblog-loader .ldr-cr.tr::before,
#itblog-loader .ldr-cr.tr::after,
#itblog-loader .ldr-cr.br::before,
#itblog-loader .ldr-cr.br::after { animation-delay:.7s; }

/* 중앙 컨테이너 */
#itblog-loader .ldr-body {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: ldrIn .85s cubic-bezier(.34,1.3,.64,1) forwards;
}

/* 링 */
#itblog-loader .ldr-ring {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#itblog-loader .ldr-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 아이콘 */
#itblog-loader .ldr-icon {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,7,26,.95);
  border: 1px solid rgba(124,106,247,.24);
  animation: ldrGlow 2.5s ease-in-out infinite;
}
#itblog-loader .ldr-icon span {
  font-family: 'JetBrains Mono','Fira Code','Courier New',monospace;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(135deg,#7c6af7,#e879a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ldrIconPop .8s cubic-bezier(.34,1.56,.64,1) .35s both;
}

/* 텍스트 */
#itblog-loader .ldr-texts {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
#itblog-loader .ldr-eye {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: .6em;
  font-weight: 700;
  letter-spacing: .38em;
  color: rgba(124,106,247,.65);
  animation: ldrEye 1.6s step-end infinite;
}
#itblog-loader .ldr-title {
  font-family: 'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif;
  font-weight: 900;
  font-size: clamp(1.9em,4.5vw,2.9em);
  letter-spacing: .22em;
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg,#f0eeff 0%,#b4aaff 35%,#e879a0 68%,#4ecdc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: ldrShim 3.5s linear infinite;
}
#itblog-loader .ldr-title span:not(.sp) {
  display: inline-block;
  opacity: 0;
  animation: ldrCh .5s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: calc(.5s + var(--i,0)*.07s);
}
#itblog-loader .ldr-title .sp { width:.28em; display:inline-block; }

#itblog-loader .ldr-tag {
  font-size: .74em;
  color: rgba(155,145,215,.42);
  letter-spacing: .1em;
  font-style: italic;
  animation: ldrTag .7s ease 1.1s both;
}

/* 프로그레스 */
#itblog-loader .ldr-prog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 240px;
  animation: ldrTag .7s ease 1s both;
}
#itblog-loader .ldr-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: visible;
}
#itblog-loader .ldr-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#7c6af7,#e879a0,#4ecdc4);
  border-radius: 999px;
  transition: width .2s ease;
  position: relative;
  z-index: 1;
}
#itblog-loader .ldr-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eeeeff;
  box-shadow: 0 0 8px 3px rgba(124,106,247,.9), 0 0 18px 5px rgba(232,121,160,.4);
  animation: ldrDot .9s ease-in-out infinite;
}
#itblog-loader .ldr-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(124,106,247,.25),rgba(232,121,160,.18),transparent);
  filter: blur(4px);
  pointer-events: none;
}
#itblog-loader .ldr-pct {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: .67em;
  font-weight: 700;
  color: rgba(155,145,215,.45);
  letter-spacing: .1em;
  min-width: 36px;
  text-align: center;
}

@media(max-width:480px){
  #itblog-loader .ldr-ring { width:96px; height:96px; }
  #itblog-loader .ldr-icon { width:54px; height:54px; }
  #itblog-loader .ldr-prog { width:190px; }
  #itblog-loader .ldr-cr   { width:28px; height:28px; }
  #itblog-loader .ldr-cr.tl { top:14px; left:14px; }
  #itblog-loader .ldr-cr.tr { top:14px; right:14px; }
  #itblog-loader .ldr-cr.bl { bottom:14px; left:14px; }
  #itblog-loader .ldr-cr.br { bottom:14px; right:14px; }
}

/* ============================================================
   여기 아래에 기존 style.css 내용을 이어서 붙여넣으세요
   ============================================================ */
/* ── CSS Variables ── */
:root {
  --color-bg:        #0a0a14;
  --color-bg-2:      #0f0f1e;
  --color-bg-3:      #12121f;
  --color-bg-card:   #13131f;
  --color-surface:   #1a1a2e;
  --color-border:    rgba(255,255,255,0.07);
  --color-border-2:  rgba(255,255,255,0.12);

  --color-text:      #e8e8f0;
  --color-text-2:    #a0a0b8;
  --color-text-3:    #60607a;
  --color-text-muted:#44445a;

  --color-accent:    #7c6af7;
  --color-accent-2:  #e879a0;
  --color-accent-3:  #4ecdc4;

  --gradient-main:   linear-gradient(135deg, #7c6af7, #e879a0);
  --gradient-card:   linear-gradient(160deg, #1a1a2e 0%, #0f0f1e 100%);

  --font-sans:    'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-display: 'Georgia', 'Nanum Myeongjo', serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,106,247,0.15);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124,106,247,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(232,121,160,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.screen-out, .screen_out {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

#acc-nav { display: none; }

#wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER — Pill Nav Bar (스크린샷 스타일)
   ============================================================ */
#header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1280px;
  z-index: 1000;
  pointer-events: all;
}

#header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 72px;
  padding: 0 16px;
  background: rgba(12,12,26,0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.45),
    0 0 0 1px rgba(124,106,247,0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

/* 레인보우 보더 애니메이션 */
#header .inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #7c6af7 0%, #e879a0 25%, #4ecdc4 50%, #7c6af7 75%, #e879a0 100%);
  background-size: 200% 100%;
  animation: rainbowSlide 5s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes rainbowSlide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#header.scrolled .inner {
  background: rgba(8,8,20,0.94);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(124,106,247,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  border-color: rgba(124,106,247,0.18);
}

/* ── 로고 ── */
.header-logo {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: 1em;
}

.header-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124,106,247,0.35);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: rgba(124,106,247,0.08);
  text-decoration: none;
}

.header-logo a:hover {
  border-color: rgba(124,106,247,0.7);
  box-shadow: 0 0 20px rgba(124,106,247,0.35);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-text {
  font-size: 0.78em;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-align: center;
  line-height: 1.2;
}

/* ── GNB 중앙 메뉴 ── */
#gnb {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gnb ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#gnb ul li {
  position: relative;
}

#gnb ul li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  font-size: 2.3em;
  font-weight: 600;
  color: rgba(200,200,230,0.65);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

#gnb ul li > a:hover {
  color: #e8e8f4;
  background: rgba(255,255,255,0.07);
}

#gnb ul li.active > a,
#gnb ul li:has(.current) > a {
  color: #fff;
  background: rgba(124,106,247,0.15);
}

/* 드롭다운 화살표 */
#gnb ul li:has(ul) > a::after {
  content: '▾';
  font-size: 0.65em;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#gnb ul li:has(ul):hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* 서브메뉴 */
#gnb ul li > ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 140px;
  background: rgba(14,14,28,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,106,247,0.08);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#gnb ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

#gnb ul li > ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82em;
  font-weight: 500;
  color: rgba(180,180,220,0.7);
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

#gnb ul li > ul li a:hover {
  color: #e8e8f4;
  background: rgba(124,106,247,0.12);
}

/* ── 오른쪽 영역 ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── 검색 ── */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(200,200,230,0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.search-icon-btn svg {
  width: 22px;
  height: 22px;
}

.search-icon-btn:hover {
  background: rgba(124,106,247,0.14);
  border-color: rgba(124,106,247,0.35);
  color: #c0b8ff;
}

/* 검색창 펼침 */
.search-expand {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  pointer-events: none;
}

.search-expand.open {
  width: 260px;
  opacity: 1;
  pointer-events: all;
}

.search-expand input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  background: rgba(20,20,38,0.95);
  border: 1px solid rgba(124,106,247,0.35);
  border-radius: 999px;
  color: #e8e8f4;
  font-size: 0.9em;
  font-family: var(--font-sans);
  outline: none;
  white-space: nowrap;
}

.search-expand input::placeholder {
  color: rgba(160,160,200,0.45);
}

/* ── 프로필 ── */
.header-profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124,106,247,0.3);
  cursor: pointer;
  background: rgba(124,106,247,0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
  padding: 0;
}

.profile-btn:hover {
  border-color: rgba(124,106,247,0.7);
  box-shadow: 0 0 18px rgba(124,106,247,0.35);
}

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

.profile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 140px;
  background: rgba(14,14,28,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  overflow: hidden;
  z-index: 200;
}

.header-profile:hover .profile-nav { display: block; }

.profile-nav ul { list-style: none; padding: 8px; margin: 0; }

.profile-nav ul li a {
  display: block;
  padding: 11px 18px;
  font-size: 0.88em;
  color: rgba(180,180,220,0.7);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.profile-nav ul li a:hover {
  background: rgba(124,106,247,0.12);
  color: #e8e8f4;
}



#gnb {
  flex: 1;
  display: flex;
  justify-content: center;
}

#gnb ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

#gnb ul li { position: relative; }

#gnb ul li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--color-text-2);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}

#gnb ul li > a:hover,
#gnb ul li.active > a {
  color: var(--color-text);
  background: rgba(255,255,255,0.07);
}



/* ============================================================
   MAIN SLIDER  — s_list 안에서만 렌더되도록 HTML 수정됨
   ============================================================ */
.main-slider {
  width: 100%;
  height: 60vh;
  min-height: 380px;
  overflow: hidden;
}

.main-slider ul {
  display: flex;
  width: 100%;
  height: 100%;
}

.main-slider ul li {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.main-slider ul li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,20,0.2) 0%, rgba(10,10,20,0.5) 60%, rgba(10,10,20,0.85) 100%);
}

.main-slider .inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}

.main-slider .box { max-width: 600px; }

.main-slider .text {
  display: block;
  font-size: 2em;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.main-slider .btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.875em;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(124,106,247,0.4);
}
.main-slider .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,106,247,0.5);
}

/* ============================================================
   LAYOUT
   ============================================================ */
#container { position: relative; }

.content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px;
}

/* 글 목록/상세 영역 */
#content {
  flex: 1;
  min-width: 0;      /* flex 아이템 수축 허용 */
  overflow: visible; /* hidden 시 슬라이더 가로스크롤 막힘 → visible 유지 */
}

/* 사이드바 */
#aside.sidebar {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-1,
.sidebar-2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   COVER 섹션
   ============================================================ */
.cover-thumbnail-1,
.cover-thumbnail-2,
.cover-thumbnail-3,
.cover-thumbnail-4,
.cover-list,
.cover-event {
  margin-bottom: 48px;
}

.cover-thumbnail-1 h2,
.cover-thumbnail-2 h2,
.cover-thumbnail-3 h2,
.cover-thumbnail-4 h2,
.cover-list h2,
.cover-event h2 {
  font-family: var(--font-display);
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text);
}

.cover-thumbnail-1 ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cover-thumbnail-1 li a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.cover-thumbnail-1 li a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124,106,247,0.3);
}

.cover-thumbnail-1 figure {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.cover-thumbnail-1 figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cover-thumbnail-1 li a:hover figure img { transform: scale(1.06); }

.cover-thumbnail-1 .title {
  display: block;
  padding: 12px 14px 6px;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover-thumbnail-1 .date {
  display: block;
  padding: 0 14px 12px;
  font-size: 0.72em;
  color: var(--color-text-muted);
}
.cover-thumbnail-1 .more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid rgba(124,106,247,0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8em;
  color: var(--color-accent);
  transition: var(--transition);
}
.cover-thumbnail-1 .more:hover { background: rgba(124,106,247,0.1); }

.cover-thumbnail-2 ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cover-thumbnail-2 li a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.cover-thumbnail-2 li a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124,106,247,0.3);
}
.cover-thumbnail-2 figure {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cover-thumbnail-2 figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cover-thumbnail-2 li a:hover figure img { transform: scale(1.06); }
.cover-thumbnail-2 .title {
  display: block;
  padding: 14px 14px 6px;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--color-text);
}
.cover-thumbnail-2 .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 14px;
  font-size: 0.78em;
  color: var(--color-text-2);
}
.cover-thumbnail-2 .date {
  display: block;
  padding: 6px 14px 14px;
  font-size: 0.72em;
  color: var(--color-text-muted);
}

.cover-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cover-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.cover-list li a:hover {
  border-color: rgba(124,106,247,0.3);
  background: var(--color-surface);
}
.cover-list .title {
  flex: 1;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--color-text);
}
.cover-list .excerpt {
  flex: 2;
  font-size: 0.8em;
  color: var(--color-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover-list .date {
  font-size: 0.72em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.cover-event ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cover-event li a {
  display: flex;
  align-items: flex-end;
  height: 120px;
  padding: 16px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.cover-event li a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.cover-event li a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cover-event .title {
  position: relative;
  z-index: 1;
  font-size: 0.875em;
  font-weight: 700;
  color: #fff;
}
.cover-event .more { display: none; }

/* ============================================================
   POST HEADER (목록 페이지)
   ============================================================ */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: 1.4em;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.post-header h1 em {
  font-style: normal;
  font-size: 0.65em;
  font-weight: 400;
  color: var(--color-accent);
}

.post-filter-tabs {
  display: flex;
  gap: 6px;
}

.filter-tab {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(200,200,230,0.55);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.filter-tab:hover {
  border-color: rgba(124,106,247,0.4);
  color: rgba(200,200,255,0.85);
  background: rgba(124,106,247,0.08);
}
.filter-tab.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,106,247,0.4);
}

/* ============================================================
   POST GRID (전체글 패널)
   ============================================================ */
.post-grid-wrap {
  padding: 20px 0 48px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── 카드 ── */
.post-card {
  position: relative;
  background: linear-gradient(160deg, #15152a 0%, #0f0f1e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: pointer;
}

/* 카드 위 레인보우 글로우 라인 */
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,106,247,0.6) 30%,
    rgba(232,121,160,0.6) 70%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(124,106,247,0.3),
    0 0 40px rgba(124,106,247,0.08);
  border-color: rgba(124,106,247,0.25);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── 썸네일 ── */
.post-card-thum {
  display: block;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1836 0%, #12122a 100%);
}

/* 썸네일 오버레이 */
.post-card-thum::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10,10,22,0.55) 100%
  );
  z-index: 1;
  transition: opacity 0.35s ease;
}

.post-card:hover .post-card-thum::after {
  opacity: 0.6;
}

.post-card-thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1),
              filter 0.4s ease;
  filter: brightness(0.82) saturate(1.05);
}

.post-card:hover .post-card-thum img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.1);
}

/* 썸네일 없을 때 */
.post-card-thum:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(124,106,247,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(232,121,160,0.15) 0%, transparent 70%);
}

/* ── 본문 ── */
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  gap: 0;
}

.post-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.95em;
  font-weight: 700;
  color: #e0e0f0;
  line-height: 1.5;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.post-card:hover .post-card-title {
  color: #b8aaff;
}

.post-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.78em;
  color: #6868a0;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

/* ── 하단 메타 ── */
.post-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72em;
  color: #50507a;
  letter-spacing: 0.03em;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.post-card-date::before {
  content: '';
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #7c6af7, #e879a0);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   FILTER PANELS (최신글 / 인기글)
   ============================================================ */
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-filter-panel.panel-in {
  animation: panelFadeIn 0.3s ease forwards;
}

.filter-panel-header {
  position: relative;
  margin-bottom: 28px;
  padding-top: 40px;
}
.filter-panel-label {
  position: absolute;
  top: 16px; left: 0;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  opacity: 0.7;
}
.filter-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8em;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.filter-panel-title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 20px;
  background: linear-gradient(to right, rgba(124,106,247,0.3), rgba(232,121,160,0.15), transparent 80%);
}

.filter-post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 8px 0 32px;
}

.filter-post-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.filter-post-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,106,247,0.25);
}
.filter-post-item a { display: block; }

.filter-post-item .thum {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--color-surface);
}
.filter-post-item .thum img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88);
}
.filter-post-item:hover .thum img {
  transform: scale(1.07);
  filter: brightness(1);
}
.filter-post-item .info {
  display: block;
  padding: 14px 16px 16px;
}
.filter-post-item .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.filter-post-item:hover .title { color: #a08fff; }
.filter-post-item .date {
  display: block;
  font-size: 0.72em;
  color: var(--color-text-muted);
}

/* ============================================================
   글 상세 페이지 (article-page)
   ============================================================ */
.article-page {
  display: block;
  width: 100%;
}

/* 커버 */
.post-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  background: var(--color-surface);
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.post-cover.no-thumb {
  height: 140px;
  background: linear-gradient(135deg, #12122a, #1a1a36);
}
.post-cover.notice {
  height: 160px;
}

.post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(10,10,20,0.88));
}

.post-cover .inner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  z-index: 2;
}

.post-cover h1 {
  font-family: var(--font-display);
  font-size: 1.7em;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.post-cover .category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(124,106,247,0.3);
  border: 1px solid rgba(124,106,247,0.5);
  border-radius: var(--radius-pill);
  font-size: 0.72em;
  color: #c8c0ff;
  margin-bottom: 10px;
}

.post-cover .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8em;
  color: rgba(255,255,255,0.6);
}

/* ── 본문 ── */
.entry-content {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95em;
  line-height: 1.88;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-bottom: 32px;
}

/* 본문 안 미디어 넘침 방지 */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content figure,
.entry-content table {
  max-width: 100% !important;
  box-sizing: border-box;
}
.entry-content img { display: block; height: auto; }

.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 2em 0 0.8em;
  color: var(--color-text);
  line-height: 1.3;
}
.entry-content h1 { font-size: 1.8em; }
.entry-content h2 { font-size: 1.5em; }
.entry-content h3 { font-size: 1.25em; }
.entry-content h4 { font-size: 1.1em; }

.entry-content p { margin-bottom: 1.2em; }

.entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.entry-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.6;
  margin: 1.5em 0;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(124,106,247,0.1);
  border: 1px solid rgba(124,106,247,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c8c0ff;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  background: rgba(124,106,247,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-2);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.entry-content th, .entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  font-size: 0.875em;
}
.entry-content th {
  background: var(--color-surface);
  font-weight: 600;
}

/* 태그 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.tags h2 {
  width: 100%;
  font-size: 1em;
  font-weight: 700;
  color: var(--color-text-2);
  margin-bottom: 4px;
}
.tags a {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.78em;
  color: var(--color-text-2);
  transition: var(--transition);
}
.tags a:hover {
  background: rgba(124,106,247,0.1);
  border-color: rgba(124,106,247,0.4);
  color: var(--color-accent);
}

/* 관련글 */
.related-articles {
  margin: 40px 0;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  box-sizing: border-box;
  clear: both;
}
.related-articles h2 {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}
.related-articles ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-articles li a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.related-articles li a:hover {
  transform: translateY(-4px);
  border-color: rgba(124,106,247,0.3);
}
.related-articles figure {
  width: 100%;
  height: 90px;
  overflow: hidden;
}
.related-articles figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.related-articles .title {
  display: block;
  padding: 8px 10px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 비밀글 폼 */
.protected_form {
  padding: 60px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.protected_form h2 {
  font-family: var(--font-display);
  font-size: 1.4em;
  margin-bottom: 12px;
}
.protected_form p {
  color: var(--color-text-2);
  margin-bottom: 24px;
}
.protected_form input[type="password"] {
  height: 44px;
  padding: 0 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9em;
  outline: none;
  margin-right: 8px;
  width: 240px;
}
.protected_form .btn {
  height: 44px;
  padding: 0 24px;
  background: var(--gradient-main);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.9em;
  font-weight: 700;
}

/* 검색결과 없음 */
.not-found {
  padding: 60px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.not-found ul { display: none; }
.not-found ul:first-child { display: block; }
.not-found li {
  color: var(--color-text-2);
  padding: 4px 0;
  font-size: 0.9em;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 16px;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: var(--color-text-2);
  transition: var(--transition);
}
.pagination a:hover {
  background: rgba(124,106,247,0.1);
  border-color: rgba(124,106,247,0.4);
  color: var(--color-accent);
}
.pagination .prev, .pagination .next { font-size: 0; }
.pagination .prev::before { content: '← 이전'; font-size: 13px; }
.pagination .next::before { content: '다음 →'; font-size: 13px; }
.pagination .no_more_prev,
.pagination .no_more_next {
  opacity: 0.3;
  pointer-events: none;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments, .tt-comments-wrap { margin: 40px 0 0; }

.comments h2 {
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments h2 .count {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--color-accent);
}

.comment-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 28px;
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="password"] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875em;
  outline: none;
  transition: var(--transition);
  resize: vertical;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.comment-form textarea:focus,
.comment-form input:focus {
  border-color: rgba(124,106,247,0.4);
  background: rgba(255,255,255,0.07);
}
.comment-form .submit button {
  height: 40px;
  padding: 0 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.875em;
  font-weight: 600;
  transition: var(--transition);
}
.comment-form .submit button:hover {
  background: rgba(124,106,247,0.15);
  border-color: rgba(124,106,247,0.4);
  color: var(--color-accent);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar .profile,
.sidebar .category,
.sidebar .notice,
.sidebar .post-list,
.sidebar .recent-comment,
.sidebar .tags,
.sidebar .count,
.sidebar .social-channel,
.sidebar .social-list {
  background: #111120;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
}

/* 프로필 카드 */
.sidebar .profile { overflow: visible; }

.profile-inner {
  padding: 22px 16px 16px;
  text-align: center;
  position: relative;
}
.profile-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 60px;
  background: radial-gradient(ellipse, rgba(124,106,247,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.profile-emoji {
  font-size: 2.4em;
  line-height: 1;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(124,106,247,0.08);
  border-radius: 50%;
  border: 2px solid rgba(124,106,247,0.2);
  position: relative;
  z-index: 1;
}
.profile-name {
  font-size: 0.92em;
  font-weight: 700;
  color: #e8e8f4;
  margin-bottom: 5px;
}
.profile-desc {
  font-size: 0.74em;
  color: #6a6a8a;
  line-height: 1.5;
  margin-bottom: 16px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.profile-btns {
  display: flex;
  gap: 8px;
}
.btn-subscribe, .btn-guestbook {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 10px;
  font-size: 0.74em;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-subscribe {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9090aa;
}
.btn-subscribe:hover {
  background: rgba(255,255,255,0.1);
  color: #e8e8f4;
}
.btn-guestbook {
  background: linear-gradient(135deg, #7c6af7, #e879a0);
  color: #fff;
  box-shadow: 0 3px 12px rgba(124,106,247,0.35);
}
.btn-guestbook:hover {
  box-shadow: 0 5px 20px rgba(124,106,247,0.5);
  transform: translateY(-1px);
}

/* ── 카테고리 ── */
.sidebar nav.category {
  overflow: hidden !important;
  background: #0d0d1b !important;
  border: 1px solid rgba(124,106,247,0.13) !important;
  border-radius: 16px !important;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.sidebar nav.category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c6af7, #e879a0, #4ecdc4);
  border-radius: 16px 16px 0 0;
  z-index: 2;
  pointer-events: none;
}
.sidebar nav.category::after {
  content: 'CATEGORIES';
  display: block;
  position: absolute;
  top: 12px; left: 16px;
  font-size: 0.57em;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(124,106,247,0.4);
  pointer-events: none;
  z-index: 1;
}

.sidebar nav.category ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 32px 0 10px !important;
  width: 100%;
  box-sizing: border-box;
}

.sidebar nav.category ul li {
  list-style: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sidebar nav.category ul li > a {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ALL 버튼 */
.sidebar nav.category ul li.cat-all-item {
  display: block !important;
  margin: 0 12px 6px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, rgba(124,106,247,0.16), rgba(232,121,160,0.09)) !important;
  border: 1px solid rgba(124,106,247,0.22) !important;
  transition: all 0.2s ease;
}
.sidebar nav.category ul li.cat-all-item:hover {
  background: linear-gradient(135deg, rgba(124,106,247,0.26), rgba(232,121,160,0.16)) !important;
  border-color: rgba(124,106,247,0.45) !important;
  box-shadow: 0 3px 16px rgba(124,106,247,0.18) !important;
}
.sidebar nav.category ul li.cat-all-item > a {
  display: flex !important;
  align-items: center;
  padding: 9px 13px !important;
  font-size: 0.78em !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  color: #c0b8ff !important;
  background: none !important;
  border: none !important;
}
.sidebar nav.category ul li.cat-all-item > a .count-badge {
  margin-left: auto;
  font-size: 0.78em;
  color: rgba(190,182,255,0.45);
  background: rgba(124,106,247,0.1);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(124,106,247,0.15);
}
.sidebar nav.category ul li.cat-all-item + li {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  margin-top: 4px !important;
  padding-top: 4px !important;
}

/* 1depth 일반 항목 */
.sidebar nav.category ul > li.cat-item {
  display: block !important;
  margin: 0 10px !important;
  padding: 0 !important;
}
.sidebar nav.category ul > li.cat-item > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 10px !important;
  font-size: 0.9em !important;
  font-weight: 500 !important;
  color: #8888b0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: color 0.25s, box-shadow 0.25s;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: none !important;
}
.sidebar nav.category ul > li.cat-item > a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(124,106,247,0.14) 0%, rgba(232,121,160,0.11) 50%, rgba(78,205,196,0.10) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.sidebar nav.category ul > li.cat-item > a:hover {
  color: #d8d0ff !important;
  box-shadow: inset 0 0 0 1px rgba(124,106,247,0.22) !important;
  background: none !important;
}
.sidebar nav.category ul > li.cat-item > a:hover::after { opacity: 1; }
.sidebar nav.category ul > li.cat-item > a::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(124,106,247,0.32);
  flex-shrink: 0;
  transition: background 0.25s, box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.sidebar nav.category ul > li.cat-item > a:hover::before {
  background: linear-gradient(90deg, #7c6af7, #e879a0) !important;
  box-shadow: 0 0 8px rgba(200,100,200,0.7);
}
.sidebar nav.category ul > li.cat-item > a .cat-name,
.sidebar nav.category ul > li.cat-item > a .count-badge {
  position: relative;
  z-index: 1;
}
.sidebar nav.category ul > li.cat-item > a .count-badge {
  margin-left: auto;
  font-size: 0.7em;
  color: rgba(100,100,160,0.38);
}

/* 1depth 큰 카테고리 헤더 */
.sidebar nav.category ul > li.has-sub {
  display: block !important;
  margin: 10px 10px 0 !important;
  padding: 0 !important;
}
.sidebar nav.category ul > li.has-sub > a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 3px !important;
  font-size: 0.72em !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: rgba(160,148,255,0.75) !important;
  text-transform: uppercase;
  pointer-events: none;
  cursor: default;
  background: none !important;
  border: none !important;
  width: 100%;
  box-sizing: border-box;
}
.sidebar nav.category ul > li.has-sub > a::before { display: none !important; }
.sidebar nav.category ul > li.has-sub > a::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(124,106,247,0.3), transparent);
  margin-left: 6px;
}

/* 2depth */
.sidebar nav.category ul > li > ul {
  list-style: none !important;
  margin: 0 0 4px 16px !important;
  padding: 1px 0 3px 8px !important;
  border-left: 1px solid rgba(124,106,247,0.1) !important;
  box-sizing: border-box;
  background: none !important;
  border-radius: 0 !important;
}
.sidebar nav.category ul > li > ul > li {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sidebar nav.category ul > li > ul > li::before {
  content: '';
  position: absolute;
  left: -9px; top: 50%;
  width: 7px; height: 1px;
  background: rgba(124,106,247,0.13);
  pointer-events: none;
}
.sidebar nav.category ul > li > ul > li > a {
  display: flex !important;
  align-items: center;
  padding: 6px 6px 6px 4px !important;
  font-size: 0.86em !important;
  font-weight: 400 !important;
  color: #686890 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: color 0.25s, box-shadow 0.25s;
  width: 100%;
  box-sizing: border-box;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}
.sidebar nav.category ul > li > ul > li > a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(124,106,247,0.1) 0%, rgba(232,121,160,0.08) 50%, rgba(78,205,196,0.08) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}
.sidebar nav.category ul > li > ul > li > a:hover {
  color: #c0b8f0 !important;
  box-shadow: inset 0 0 0 1px rgba(124,106,247,0.16) !important;
}
.sidebar nav.category ul > li > ul > li > a:hover::after { opacity: 1; }
.sidebar nav.category ul > li > ul > li > a .cat-name,
.sidebar nav.category ul > li > ul > li > a .count-badge {
  position: relative;
  z-index: 1;
}
.sidebar nav.category ul > li > ul > li > a .count-badge {
  margin-left: auto;
  font-size: 0.73em;
  color: rgba(90,90,140,0.35);
}

/* 활성 */
.sidebar nav.category ul li.current > a {
  color: #a898f0 !important;
  background: rgba(124,106,247,0.09) !important;
}

/* ── 공통 사이드바 헤더 ── */
.sidebar h2 {
  font-size: 0.75em;
  font-weight: 700;
  color: #5a5a7a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar h2::before {
  content: '';
  width: 3px; height: 12px;
  background: linear-gradient(to bottom, #7c6af7, #e879a0);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 공지/글목록/최근댓글/태그/방문자/소셜 */
.sidebar .notice,
.sidebar .post-list,
.sidebar .recent-comment,
.sidebar .tags,
.sidebar .count,
.sidebar .social-channel,
.sidebar .social-list {
  padding: 16px;
}

.sidebar .notice ul li,
.sidebar .post-list ul li,
.sidebar .recent-comment ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar .notice ul li:last-child,
.sidebar .post-list ul li:last-child,
.sidebar .recent-comment ul li:last-child { border-bottom: none; }

.sidebar .notice ul li a,
.sidebar .recent-comment ul li a {
  font-size: 0.8em;
  color: #7070a0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 1px 0;
}
.sidebar .notice ul li a:hover,
.sidebar .recent-comment ul li a:hover { color: #e0e0f4; }

.sidebar .post-list ul li a {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8em;
  color: #7070a0;
  transition: color 0.2s;
}
.sidebar .post-list ul li a:hover { color: #e0e0f4; }
.sidebar .post-list ul li a img {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar .post-list .title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.sidebar .post-list .date {
  font-size: 0.72em;
  color: #50507a;
  display: block;
}

.tab-ui .tab-list { display: none; }
.tab-ui .tab-list:first-child { display: block; }
.tab-ui .tab-list.active { display: block; }

.sidebar .count .total {
  font-size: 1.6em;
  font-weight: 800;
  color: #e0e0f4;
  margin-bottom: 6px;
}
.sidebar .count p {
  font-size: 0.77em;
  color: #6060a0;
  padding: 2px 0;
}

.social-channel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.social-channel ul li a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.75em;
  color: #7070a0;
  transition: all 0.2s;
}
.social-channel ul li a:hover {
  background: rgba(124,106,247,0.1);
  border-color: rgba(124,106,247,0.3);
  color: #e0e0f4;
}

.sidebar .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px;
}
.sidebar .tags h2 { width: 100%; margin-bottom: 8px; }
.sidebar .tags a {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  font-size: 0.75em;
  color: #7070a0;
  transition: all 0.2s;
}
.sidebar .tags a:hover {
  background: rgba(124,106,247,0.1);
  border-color: rgba(124,106,247,0.3);
  color: #c0b8f0;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
  margin-top: 48px;
}
#footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.order-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.order-menu a {
  font-size: 0.8em;
  color: var(--color-text-3);
  transition: var(--transition);
}
.order-menu a:hover { color: var(--color-text-2); }

.page-top {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 18px;
  background: rgba(124,106,247,0.1);
  border: 1px solid rgba(124,106,247,0.2);
  border-radius: var(--radius-pill);
  font-size: 0.78em;
  color: var(--color-accent);
  transition: var(--transition);
}
.page-top:hover { background: rgba(124,106,247,0.2); }

#footer .meta,
#footer .copyright {
  font-size: 0.78em;
  color: var(--color-text-muted);
}