﻿/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
}

:root {
  --primary-color: #0066FF;
  --text-dark: #0A0E27;
  --text-gray: #5B6B7C;
  --text-light: #8B98A8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFB;
  --border-light: #E8ECF0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
  --text-dark: #F7FAFC;
  --text-gray: #CBD5E0;
  --text-light: #A0AEC0;
  --bg-white: #1A202C;
  --bg-light: #2D3748;
  --border-light: #4A5568;
}

/* Header background fix for dark mode */
body.dark-mode .header {
  background: rgba(26, 32, 44, 0.9);
}

/* Code block fix for dark mode */
body.dark-mode .post-content pre {
  background: #2D3748;
}

body.dark-mode .post-content code {
  background: #2D3748;
  color: #63B3ED;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===================================
   Header
   =================================== */
.header {
  background: var(--bg-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-dark);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  padding: 120px 0 80px;
  background: var(--bg-white);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   Recent Posts Section
   =================================== */
.recent-posts {
  padding: 80px 0 120px;
  background: var(--bg-white);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.view-all {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-all:hover {
  opacity: 0.8;
}

/* ===================================
   Post List
   =================================== */
.posts-list {
  display: grid;
  gap: 48px;
}

.post-item {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item-thumbnail {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.post-item-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item-content {
  flex: 1;
  min-width: 0;
}

.post-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}

.post-item-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  flex: 1;
}

.post-item-title a {
  color: var(--text-dark);
}

.post-item-title a:hover {
  color: var(--primary-color);
}

.post-item-tags {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tag {
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  transition: var(--transition);
  white-space: nowrap;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

.post-item-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.post-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-item-footer time {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.read-more-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  gap: 8px;
}

/* ===================================
   Pagination
   =================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
}

.pagination-btn {
  padding: 12px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-page {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-gray);
}

/* ===================================
   Post Page
   =================================== */
.post {
  padding: 80px 0 120px;
}

.post-header {
  margin-bottom: 56px;
  text-align: center;
}

.post-header .post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.post-header .post-tags {
  display: flex;
  gap: 8px;
}

.post-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 16px;
  margin-top: 16px;
}

.post-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0 auto;
}

.post-header-wrapper {
  background: var(--bg-white);
  padding-bottom: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.post-body-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 100vh;
}

.post-footer-wrapper {
  padding-top: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===================================
   Post Featured Image
   =================================== */
.post-featured-image {
  margin: 48px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

/* ===================================
   Post Layout with TOC
   =================================== */
.post-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  overflow: visible;
}

/* ===================================
   Floating TOC
   =================================== */
.toc-sidebar {
  display: block;
  flex-shrink: 0;
  width: 300px;
  align-self: flex-start;
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  z-index: 10;
  height: fit-content;
}

.toc-wrapper {
  padding: 28px;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gray);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 10px;
}

.toc-h1 {
  margin-left: 0;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.toc-h2 {
  margin-left: 12px;
  font-size: 14px;
  margin-bottom: 4px;
}

.toc-h3 {
  margin-left: 24px;
  font-size: 13px;
  margin-bottom: 4px;
}

.toc-h4 {
  margin-left: 36px;
  font-size: 12px;
  margin-bottom: 4px;
}

.toc-link {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-gray);
  text-decoration: none;
  padding: 8px 0 8px 16px;
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin-left: -16px;
  border-radius: 4px;
}

.toc-link:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.toc-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.08);
}

/* ===================================
   Post Content
   =================================== */
.post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  flex: 1;
  min-width: 700px;
  max-width: 1040px;
}

.post-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 120px;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  scroll-margin-top: 120px;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 32px 0 14px;
  scroll-margin-top: 120px;
}

.post-content h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  scroll-margin-top: 120px;
}

.post-content h5 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  scroll-margin-top: 120px;
}

.post-content h6 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-gray);
  scroll-margin-top: 120px;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post-content p + p {
  margin-top: 16px;
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 28px;
  line-height: 1.8;
}

.post-content li {
  margin-bottom: 8px;
  color: var(--text-gray);
  line-height: 1.75;
}

.post-content li:last-child {
  margin-bottom: 0;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin: 8px 0;
}

