.navbar { background-color: #ffffff; padding: 16px 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 10; }
.navbar a { text-decoration: none; font-weight: 800; font-size: 1.25rem; color: #1e3a8a; letter-spacing: -0.03em; }

.article-container { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.post-box { background: #ffffff; padding: 50px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03); }

.keyword-tag { display: inline-block; background-color: #eff6ff; color: var(--primary); font-size: 0.9rem; font-weight: 700; padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; text-decoration: none; transition: 0.2s; }
.keyword-tag:hover { background-color: var(--primary); color: #ffffff; }
.post-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin: 0 0 12px 0; line-height: 1.35; word-break: keep-all; }
.post-subtitle { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 20px 0; line-height: 1.5; font-weight: 400; }

/* 에디터 프로필 및 메타데이터 CSS 추가 */
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; gap: 15px; }
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background-color: #f8fafc; border: 1px solid #e2e8f0; object-fit: cover; }
.author-text { display: flex; flex-direction: column; }
.author-name { font-weight: 800; color: var(--text-main); font-size: 1.05rem; margin-bottom: 4px; }
.author-date { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }
.read-time { display: inline-flex; align-items: center; background: #f8fafc; color: #64748b; font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid #e2e8f0; }

.quick-buy-btn { display: flex; align-items: center; justify-content: space-between; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 20px; margin-bottom: 30px; text-decoration: none; transition: all 0.2s; }
.quick-buy-btn:hover { border-color: #e11d48; background-color: #fff1f2; }
.quick-buy-text { font-size: 1.05rem; color: var(--text-body); font-weight: 600; line-height: 1.4; }
.quick-buy-text strong { color: #e11d48; background: none; }
.quick-buy-action { background-color: #e11d48; color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; margin-left: 15px; }

.post-content { font-size: 1.1rem; line-height: 1.85; color: var(--text-body); word-break: keep-all; }
.post-content h3 { font-size: 1.4rem; color: var(--text-main); margin: 40px 0 16px 0; font-weight: 700; }
.post-content p { margin-bottom: 20px; }
.post-content strong { color: #1e293b; background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #bfdbfe 60%); }
.post-content ul { padding-left: 24px; margin-bottom: 24px; background: #f8fafc; padding: 20px 20px 20px 40px; border-radius: 12px; }
.post-content li { margin-bottom: 10px; }

.post-content blockquote { margin: 40px 0; padding: 24px 30px; background: linear-gradient(to right, #f8fafc, #f1f5f9); border-left: 6px solid var(--primary); border-radius: 0 12px 12px 0; font-size: 1.15rem; font-weight: 600; color: #1e293b; line-height: 1.6; }
.post-content table { width: 100%; border-collapse: collapse; margin: 30px 0; background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
.post-content th { background-color: #f8fafc; color: var(--text-main); font-weight: 800; padding: 16px 20px; text-align: left; border-bottom: 2px solid #e2e8f0; }
.post-content td { padding: 16px 20px; color: var(--text-body); border-bottom: 1px solid #f1f5f9; }
.post-content tr:last-child td { border-bottom: none; }

.coupang-banner { display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border: 1px solid #fecdd3; border-radius: 20px; padding: 40px 20px; text-align: center; margin: 50px 0 30px 0; box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08); }
.coupang-title { font-size: 1.3rem; font-weight: 800; color: #e11d48; margin-bottom: 12px; word-break: keep-all; }
.coupang-desc { color: #475569; font-size: 1rem; margin-bottom: 24px; line-height: 1.5; }
.coupang-btn { display: inline-flex; align-items: center; justify-content: center; background-color: #e11d48; color: #ffffff !important; padding: 16px 36px; border-radius: 14px; font-size: 1.15rem; font-weight: 800; text-decoration: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 6px 15px rgba(225, 29, 72, 0.3); animation: pulse-glow 2s infinite; }
.coupang-btn:hover { background-color: #be123c; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4); }
.coupang-notice { font-size: 0.85rem; color: #94a3b8; text-align: center; margin-top: 16px; font-weight: 500; }
.coupang-product-image { max-width: 250px; height: auto; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }

.action-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f1f5f9; text-align: center; }
.back-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; background-color: #f1f5f9; color: #475569; text-decoration: none; border-radius: 12px; font-weight: 600; font-size: 1rem; transition: all 0.2s; }
.back-btn:hover { background-color: #e2e8f0; color: #0f172a; }

/* 연관 트렌드 추천 섹션 CSS 추가 */
.related-section { margin-top: 50px; padding-top: 40px; border-top: 1px solid #f1f5f9; }
.related-title { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.related-card { background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; cursor: pointer; overflow: hidden; transition: all 0.3s; text-decoration: none; display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: #e2e8f0; }
.related-img-wrap { width: 100%; height: 140px; background: #f1f5f9; overflow: hidden; position: relative; }
.related-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-img-wrap img { transform: scale(1.05); }
.related-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; font-weight: 800; font-size: 1.1rem; padding: 10px; text-align: center; word-break: keep-all;}
.related-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.related-keyword { color: var(--primary); font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.related-post-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text-main); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mobile-sticky-btn { display: none; }

@media (max-width: 640px) {
    .article-container { margin: 20px auto; } .post-box { padding: 30px 20px; border-radius: 16px; } .post-title { font-size: 1.75rem; } .post-content { font-size: 1.05rem; } .quick-buy-btn { flex-direction: column; align-items: flex-start; gap: 15px; } .quick-buy-action { width: 100%; text-align: center; margin-left: 0; padding: 12px; }
    .mobile-sticky-btn { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #e11d48; color: #fff; padding: 18px; justify-content: center; font-weight: 800; font-size: 1.1rem; z-index: 999; text-decoration: none; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); }
    .related-grid { grid-template-columns: 1fr; }
}