/*
Theme Name: Sunny Coupon
Theme URI: https://sunnycoupon.com/
Author: SunnyCoupon
Author URI: https://sunnycoupon.com/
Description: 심플하고 반응형인 쿠폰/여행 정보 테마
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunnycoupon
*/

/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

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

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

/* 헤더 */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 9999 !important;
  isolation: isolate;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

/* 로고와 검색창을 묶는 컨테이너 */
.logo-search-group {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 1;
}

.site-logo {
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.site-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.site-logo img {
  height: 40px;
  transition: filter 0.3s ease;
}

.site-logo:hover img {
  filter: brightness(1.1);
}

/* 헤더 검색창 */
.header-search {
  flex: 0 1 300px;
  min-width: 200px;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  background: #f8f9fa;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: #ff4757;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff4757;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #ff3742;
  transform: translateY(-50%) scale(1.05);
}

/* 모바일 검색창 */
.mobile-search-container {
  display: none;
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.mobile-search-form {
  position: relative;
  width: 100%;
}

.mobile-search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  background: #fff;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}

.mobile-search-input:focus {
  border-color: #ff4757;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.mobile-search-input::placeholder {
  color: #999;
}

.mobile-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff4757;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-search-button:hover {
  background: #ff3742;
  transform: translateY(-50%) scale(1.05);
}

/* 모바일 햄버거 버튼 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  order: 3;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 네비게이션 */
.main-navigation {
  order: 2;
}

/* 네비게이션 */
nav .main-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  font-weight: 500;
  font-size: 16px;
}

nav .main-nav li {
  position: relative;
}

nav .main-nav li a {
  padding: 10px 0;
  display: block;
  color: #333;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav .main-nav li a:hover {
  color: #ff4757;
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

/* 서브메뉴 스타일 */
nav .main-nav li .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 999999 !important;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid #eee;
  transform: translateZ(0);
  will-change: transform;
}

nav .main-nav li:hover > .sub-menu {
  display: flex;
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* 모바일 반응형 - 임시로 데스크톱에서도 표시 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* 햄버거 메뉴는 모바일에서만 표시 */
  
/* 모바일 반응형에서만 적용되는 네비게이션 스타일 */
@media (max-width: 768px) {
  .main-navigation {
    position: fixed;
    top: 0;
    right: -240px;
    width: 240px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }
    
  .main-navigation.active {
    right: 0 !important;
    display: block !important;
  }
    
  .main-navigation .main-nav {
    flex-direction: column;
    gap: 0;
    padding: 50px 20px 20px;
    height: 100%;
    overflow-y: auto;
  }
    
  .main-navigation .main-nav li {
    border-bottom: 1px solid #eee;
  }
    
  .main-navigation .main-nav li a {
    padding: 15px 0;
    font-size: 15px;
    font-weight: 500;
    display: block;
    border-radius: 0;
    color: #333 !important;
    text-decoration: none !important;
  }
    
  /* 서브메뉴 화살표 제거 (항상 열려있으므로) */
  .main-navigation .main-nav li.menu-item-has-children > a::after {
    display: none;
  }
    
  .main-navigation .sub-menu {
    position: static !important;
    background: #f8f9fa !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    opacity: 1 !important;
  }
    
  .main-navigation .sub-menu li {
    border-bottom: none !important;
  }
    
  .main-navigation .sub-menu li a {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #666 !important;
    background: none !important;
    font-weight: 400 !important;
  }
    
  .main-navigation .sub-menu li a:hover {
    background: #e9ecef !important;
    color: #ff4757 !important;
  }
}

nav .main-nav li .sub-menu li {
  padding: 0;
  width: 100%;
}

nav .main-nav li .sub-menu li a {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

nav .main-nav li .sub-menu li a:hover {
  background: #f8f9fa;
  color: #ff4757;
}

/* 메뉴 아이템에 자식이 있을 때 화살표 표시 */
nav .main-nav li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.7;
}

/* 메인 컨테이너 */
main {
  background: #fff;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* 슬라이드 배너 - 모든 기기 호환 */
.slide-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  /* aspect-ratio 대신 padding-bottom 사용 (아이폰 호환) */
  height: 0;
  padding-bottom: 47.37%; /* 1140/540 = 47.37% */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #f8f9fa;
  /* 터치 스와이프 지원 표시 */
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* 아이폰 터치 스크롤 개선 */
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}

.slide-banner:active {
  cursor: grabbing;
}

.slide-banner .main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
  z-index: 3;
}

/* 아이폰 이미지 렌더링 최적화 및 터치 반응성 개선 */
.slide-banner .main-image {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* 슬라이드 화살표 */
.slide-banner .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  /* 아이폰 터치 지원 */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* 모바일에서 화살표 버튼 크기 증가 */
@media screen and (max-width: 768px) {
  .slide-banner .slide-arrow {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .slide-banner .slide-arrow.prev {
    left: 10px;
  }
  
  .slide-banner .slide-arrow.next {
    right: 10px;
  }
  
  /* 모바일에서 도트 크기도 증가 */
  .slide-banner .dot {
    width: 16px;
    height: 16px;
  }
  
  .slide-banner .dots {
    bottom: 15px;
    gap: 12px;
  }
}

.slide-banner .slide-arrow:hover {
  background: #fff;
  color: #ff4757;
  transform: translateY(-50%) scale(1.1);
}

.slide-banner .slide-arrow.prev {
  left: 20px;
}

.slide-banner .slide-arrow.next {
  right: 20px;
}

/* 슬라이드 도트 */
.slide-banner .dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slide-banner .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  /* 아이폰 터치 지원 */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.slide-banner .dot.active {
  background: #ff4757;
  transform: scale(1.2);
}

.slide-banner .dot:hover {
  background: rgba(255,255,255,0.8);
}



/* 섹션 제목 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-align: left;
}

/* 쿠폰 카드 그리드 */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.coupon-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  aspect-ratio: 562/374;
}

.coupon-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* BEST 5 카드 */
.coupon-card.best5 {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: #fff;
  position: relative;
}

.coupon-card.best5::before {
  content: "BEST 5";
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.coupon-card.best5 .card-content {
  padding: 50px 20px 25px;
  text-align: center;
}

.coupon-card.best5 .card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.coupon-card.best5 .card-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

/* 면세점 카드 */
.coupon-card.dutyfree {
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
  color: #fff;
}

.coupon-card.dutyfree .card-content {
  padding: 25px 20px;
  text-align: center;
}

.coupon-card.dutyfree .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.coupon-card.dutyfree .card-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* 여행할인 카드 */
.coupon-card.travel {
  background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
  color: #fff;
}

.coupon-card.travel .card-content {
  padding: 25px 20px;
  text-align: center;
}

.coupon-card.travel .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.coupon-card.travel .card-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* 여행편의 카드 */
.coupon-card.convenience {
  background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
  color: #fff;
}

.coupon-card.convenience .card-content {
  padding: 25px 20px;
  text-align: center;
}

.coupon-card.convenience .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.coupon-card.convenience .card-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* 팁 & 체크리스트 */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.tip-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  aspect-ratio: 562/374;
}

.tip-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tip-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.tip-item .tip-content {
  padding: 20px;
  text-align: center;
}

.tip-item .tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 스크롤 상단 버튼 */
#scrollTopBtn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255,71,87,0.3);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #ff3742;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,71,87,0.4);
}

/* 푸터 */
footer {
  background: #fff;
  color: #333;
  padding: 40px 0 20px;
  text-align: center;
  border-top: 2px solid #eee;
  margin-top: 60px;
}

.footer-sns {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-sns a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-sns a:hover {
  background: #f1f3f4;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-sns a:hover img {
  opacity: 0.8;
  transform: scale(1.1);
}

.footer-sns a img {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.footer-info {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

.footer-info br {
  margin-bottom: 5px;
}

/* 반응형 디자인 - 모바일만 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    padding: 15px 0;
  }
  
  /* 모바일에서 로고-검색창 그룹 조정 */
  .logo-search-group {
    flex: 1;
    gap: 10px;
  }
  
  /* 모바일에서 로고 크기 조정 */
  .site-logo img {
    height: 32px;
  }
  
  /* 모바일에서 검색창 크기 조정 */
  .header-search {
    flex: 0 1 200px;
    min-width: 120px;
    max-width: 220px;
  }
  
  .search-input {
    padding: 10px 40px 10px 12px;
    font-size: 13px;
  }
  
  .search-button {
    width: 28px;
    height: 28px;
    right: 6px;
  }
  
  .search-button svg {
    width: 16px;
    height: 16px;
  }
  
  /* 모바일 검색창 컨테이너 숨기기 */
  .mobile-search-container {
    display: none;
  }
  
  .coupon-grid,
  .tip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .slide-banner {
    margin-bottom: 40px;
    border-radius: 8px;
    /* aspect-ratio가 자동으로 모든 화면에 맞게 조정 */
  }
  
  .slide-banner .slide-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .slide-banner .slide-arrow.prev {
    left: 15px;
  }
  
  .slide-banner .slide-arrow.next {
    right: 15px;
  }
  
  .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .tip-item .tip-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .main-navigation {
    right: -220px !important;
    width: 220px !important;
  }
  
  .main-navigation .main-nav {
    padding: 45px 18px 15px !important;
  }
  
  .main-navigation .main-nav li a {
    padding: 12px 0 !important;
    font-size: 14px !important;
  }
  
  .main-navigation .sub-menu li a {
    padding: 8px 15px !important;
    font-size: 13px !important;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  #scrollTopBtn {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
  
  /* 초소형 화면에서 추가 조정 */
  .logo-search-group {
    gap: 8px;
  }
  
  .site-logo img {
    height: 28px;
  }
  
  .header-search {
    flex: 0 1 160px;
    min-width: 100px;
    max-width: 180px;
  }
  
  .search-input {
    padding: 8px 32px 8px 10px;
    font-size: 12px;
    border-radius: 18px;
  }
  
  .search-button {
    width: 22px;
    height: 22px;
    right: 4px;
  }
  
  .search-button svg {
    width: 13px;
    height: 13px;
  }
}

/* 글 목록 페이지 썸네일 스타일 */
.thumb-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.thumb-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  aspect-ratio: 562/374;
}

.thumb-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .thumb-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  

}

/* 글 상세 페이지 스타일 */
.single-post {
  background: #fff;
}

/* 브레드크럼 */
.breadcrumb-container {
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff4757;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* 포스트 아티클 */
.post-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 포스트 헤더 */
.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  gap: 20px;
}

.post-share-simple {
  display: flex;
  flex-shrink: 0;
}

.share-btn-simple {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #666;
  font-weight: 500;
}

.share-btn-simple:hover {
  background: #e9ecef;
  border-color: #aaa;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-category {
  margin-bottom: 0;
  flex-shrink: 0;
}

.category-tag-link {
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.category-tag-link:hover .category-tag {
  background: #ff3742;
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.3);
}

.category-tag {
  display: inline-block;
  background: #ff4757;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.post-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 25px;
  word-break: keep-all;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  font-size: 16px;
}

.meta-text {
  font-weight: 500;
}

.meta-item.tags {
  gap: 4px;
}

.meta-item.tags a {
  color: #ff4757;
  text-decoration: none;
  font-weight: 500;
}

/* 포스트 썸네일 */
.post-thumbnail {
  margin-bottom: 40px;
  text-align: center;
}

.featured-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* 포스트 본문 */
.post-content {
  margin-bottom: 50px;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #2c3e50;
  border-left: 4px solid #ff4757;
  padding-left: 16px;
}

.entry-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 35px 0 18px;
  color: #34495e;
}

.entry-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #34495e;
}

