@charset "UTF-8";
/*! Dark Modern Tistory Theme - 2025 */

/* ============================================
   CSS Variables & Root Setup
   ============================================ */
:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-card: #1a1a1f;
  --bg-hover: #222228;
  
  /* Text Colors */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #e879f9;
  
  /* Accent Colors - Modern Green/Teal */
  --accent-primary: #10b981;
  --accent-secondary: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
  
  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  
  /* Typography */
  --font-display: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.blind, .screen_out {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ============================================
   Layout
   ============================================ */
#wrap {
  position: relative;
  min-height: 100vh;
}

#container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.area-main {
  min-width: 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

.header .inner-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header .box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header .title-logo {
  margin: 0;
}

.header .link_logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.header .link_logo:hover {
  color: var(--accent-secondary);
}

.header .link_logo img {
  max-height: 32px;
}

/* Navigation */
.header .area-gnb {
  margin-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.header .area-gnb nav {
  display: block;
}

.header .area-gnb nav > ul,
.header .area-gnb nav > div,
.header .tt_category,
.header .tt_category .category_list,
.header .topnavmenu > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .tt_category .category_list li,
.header .topnavmenu > ul > li {
  display: inline-block;
  margin: 0;
}

.header .tt_category .category_list .link_item,
.header .topnavmenu > ul > li > a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-decoration: none;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.header .tt_category .category_list .link_item:hover,
.header .topnavmenu > ul > li > a:hover {
  color: var(--text-primary) !important;
}

.header .tt_category .category_list .link_item::after,
.header .topnavmenu > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.header .tt_category .category_list .link_item:hover::after,
.header .topnavmenu > ul > li > a:hover::after {
  width: 100%;
}

.header .tt_category .c_cnt {
  display: none;
}

/* Search */
.util.use-top {
  position: relative;
}

.util .search input {
  width: 200px;
  padding: var(--space-sm) var(--space-md);
  padding-right: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

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

.util .search input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Mobile Menu Button */
.header .button-menu {
  display: none;
  padding: var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.header .button-menu:hover {
  background: var(--bg-hover);
}

.header .button-menu svg path {
  fill: var(--text-primary);
}

/* ============================================
   Slogan/Banner Section
   ============================================ */
.header .area-slogun {
  padding: var(--space-2xl) 0;
}

.header .area-slogun strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.header .area-slogun p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
}

/* Promotion Banner */
.area-promotion {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.area-promotion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.area-promotion .inner-promotion {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  z-index: 1;
}

.area-promotion strong {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.area-promotion .link-promotion {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-xl);
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  color: white;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.area-promotion .link-promotion:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Article Cards
   ============================================ */
.article-type-common {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.article-type-common:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-type-common .thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.article-type-common .thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.article-type-common:hover .thumbnail::after {
  opacity: 1;
}

.article-type-common .thumbnail .img-thumbnail {
  display: none;
}

.article-type-common .article-content {
  padding: var(--space-lg);
}

.article-type-common .title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-type-common:hover .title {
  color: var(--accent-secondary);
  text-decoration: none;
}

.article-type-common .summary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-type-common .box-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-type-common .link-category {
  color: var(--accent-secondary);
  font-weight: 500;
}

.article-type-common .date::before,
.article-type-common .reply::before {
  content: '·';
  margin-right: var(--space-md);
  color: var(--text-muted);
}

.article-type-common .reply {
  background: none;
  padding-left: 0;
}

/* Crop Style */
.article-type-crop {
  margin-bottom: var(--space-xl);
}

.article-type-crop .thumbnail {
  aspect-ratio: 21/9;
}

/* Thumbnail Style */
.article-type-,
.article-type-thumbnail {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.article-type- .thumbnail,
.article-type-thumbnail .thumbnail {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

.article-type- .article-content,
.article-type-thumbnail .article-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-type- .title,
.article-type-thumbnail .title {
  font-size: 1.125rem;
}

/* Poster Style */
.article-type-poster {
  width: calc(33.333% - var(--space-md));
  margin-bottom: var(--space-lg);
}

.article-type-poster .thumbnail {
  aspect-ratio: 3/4;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.article-type-poster .article-content {
  padding: var(--space-md);
}

.article-type-poster .title {
  font-size: 1rem;
  -webkit-line-clamp: 2;
}

.article-type-poster .summary,
.article-type-poster .link-category,
.article-type-poster .reply {
  display: none;
}

/* Resize Style */
.article-type-resize {
  margin-bottom: var(--space-xl);
}

.article-type-resize .thumbnail {
  aspect-ratio: auto;
  background: none;
}

.article-type-resize .thumbnail .img-thumbnail {
  display: block;
  border-radius: var(--radius-md);
}

/* Text Style */
.article-type-text {
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-type-text .thumbnail {
  display: none;
}

.article-type-text .title {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   Cover Sections
   ============================================ */
.area-cover {
  margin-bottom: var(--space-2xl);
}

.area-cover .title-cover {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.area-cover .box-article {
  display: grid;
  gap: var(--space-lg);
}

.area-cover-thumbnail .box-article {
  grid-template-columns: repeat(3, 1fr);
}

.box-cover-poster {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.box-cover-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-cover-title .link-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.box-cover-title .link-title::after {
  content: '→';
}

.area-cover .button-more {
  display: none;
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.area-cover .button-more:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ============================================
   Search Results & Lists
   ============================================ */
.title-search {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.title-search span {
  color: var(--accent-secondary);
}

.title-search.title-border {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.box-no-search {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

.box-no-search span {
  display: block;
  margin-bottom: var(--space-sm);
}

/* ============================================
   Article View (Single Post)
   ============================================ */
.article-header {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 10, 11, 0.8) 50%, rgba(10, 10, 11, 0.4) 100%);
}

.article-header .inner-header {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  width: 100%;
}

.article-header .box-meta {
  position: relative;
}

.article-header .category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: var(--space-md);
}

.article-header .title-article {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.article-header .box-info {
  display: flex;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-header .box-info .date::before {
  content: '·';
  margin-right: var(--space-md);
}

/* Article Content */
.article-view {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

#article-view {
  background: transparent;
  padding: 0;
}

#article-view p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

#article-view h2, #article-view h3, #article-view h4 {
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

#article-view a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#article-view blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-style: italic;
}

#article-view pre code.hljs {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

#article-view ul, #article-view ol {
  padding-left: var(--space-lg);
  margin: var(--space-md) 0;
}

#article-view li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

#article-view figure.imageblock {
  margin: var(--space-xl) 0;
}

#article-view figure.imageblock img {
  border-radius: var(--radius-md);
}

#article-view figure figcaption {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  margin-top: var(--space-sm);
}

/* File Block */
#article-view figure.fileblock {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 400px;
}

#article-view figure.fileblock .filename {
  color: var(--text-primary);
}

#article-view figure.fileblock .size {
  color: var(--text-muted);
}

/* Open Graph */
#article-view figure[data-ke-type='opengraph'] a {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#article-view figure[data-ke-type='opengraph'] .og-title {
  color: var(--text-primary);
}

#article-view figure[data-ke-type='opengraph'] .og-desc {
  color: var(--text-muted);
}

/* ============================================
   Article Footer
   ============================================ */
.article-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.article-footer .title-footer {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Tags */
.article-tag {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
}

.article-tag .box-tag {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.article-tag .box-tag a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.article-tag .box-tag a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Previous/Next */
.article-page {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
}

.article-page ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-page li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.article-page li span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--space-md);
}

.article-page li strong {
  font-weight: 400;
}

.article-page li a {
  color: var(--text-secondary);
}

.article-page li a:hover {
  color: var(--accent-secondary);
}

.article-page li:nth-child(2) {
  color: var(--text-primary);
  font-weight: 500;
}

/* Related Posts */
.article-related {
  margin-bottom: var(--space-xl);
}

.article-related .list-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.article-related .item-related {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.article-related .item-related:hover {
  border-color: var(--border-hover);
}

.article-related .thumnail {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
}

.article-related .link-related {
  display: block;
  margin: 0;
}

.article-related .box_content {
  padding: var(--space-md);
}

.article-related .box_content strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.article-related .date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   Comments
   ============================================ */
.article-reply .box-total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.article-reply .box-total span {
  color: var(--accent-secondary);
}

.area-reply .item-reply {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.area-reply .thumbnail {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-size: cover;
  background-color: var(--bg-tertiary);
  flex-shrink: 0;
}

.area-reply .box-content {
  flex: 1;
}

.area-reply .box-content .box-meta strong a {
  color: var(--text-primary);
  font-weight: 500;
}

.area-reply .box-content .box-meta .date {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.area-reply .box-content .text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: var(--space-sm) 0;
}

.area-reply .list-reply-comment {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
}

/* Comment Form */
.area-write .box-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.area-write input,
.area-write textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.area-write input:focus,
.area-write textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.area-write textarea {
  min-height: 120px;
  resize: vertical;
}

.area-write .box-write {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.area-write .xe-label-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.area-write .btn_register {
  padding: var(--space-sm) var(--space-xl);
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  color: white;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.area-write .btn_register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Sidebar
   ============================================ */
.area-aside {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.area-aside > div {
  margin-bottom: var(--space-xl);
}

/* Profile */
.area-aside .box-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.area-aside .box-profile .img-profile {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  border: 3px solid var(--border-color);
}

.area-aside .box-profile .tit-g {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.area-aside .box-profile .text-profile {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.area-aside .box-profile .btn_subscription {
  font-style: normal;
  margin-bottom: 4px;
}

.area-aside .box-profile .btn_subscription em {
  font-style: normal;
}

.area-aside .box-profile .group-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md) 0 var(--space-lg);
}

.area-aside .box-profile .profile-btn-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: 4px;
}

.area-aside .box-profile .profile-btn-group:not(.member) {
  display: none;
}

.area-aside .box-profile .box-sns {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.area-aside .box-profile .link-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.area-aside .box-profile .link-sns:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.area-aside .box-profile .link-sns .svg path {
  fill: var(--text-secondary) !important;
  transition: fill var(--transition-fast);
}

.area-aside .box-profile .link-sns:hover .svg path {
  fill: white !important;
}

.area-aside .box-profile .btn_subscription,
.area-aside .box-profile .btn-g {
  background: var(--accent-gradient);
  border: none;
  color: white;
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-xl);
  font-weight: 500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.area-aside .box-profile .btn_subscription:hover,
.area-aside .box-profile .btn-g:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Category */
.area-aside .box-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.area-aside .box-category .tt_category .link_tit,
.area-aside .box-category .tt_category .link_item {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.area-aside .box-category .tt_category .link_tit:hover,
.area-aside .box-category .tt_category .link_item:hover {
  color: var(--accent-secondary);
}

.area-aside .box-category .tt_category .link_item.selected {
  color: var(--accent-secondary);
  font-weight: 500;
}

.area-aside .box-category .tt_category .link_sub_item {
  display: block;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.area-aside .box-category .tt_category .link_sub_item:hover {
  color: var(--text-primary);
}

/* Recent Posts */
.area-aside .box-recent {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.area-aside .box-recent .tab-recent {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.area-aside .box-recent .tab-recent li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.area-aside .box-recent .tab-recent li.on a {
  color: var(--accent-secondary);
}

.area-aside .box-recent .list-recent li {
  margin-bottom: var(--space-md);
}

.area-aside .box-recent .list-recent .link-recent {
  display: flex;
  gap: var(--space-sm);
}

.area-aside .box-recent .list-recent .thumbnail {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-color: var(--bg-tertiary);
  flex-shrink: 0;
}

.area-aside .box-recent .list-recent .box-recent strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.area-aside .box-recent .list-recent .box-recent span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Visit Counter */
.area-aside .box-visit {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.area-aside .box-visit .title-sidebar {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.area-aside .box-visit .text-total {
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 var(--space-sm);
}

.area-aside .box-visit .item-visit {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Sidebar Title */
.area-aside .title-sidebar {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* ============================================
   Tags Page
   ============================================ */
.area-tag .box-tag a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  margin: var(--space-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.area-tag .box-tag a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* ============================================
   Protected Post
   ============================================ */
.area-protected {
  max-width: 400px;
  margin: var(--space-3xl) auto;
  text-align: center;
}

.area-protected .text-protected {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.area-protected .text-protected span {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.area-protected input {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.area-protected button {
  width: 100%;
  padding: var(--space-md);
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
}

/* ============================================
   Pagination
   ============================================ */
.area-paging {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.area-paging .paging_num {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.area-paging .link_page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.area-paging .link_num {
  display: inline-flex;
}

.area-paging .link_num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

/* New Post Badge (N 표시) */
.article-type-common .title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.article-type-common .title img,
.article-type-common .title .new-ico,
.article-type-common .title > img[alt="N"] {
  display: inline-block;
  vertical-align: middle;
  width: 16px !important;
  height: auto;
  margin-left: var(--space-xs);
}

.tt_category .link_item,
.tt_category .link_tit,
.tt_category .link_sub_item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.tt_category img,
.tt_category .new-ico {
  display: inline-block;
  vertical-align: middle;
  width: 14px !important;
  height: auto;
}

.area-aside .box-category .tt_category .link_item,
.area-aside .box-category .tt_category .link_tit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.area-aside .box-recent .list-recent .box-recent strong {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.area-aside .box-recent .list-recent .box-recent strong img {
  width: 14px !important;
  height: auto;
}

.area-paging .link_num:hover span {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.area-paging .selected {
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
  color: white !important;
}

.area-paging .no-more-prev,
.area-paging .no-more-next {
  opacity: 0.3;
  pointer-events: none;
}

.area-paging-more .paging-more {
  display: block;
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
}

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

/* ============================================
   Footer
   ============================================ */
#footer {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

#footer .inner-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

#footer .box-policy {
  margin-bottom: var(--space-lg);
}

#footer .link-footer {
  display: inline-block;
  margin-right: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

#footer .link-footer:hover {
  color: var(--text-primary);
}

#footer .text-info,
#footer address {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

#footer .box-site {
  position: absolute;
  top: 0;
  right: var(--space-lg);
}

#footer .box-site button {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

#footer .box-site ul {
  position: absolute;
  bottom: 100%;
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

#footer .box-site ul.on {
  opacity: 1;
  pointer-events: auto;
}

#footer .box-site ul li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
}

#footer .box-site ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media screen and (max-width: 1060px) {
  .main {
    grid-template-columns: 1fr;
  }
  
  .header .button-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: var(--space-lg);
    transform: translateY(-50%);
  }
  
  .header .area-gnb {
    display: none;
  }
  
  .util.use-top {
    display: none;
  }
  
  .area-aside {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90vw;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    padding: var(--space-xl);
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
    transition: right var(--transition-base);
  }
  
  .area-aside .box-profile .btn-g {
    min-width: auto;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }
  
  .area-aside .box-profile .profile-btn-group {
    flex-wrap: wrap;
  }
  
  .area-aside-on {
    right: 0;
  }
  
  .bg-dimmed::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
  }
  
  .area-main {
    padding: 0 var(--space-md);
  }
  
  .article-header .title-article {
    font-size: 1.75rem;
  }
  
  .article-related .list-related {
    grid-template-columns: 1fr;
  }
  
  .area-cover-thumbnail .box-article {
    grid-template-columns: 1fr;
  }
  
  .article-type-poster {
    width: calc(50% - var(--space-sm));
  }
  
  .article-type-,
  .article-type-thumbnail {
    flex-direction: column;
  }
  
  .article-type- .thumbnail,
  .article-type-thumbnail .thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
  }
  
  #footer .box-site {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: var(--space-lg);
  }
}

@media screen and (max-width: 640px) {
  :root {
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
  }
  
  .header .box-header {
    height: 60px;
  }
  
  .header .link_logo {
    font-size: 1.25rem;
  }
  
  .article-type-poster {
    width: 100%;
  }
  
  .article-tag {
    flex-direction: column;
  }
  
  .area-write .box-account {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utilities
   ============================================ */
.display-none {
  display: none !important;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: var(--radius-full);
}

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

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

/* Post Button */
.container_postbtn {
  padding: var(--space-xl) 0 !important;
}

/* Revenue Units */
.revenue_unit_wrap {
  margin: var(--space-lg) 0;
}

/* Guestbook */
#tt-body-guestbook .title-search {
  font-size: 1.25rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

/* Calendar Widget */
.area-aside .box-calendar .inner-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.area-aside .box-calendar table {
  width: 100%;
}

.area-aside .box-calendar th,
.area-aside .box-calendar td {
  text-align: center;
  padding: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.area-aside .box-calendar .cal_click {
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Notice */
#tt-body-index.notice-index .notice-title {
  display: block;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-type-common {
  animation: fadeIn 0.4s ease-out;
}

.article-type-common:nth-child(2) { animation-delay: 0.05s; }
.article-type-common:nth-child(3) { animation-delay: 0.1s; }
.article-type-common:nth-child(4) { animation-delay: 0.15s; }
.article-type-common:nth-child(5) { animation-delay: 0.2s; }
.article-type-common:nth-child(6) { animation-delay: 0.25s; }