/* ============================================================
   Blog Archive
   ============================================================ */
.blog-archive {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.blog-archive__container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* Filter bar */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.blog-filter__btn {
  font-size: 0.8rem;
  padding: 0.45em 1.2em;
  border-radius: var(--radius-full);
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #555;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.blog-filter__btn:hover,
.blog-filter__btn.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
  transform: none;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.pagination ul li a,
.pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination ul li a:hover {
  border-color: #f97316;
  color: #f97316;
}

.pagination ul li .current {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

/* Blog Empty state */
.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: #888;
}

/* ============================================================
   Sidebar
   ============================================================ */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-family: var(--font-en);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.widget-categories__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.widget-categories__list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.15s;
}

.widget-categories__list li:last-child a {
  border-bottom: none;
}

.widget-categories__list li a:hover {
  color: #f97316;
}

.widget-categories__count {
  font-size: 0.72rem;
  color: #bbb;
  font-family: var(--font-en);
}

.widget-recent__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget-recent__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.widget-recent__thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.widget-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-recent__title {
  font-size: 0.83rem;
  color: #333;
  line-height: 1.5;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}

.widget-recent__title:hover {
  color: #f97316;
}

.widget-recent__date {
  font-size: 0.7rem;
  color: #bbb;
  font-family: var(--font-en);
}

.widget-tags__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-tags__tag {
  font-size: 0.75rem;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  transition: all 0.15s;
}

.widget-tags__tag:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

/* Search form */
.search-form__inner {
  display: flex;
  gap: 0.5rem;
}

.search-form__input {
  flex: 1;
  padding: 0.6em 1em;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-form__input:focus {
  border-color: #f97316;
}

.search-form__btn {
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6em 0.8em;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.search-form__btn:hover {
  background: #333;
}

/* ============================================================
   Blog Single
   ============================================================ */
.blog-single {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.blog-single__container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.blog-article__header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.blog-article__meta .card__category {
  font-size: 0.72rem;
}

.blog-article__date {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

.blog-article__title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 1.25rem;
}

.blog-article__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blog-article__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__author span {
  font-size: 0.82rem;
  color: #777;
}

.blog-article__thumb {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.blog-article__thumb img {
  width: 100%;
  height: auto;
}

.blog-article__body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

.blog-article__body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f97316;
  color: #0a0a0a;
}

.blog-article__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #0a0a0a;
}

.blog-article__body p {
  margin-bottom: 1.4em;
}

.blog-article__body ul,
.blog-article__body ol {
  list-style: revert;
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.blog-article__body li {
  margin-bottom: 0.4em;
}

.blog-article__body blockquote {
  border-left: 3px solid #f97316;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #fff8f4;
  border-radius: 0 8px 8px 0;
  color: #555;
}

.blog-article__body pre,
.blog-article__body code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

.blog-article__body pre {
  background: #0f0f0f;
  color: #e2e2e2;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-article__body :not(pre) > code {
  background: #f5f5f5;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: #d14;
}

.blog-article__body a {
  color: #f97316;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tags */
.blog-article__tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.85rem;
  color: #666;
}

.blog-article__tags a {
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  margin: 0 0.2rem;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.blog-article__tags a:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

/* Share buttons */
.blog-article__share {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: #f9f9f9;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
}

.blog-article__share-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  font-family: var(--font-en);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55em 1.25em;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn--x { background: #0a0a0a; color: #fff; }
.share-btn--x:hover { background: #333; color: #fff; transform: translateY(-2px); }
.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--fb:hover { background: #1565d8; color: #fff; transform: translateY(-2px); }
.share-btn--line { background: #06C755; color: #fff; }
.share-btn--line:hover { background: #05b04b; color: #fff; transform: translateY(-2px); }

/* Related posts */
.blog-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e8e8;
}

.blog-related__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-family: var(--font-en);
  margin-bottom: 1.5rem;
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8e8e8;
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-nav__item:hover {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.post-nav__item--next { text-align: right; }

.post-nav__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #aaa;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

.post-nav__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .blog-archive__container,
  .blog-single__container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__item--next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }
}