.entry-content img {
  width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: block;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.entry-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #ff4757;
  padding: 20px 24px;
  margin: 30px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

.entry-content code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.entry-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 30px 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* 포스트 푸터 */
.post-footer {
  border-top: 2px solid #f1f3f4;
  padding-top: 40px;
  text-align: center;
}

.post-footer .post-tags {
  width: 100% !important;
  grid-column: 1 / -1;
}

.post-tags {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

.post-tags h4,
.post-share h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center !important;
}

.tag-list {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

.tag-list a {
  display: inline-block !important;
  background: #f8f9fa;
  color: #666;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  margin: 0 4px 8px 4px !important;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.tag-list a:hover {
  background: #ff4757;
  color: #fff;
  border-color: #ff4757;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-btn.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.share-btn.copy {
  background: #6c757d;
  color: #fff;
}

.share-btn.facebook {
  background: #1877f2;
  color: #fff;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 관련글 섹션 */
.related-posts {
  background: #fff;
  padding: 30px 0;
  margin-top: 30px;
}

.related-posts .section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-thumbnail {
  aspect-ratio: 562/374;
  overflow: hidden;
  background: #f5f5f5;
}

.related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: #fff;
  font-size: 24px;
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  font-size: 12px;
  color: #666;
}

/* 포스트 네비게이션 */
.post-navigation {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-link {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  align-items: center;
}

.nav-link:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.nav-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}

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

.nav-thumbnail .no-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999;
  font-size: 20px;
}

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

.nav-subtitle {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.nav-title {
  display: block;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-next .nav-link {
  flex-direction: row-reverse;
  text-align: right;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .post-article {
    padding: 30px 15px;
  }
  
  .post-title {
    font-size: 28px;
  }
  
  .post-header-top {
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
  }
  
  .post-share-simple {
    flex-shrink: 0;
  }
  
  .post-meta {
    gap: 15px;
  }
  
  .post-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nav-previous,
  .nav-next {
    text-align: center;
  }
  
  .entry-content {
    font-size: 16px;
  }
  
  .entry-content h2 {
    font-size: 24px;
  }
  
  .entry-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 24px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .meta-item {
    font-size: 12px;
  }
} 