.post-content a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content code {
  background: var(--bg-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  color: var(--primary-color);
}

.post-content pre {
  background: var(--text-dark);
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #E8ECF0;
  font-size: 15px;
}

.post-content blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--text-gray);
  font-style: italic;
  font-size: 19px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  display: block;
}

/* 이미지 크기 클래스 */
.post-content .img-full {
  width: 100%;
}

.post-content .img-large {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.post-content .img-medium {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.post-content .img-small {
  width: 40%;
  margin-left: auto;
  margin-right: auto;
}

.post-content .img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-content .img-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.post-content .img-border {
  border: 1px solid var(--border-light);
  padding: 8px;
  background: var(--bg-white);
}

/* 이미지 캡션 */
.post-content img + em {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: -30px;
  margin-bottom: 40px;
  font-style: normal;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 48px 0;
}

/* ===================================
   Post Footer
   =================================== */
.post-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.post-tags-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-large {
  background: var(--bg-light);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  transition: var(--transition);
}

.tag-large:hover {
  background: var(--primary-color);
  color: white;
}

/* ===================================
   Related Posts
   =================================== */
.related-posts {
  padding: 80px 0 120px;
  background: var(--bg-light);
}

.posts-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.post-card-small {
  background: var(--bg-white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.post-card-small:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.post-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--text-dark);
}

.post-card-title a:hover {
  color: var(--primary-color);
}

.post-card-small time {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Dark Mode Footer Fix */
body.dark-mode .footer {
  background: #000000;
  border-top: 1px solid var(--border-light);
}

body.dark-mode .footer-description {
  color: var(--text-gray);
}

body.dark-mode .footer-bottom {
  border-top-color: var(--border-light);
  color: var(--text-gray);
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  display: flex;
  opacity: 1;
}

.search-container {
  background: var(--bg-white);
  width: 100%;
  max-width: 600px;
  margin: 100px auto auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.search-modal.active .search-container {
  transform: translateY(0);
}

.search-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  padding: 12px 16px;
  border-radius: 12px;
}

.search-input-wrapper .search-icon {
  color: var(--text-light);
}

.search-input {
  flex: 1;
  border: none;
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  outline: none;
  width: 100%;
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.search-options {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-gray);
}

.search-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.search-results {
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.search-result-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--text-dark);
}

.search-result-excerpt {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.search-highlight {
  color: var(--primary-color);
  font-weight: 700;
  background: rgba(0, 102, 255, 0.1);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-badge {
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Dark Mode Adjustments */
body.dark-mode .search-container {
  background: var(--bg-white);
}

body.dark-mode .search-input-wrapper {
  background: var(--bg-light);
}

body.dark-mode .search-result-item:hover {
  background: var(--bg-light);
}

body.dark-mode .search-highlight {
  background: rgba(99, 179, 237, 0.2);
  color: #63B3ED;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 17px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  /* TOC를 모바일에서 완전히 숨김 */
  .post-layout {
    display: block !important;
  }
  
  .toc-sidebar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  .post-item {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-item-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .post-item-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .post-item-title {
    font-size: 22px;
  }
  
  .post-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .post-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .post-header .post-meta {
    font-size: 13px;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .post-content {
    font-size: 15px;
    min-width: 0;
    max-width: 100%;
  }
  
  .post-header-wrapper,
  .post-body-wrapper,
  .post-footer-wrapper {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .post-content h1 {
    font-size: 24px;
    margin: 32px 0 16px;
  }
  
  .post-content h2 {
    font-size: 22px;
    margin: 28px 0 14px;
  }
  
  .post-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
  }
  
  .post-content h4 {
    font-size: 16px;
    margin: 20px 0 10px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .posts-grid-small {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .post-item-title {
    font-size: 18px;
  }
  
  .post-title {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .post-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .post-header .post-meta {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 14px;
  }
  
  .post-content {
    font-size: 14px;
  }
  
  .post-content h1 {
    font-size: 22px;
    margin: 28px 0 14px;
  }
  
  .post-content h2 {
    font-size: 20px;
    margin: 24px 0 12px;
  }
  
  .post-content h3 {
    font-size: 17px;
    margin: 20px 0 10px;
  }
  
  .post-content h4 {
    font-size: 15px;
    margin: 16px 0 8px;
  }
}
