:root {
  --red: #c8102e; --font: 'Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif;
  --ink: #1a1a1a; --gray: #64748b; --border: #e2e8f0; --bg: #f8fafc;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.logo-red { color: var(--red); font-weight: 900; }

/* HEADER */
.blog-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.blog-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.blog-header__back { font-size: .78rem; color: var(--gray); white-space: nowrap; }
.blog-header__back:hover { color: var(--ink); }
.blog-header__right { display: flex; justify-content: flex-end; align-items: center; }
.blog-header__rss { display: flex; align-items: center; gap: .3rem; color: var(--gray); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .2rem .45rem; border: 1px solid var(--border); border-radius: 3px; transition: border-color .15s, color .15s; }
.blog-header__rss:hover { color: var(--red,#c0392b); border-color: var(--red,#c0392b); }
.blog-logo { font-size: 1.15rem; font-weight: 900; display: flex; gap: .3rem; align-items: center; }
.blog-label { font-size: .65rem; font-weight: 700; background: var(--red); color: #fff; padding: .1rem .35rem; border-radius: 3px; letter-spacing: .06em; }

/* HERO */
.blog-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 3rem 0 2.5rem; text-align: center; }
.blog-hero__title { font-size: 2rem; font-weight: 900; margin-bottom: .5rem; }
.blog-hero__sub { font-size: .95rem; color: #94a3b8; }

/* LAYOUT */
.blog-main { padding: 2rem 0 3rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: start; }

/* FEED */
.blog-feed { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-loading .bl-sk { height: 200px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; margin-bottom: .75rem; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* POST CARD */
.post-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; gap: 0; transition: box-shadow .2s; }
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.14); }
.post-card__img { width: 260px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.post-card__cat { font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; padding: .1rem .4rem; border-radius: 3px; }
.post-card__date { font-size: .72rem; color: var(--gray); }
.post-card__author { font-size: .72rem; color: var(--gray); }
.post-card__title { font-size: 1.05rem; font-weight: 800; line-height: 1.4; margin-bottom: .5rem; }
.post-card__title a:hover { color: var(--red); }
.post-card__summary { font-size: .85rem; color: #475569; line-height: 1.65; flex: 1; }
.post-card__footer { margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.post-card__read { font-size: .78rem; font-weight: 700; color: var(--red); }
.post-card__read:hover { text-decoration: underline; }

/* SIDEBAR */
.blog-sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 1rem; }
.blog-widget { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
.blog-widget__title { background: #1e293b; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .6rem .9rem; }
.blog-cat-list { padding: .4rem 0; }
.blog-cat-list li { border-bottom: 1px solid var(--border); }
.blog-cat-list li:last-child { border-bottom: none; }
.blog-cat-list a { display: block; padding: .45rem .9rem; font-size: .82rem; font-weight: 500; }
.blog-cat-list a:hover { color: var(--red); background: #f8fafc; }
.blog-links { padding: .5rem 0; }
.blog-links li { border-bottom: 1px solid var(--border); }
.blog-links li:last-child { border-bottom: none; }
.blog-links a { display: block; padding: .45rem .9rem; font-size: .82rem; }
.blog-links a:hover { color: var(--red); }

/* LOAD MORE */
.load-more-wrap { text-align: center; padding: 1.5rem 0; }
.btn-more { border: 2px solid #1e293b; padding: .6rem 2.5rem; font-size: .85rem; font-weight: 700; border-radius: 6px; transition: all .15s; }
.btn-more:hover { background: #1e293b; color: #fff; }

/* FOOTER */
.blog-footer { background: #1e293b; color: #64748b; padding: 1.25rem 0; font-size: .75rem; text-align: center; }
.empty-state { text-align: center; padding: 3rem; color: var(--gray); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .post-card { flex-direction: column; }
  .post-card__img { width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 540px) {
  .blog-hero__title { font-size: 1.5rem; }
  .post-card__body { padding: 1rem; }
}
