/* ==========================================================================
   판도라 매거진 공용 스타일
   글 하나 = HTML 파일 하나. 모든 글이 이 파일 하나를 참조한다.
   ========================================================================== */

body {
    background: linear-gradient(135deg, #1e1b4b, #2e1065);
    color: #fff; font-family: '맑은 고딕', sans-serif;
    padding: 40px 20px; margin: 0; min-height: 100vh;
}

.blog-container {
    max-width: 800px; margin: 0 auto;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px; padding: 40px 50px;
    box-sizing: border-box; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* ---------- 글 머리말 ---------- */
.article-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; text-align: center; }
.category-tag { display: inline-block; background-color: rgba(56, 189, 248, 0.2); color: #7dd3fc; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; margin-bottom: 15px; font-weight: bold; border: 1px solid rgba(56, 189, 248, 0.5); text-decoration: none; }
.article-title { font-size: 2rem; color: #f8fafc; margin: 0 0 15px 0; line-height: 1.4; word-break: keep-all; }
.article-meta { color: #94a3b8; font-size: 0.9rem; }

/* ---------- 본문 ---------- */
.article-content { color: #cbd5e1; font-size: 1.1rem; line-height: 1.8; word-break: keep-all; }
.article-content h2 { color: #38bdf8; font-size: 1.5rem; margin-top: 50px; margin-bottom: 20px; border-bottom: 1px dashed rgba(56, 189, 248, 0.3); padding-bottom: 10px; word-break: keep-all; }
.article-content h3 { color: #7dd3fc; font-size: 1.25rem; margin-top: 30px; margin-bottom: 15px; word-break: keep-all; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { background: rgba(0,0,0,0.2); padding: 25px 25px 25px 45px; border-radius: 10px; margin-bottom: 25px; border-left: 3px solid #38bdf8; }
.article-content li { margin-bottom: 12px; }
.article-content strong { color: #fff; background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; }
.article-content a { color: #7dd3fc; }
.highlight-box { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); padding: 20px; border-radius: 10px; color: #bae6fd; font-weight: bold; text-align: center; margin: 30px 0; }

/* 본문 표 */
.article-content table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 1rem; display: block; overflow-x: auto; white-space: nowrap; }
.article-content th, .article-content td { border: 1px solid rgba(255,255,255,0.15); padding: 12px 14px; text-align: left; }
.article-content th { background: rgba(56, 189, 248, 0.15); color: #bae6fd; font-weight: bold; }
.article-content tbody tr:nth-child(even) { background: rgba(0,0,0,0.15); }
.article-content caption { caption-side: bottom; color: #94a3b8; font-size: 0.85rem; padding-top: 10px; text-align: left; white-space: normal; }

/* 주의·면책 박스 */
.notice-box { background: rgba(245, 158, 11, 0.1); border-left: 4px solid #f59e0b; padding: 18px 22px; border-radius: 8px; margin: 30px 0; color: #fde68a; font-size: 1rem; line-height: 1.7; }
.notice-box strong { color: #fcd34d; background: none; padding: 0; }

/* 목차 */
.toc { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 22px 26px; margin-bottom: 36px; }
.toc h2 { color: #7dd3fc !important; font-size: 1.05rem !important; margin: 0 0 12px !important; border: none !important; padding: 0 !important; }
.toc ol { background: none; border: none; padding: 0 0 0 20px; margin: 0; }
.toc li { margin-bottom: 8px; font-size: 1rem; }
.toc a { color: #cbd5e1; text-decoration: none; }
.toc a:hover { color: #7dd3fc; text-decoration: underline; }

/* ---------- 관련 계산기 배너 ---------- */
.tool-banner {
    margin-top: 50px; background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(190, 18, 60, 0.1));
    border: 1px solid rgba(244, 63, 94, 0.3); padding: 30px; border-radius: 15px; text-align: center;
}
.tool-banner h3 { color: #fda4af; margin-top: 0; font-size: 1.3rem; word-break: keep-all; }
.tool-banner p { color: #cbd5e1; word-break: keep-all; }
.btn-tool {
    display: inline-block; background: linear-gradient(135deg, #e11d48, #be123c); color: #fff; font-weight: bold;
    padding: 12px 30px; border-radius: 30px; text-decoration: none; margin-top: 15px; transition: 0.3s; box-shadow: 0 5px 15px rgba(225, 29, 72, 0.4);
}
.btn-tool:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(225, 29, 72, 0.6); }

/* ---------- 관련 글 ---------- */
.related-posts { margin-top: 45px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.related-posts h3 { color: #7dd3fc; font-size: 1.2rem; margin: 0 0 16px; }
.related-posts ul { list-style: none; padding: 0; margin: 0; background: none; border: none; }
.related-posts li { margin-bottom: 10px; }
.related-posts a { color: #cbd5e1; text-decoration: none; font-size: 1rem; }
.related-posts a:hover { color: #7dd3fc; text-decoration: underline; }
.related-posts .rp-cat { color: #7dd3fc; font-size: 0.8rem; margin-right: 8px; }

/* ---------- 하단 버튼 ---------- */
.back-btn-area { text-align: center; margin-top: 50px; }
.btn-back {
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px; border-radius: 20px; color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.3s;
    display: inline-block; margin: 0 5px 10px;
}
.btn-back:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   목록 페이지 (blog/index.html)
   ========================================================================== */
.page-header { text-align: center; margin-bottom: 36px; }
.page-header h1 { color: #fcd34d; font-size: 2rem; margin-bottom: 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.page-header p { color: #cbd5e1; font-size: 15px; margin: 0 auto; max-width: 620px; word-break: keep-all; }

.intro { background: rgba(30, 41, 59, 0.7); border-radius: 12px; padding: 24px 28px; border-left: 5px solid #f59e0b; margin-bottom: 30px; font-size: 15px; color: #cbd5e1; line-height: 1.7; }
.intro h2 { color: #fcd34d; font-size: 1.1rem; margin: 0 0 10px; }
.intro p { margin: 0 0 10px; word-break: keep-all; }
.intro p:last-child { margin-bottom: 0; }

.cat-filter { text-align: center; margin-bottom: 26px; }
.cat-filter span { display: inline-block; background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); color: #7dd3fc; font-size: 13px; padding: 5px 14px; border-radius: 20px; margin: 0 4px 8px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post {
    display: block; text-decoration: none; color: inherit;
    background: rgba(30, 41, 59, 0.8); border: 1px solid rgba(255,255,255,0.1);
    border-left: 5px solid #f59e0b; border-radius: 12px;
    padding: 24px 28px; margin-bottom: 18px; transition: 0.2s;
}
.post:hover { transform: translateY(-3px); border-color: #f59e0b; background: rgba(51, 65, 85, 0.9); }
.post .cat { display: inline-block; font-size: 12px; font-weight: bold; color: #fcd34d; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245,158,11,0.4); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.post .date { color: #64748b; font-size: 12px; margin-left: 8px; }
.post h2 { margin: 0 0 8px; font-size: 1.2rem; color: #fff; word-break: keep-all; line-height: 1.45; }
.post p { margin: 0; font-size: 14px; color: #94a3b8; word-break: keep-all; line-height: 1.6; }

.related { background: rgba(30, 41, 59, 0.7); border-radius: 12px; padding: 24px 28px; margin-top: 36px; }
.related h2 { color: #fcd34d; font-size: 1.1rem; margin: 0 0 12px; }
.related a { color: #93c5fd; text-decoration: none; margin-right: 14px; font-size: 14px; line-height: 2.2; display: inline-block; }
.related a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; }
.back-btn { display: inline-block; margin-top: 30px; color: #93c5fd; text-decoration: none; font-weight: bold; }

/* ---------- 공용 푸터 ---------- */
.pt-global-footer {
    max-width: 820px; margin: 40px auto 0; padding: 22px 16px;
    background: rgba(30,41,59,0.94); border-radius: 12px; text-align: center;
    font-size: 14px; line-height: 1.9; color: #cbd5e1; box-sizing: border-box;
}
.pt-global-footer a { color: #93c5fd; text-decoration: none; margin: 0 6px; }
.pt-global-footer a:hover { text-decoration: underline; }
.pt-global-footer .fine { margin-top: 8px; font-size: 13px; color: #94a3b8; }

@media (max-width: 600px) {
    body { padding: 20px 12px; }
    .blog-container { padding: 30px 20px; }
    .article-title { font-size: 1.5rem; }
    .article-content { font-size: 1.05rem; }
}
