/* 자연스러운 블로그 스타일 */

body {
  background: #fafafa;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
}

/* 헤더 */
.ast-primary-header-bar {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.site-title a {
  color: #111 !important;
  font-weight: 700;
}

/* 포스트 카드 */
article.post {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid #eee;
}

article.post:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* 포스트 제목 */
.entry-title a {
  color: #111 !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.entry-title a:hover {
  color: #0066cc !important;
}

/* 이미지 */
article img {
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

/* 더보기 버튼 */
.ast-read-more-container a,
a.more-link {
  display: inline-block;
  padding: 10px 20px;
  background: #111;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.ast-read-more-container a:hover,
a.more-link:hover {
  background: #333;
}

/* 메타 정보 */
.entry-meta {
  color: #888;
  font-size: 14px;
}

.entry-meta a {
  color: #666 !important;
}

.entry-meta a:hover {
  color: #0066cc !important;
}

/* 카테고리 */
.cat-links a {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: #555 !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.cat-links a:hover {
  background: #e0e0e0;
}

/* 사이드바 */
.widget {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.widget-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

/* 검색 */
.search-field {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  transition: border-color 0.15s ease !important;
}

.search-field:focus {
  border-color: #0066cc !important;
  outline: none !important;
}

/* 푸터 */
.site-footer {
  background: #111 !important;
}

/* 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 선택 텍스트 */
::selection {
  background: #0066cc;
  color: #fff;
}

/* 테이블 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

th {
  background: #f8f9fa;
  font-weight: 600;
}

th, td {
  padding: 12px 14px;
  border: 1px solid #e9ecef;
  text-align: left;
}

/* 코드 블록 */
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #e83e8c;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* 인용문 */
blockquote {
  border-left: 3px solid #ddd;
  padding-left: 20px;
  margin: 24px 0;
  color: #666;
  font-style: italic;
}

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 페이지 로드 애니메이션 - 은은하게 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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