/* ========================================
전체 스타일 - 모바일 최적화 버전
======================================== */

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

/* 페이지 새로고침 시 스크롤 안정화 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-anchor: none; /* 스크롤 위치 점프 방지 */
}

/* 왼쪽 사이드 광고 */
.left-sidebar-ad {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

/* 오른쪽 사이드 광고 */
.right-sidebar-ad {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

/* 모바일에서 사이드 광고 숨김 */
@media (max-width: 1400px) {
    .left-sidebar-ad,
    .right-sidebar-ad {
        display: none;
    }
}

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

/* 헤더 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    will-change: transform; /* GPU 가속으로 스크롤 성능 향상 */
}

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

/* ========== 로고 스타일 (가로 배치) ========== */
.site-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* 사이트 이름 (큼, 굵음, 보라색) */
.site-name {
    font-size: 28px;
    font-weight: bold;
    color: #5f27cd;
    line-height: 1;
}

/* 구분선 */
.site-divider {
    font-size: 24px;
    color: #ddd;
    font-weight: 300;
}

/* 슬로건 (작음, 단순 색상) */
.site-tagline {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 0.5px;
}
/* ========== 로고 끝 ========== */

/* Breadcrumb - 간단 버전 */
.breadcrumb-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-simple a {
    color: #5f27cd;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-simple a:hover {
    color: #764ba2;
}

.breadcrumb-simple .separator {
    color: #999;
    font-size: 14px;
}

.breadcrumb-simple .current {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

/* 광고 배너 */
.ad-banner {
    margin: 10px 0;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
}

.ad-placeholder p,
.ad-text {
    color: #4a5568 !important;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.footer-ad {
    margin-top: 20px;
}

.in-content-ad {
    margin: 15px 0;
}

/* 메인 콘텐츠 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.content-area {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #5f27cd;
}

/* 사이트 설명 섹션 */
.site-description-intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #5f27cd;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-description-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
}

.site-description-intro strong {
    color: #5f27cd;
    font-weight: bold;
}

/* 게시글 카드 */
.posts-grid {
    display: grid;
    gap: 15px;
}

.post-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.post-card:hover {
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.2);
    transform: translateY(-3px);
}

/* 게시글 카드 헤더 (제목 + 조회수) */
.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.post-card-header .post-title {
    margin: 0;
    flex: 1;
    min-width: 0; /* 긴 제목 줄바꿈 */
}

.post-card-header .post-views {
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-title {
    font-size: 20px;
    margin: 10px 0;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #5f27cd;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #5a6c7d;
    font-size: 14px;
    margin: 10px 0 0 0;
    font-weight: 500;
}

.post-date,
.post-views {
    color: #5a6c7d;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    color: #5f27cd;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.page-link:hover,
.page-link.active {
    background: #5f27cd;
    color: white;
    border-color: #5f27cd;
    transform: translateY(-2px);
}

.page-link.active {
    font-weight: bold;
}

.page-dots {
    padding: 6px 5px;
    color: #5a6c7d;
    font-weight: bold;
}

/* 사이드바 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5f27cd;
}

/* 인기 게시글 목록 - 제목과 조회수 같은 줄에 */
.popular-posts,
.category-list {
    list-style: none;
}

.popular-posts li,
.category-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.popular-posts li:last-child,
.category-list li:last-child {
    border-bottom: none;
}

.popular-posts a,
.category-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    flex: 1;
    min-width: 0; /* 긴 제목 줄바꿈 처리 */
}

.popular-posts a:hover,
.category-list a:hover {
    color: #5f27cd;
}

.views,
.count {
    color: #5a6c7d;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 단일 게시글 */
.single-post {
    grid-template-columns: 1fr 320px;
}

.post-content {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 30px;
}

.post-category-single {
    margin-bottom: 15px;
}

.post-category-single a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.post-title-single {
    font-size: 36px;
    color: #2c3e50;
    line-height: 1.4;
    margin: 20px 0;
}

.post-meta-single {
    display: flex;
    gap: 25px;
    color: #5a6c7d;
    font-size: 14px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.post-meta-single .post-date,
.post-meta-single .post-views {
    color: #5a6c7d;
    font-weight: 500;
}

.post-body {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    margin: 30px 0;
}

.post-body p {
    margin: 20px 0;
}

/* 관련 게시글 */
.related-posts {
    margin: 50px 0 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.related-posts h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    gap: 15px;
}

.related-item {
    display: block;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 3px solid #5f27cd;
}

.related-item:hover {
    background: #5f27cd;
    color: white;
    transform: translateX(5px);
}

/* 댓글 */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.comment-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.3);
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.comment-date {
    color: #5a6c7d;
    font-size: 13px;
    font-weight: 500;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

/* 푸터 */
.site-footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: white;
}

.disclaimer {
    font-size: 13px;
    color: #bdc3c7;
    margin-top: 15px;
    font-style: italic;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #5a6c7d;
    font-size: 18px;
    font-weight: 500;
}

/* ========================================
꿈해몽 전용 스타일
======================================== */

/* 꿈해몽 의뢰 내용 섹션 */
.request-section {
    margin: 30px 0 40px 0;
}

.request-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.request-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border: 2px solid #d1d9e6;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.request-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.request-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.6;
    padding-left: 15px;
}

.request-question {
    font-size: 1.05em;
    color: #444;
    line-height: 1.8;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* 전문가 의견 박스 */
.expert-opinion {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #ffd4d4;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.expert-opinion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.expert-opinion h2,
.expert-opinion h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: #c53030;
    margin: 0 0 12px 10px;
}

.expert-opinion p {
    font-size: 1.02em;
    color: #444;
    line-height: 1.75;
    margin: 0;
    padding-left: 10px;
}

/* 꿈해몽 이미지 */
.dream-image {
    margin: 25px 0;
    text-align: center;
}

.dream-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-credit {
    margin-top: 8px;
    font-size: 0.85em;
    color: #5a6c7d;
    font-style: italic;
    font-weight: 500;
}

.image-credit a {
    color: #667eea;
    text-decoration: none;
}

.image-credit a:hover {
    text-decoration: underline;
}

/* 비슷한 꿈 사례 */
.similar-dream {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.similar-dream::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
}

.similar-dream h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 10px 10px;
}

.similar-dream p {
    font-size: 1em;
    color: #444;
    line-height: 1.7;
    margin: 0;
    padding-left: 10px;
}

/* ========================================
검색 기능 스타일
======================================== */

/* 헤더 검색창 */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-type {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.search-type:focus {
    border-color: #5f27cd;
    box-shadow: 0 0 0 3px rgba(95, 39, 205, 0.1);
}

.search-input-header {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input-header:focus {
    outline: none;
    border-color: #5f27cd;
    box-shadow: 0 0 0 3px rgba(95, 39, 205, 0.1);
}

.search-btn-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.search-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.3);
}

/* 검색 페이지 메인 검색창 */
.search-header {
    margin-bottom: 40px;
}

.search-form-main {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    max-width: 100%;
}

.search-type-main {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.search-type-main:focus {
    border-color: #5f27cd;
    box-shadow: 0 0 0 4px rgba(95, 39, 205, 0.1);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #5f27cd;
    box-shadow: 0 0 0 4px rgba(95, 39, 205, 0.1);
}

.search-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.3);
}

/* 검색 결과 카운트 */
.search-result-count {
    color: #4a5568;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 500;
}

.search-result-count strong {
    color: #5f27cd;
    font-size: 18px;
}

/* 검색어 하이라이트 */
mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* 인기 검색어 섹션 */
.popular-searches {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.popular-searches h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 2px solid #5f27cd;
    border-radius: 25px;
    color: #5f27cd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 39, 205, 0.3);
}

/* 인라인 스타일 오버라이드 */
[style*="color: #95a5a6"],
[style*="color:#95a5a6"] {
    color: #4a5568 !important;
    font-weight: 500 !important;
}

/* ========================================
모바일 반응형 (768px 이하)
======================================== */

@media (max-width: 768px) {
    /* 기본 body 설정 */
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 컨테이너 */
    .container {
        padding: 0 15px;
    }

    /* 헤더 */
    .site-header {
        padding: 0;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    /* ========== 모바일 로고 ========== */
    .site-logo {
        margin: 0;
        padding: 0;
    }

    .site-logo a {
        gap: 6px;
        padding: 0;
        line-height: 1;
    }

    .site-name {
        font-size: 20px;
        line-height: 1;
    }

    .site-divider {
        font-size: 16px;
        line-height: 1;
    }

    .site-tagline {
        font-size: 12px;
        line-height: 1;
    }
    /* ========== 모바일 로고 끝 ========== */

    /* 검색창 */
    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-type {
        font-size: 13px;
        padding: 8px 12px;
    }

    .search-input-header {
        font-size: 14px;
        padding: 10px 15px;
        flex: 1;
        min-width: 150px;
    }

    .search-btn-header {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* 메인 콘텐츠 */
    .main-content,
    .single-post {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    /* 콘텐츠 영역 */
    .content-area {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    /* 게시글 카드 */
    .posts-grid {
        gap: 12px;
    }

    .post-card {
        padding: 15px 12px;
        border-radius: 8px;
    }

    /* 게시글 카드 헤더 - 모바일 */
    .post-card-header {
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .post-card-header .post-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .post-card-header .post-views {
        font-size: 11px;
        padding-top: 2px;
    }

    .post-category {
        padding: 4px 12px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .post-title {
        font-size: 16px;
        margin: 8px 0;
        line-height: 1.4;
    }

    .post-excerpt {
        font-size: 13px;
        line-height: 1.5;
        margin: 8px 0;
    }

    .post-meta {
        gap: 12px;
        font-size: 12px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    /* 페이지네이션 */
    .pagination {
        gap: 5px;
        margin-top: 25px;
    }

    .page-link {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 36px;
        text-align: center;
    }

    .page-dots {
        padding: 8px 5px;
    }

    /* Breadcrumb - 모바일 */
    .breadcrumb-simple {
        font-size: 12px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        gap: 6px;
    }

    .breadcrumb-simple .separator {
        font-size: 13px;
    }

    .breadcrumb-simple .current {
        max-width: 250px;
        font-size: 12px;
    }

    /* 광고 배너 */
    .ad-banner {
        margin: 8px 0;
    }

    .ad-placeholder {
        padding: 25px 15px;
    }

    .ad-placeholder p {
        font-size: 13px;
    }

    /* 사이드바 */
    .sidebar {
        gap: 12px;
    }

    .widget {
        padding: 18px 15px;
        border-radius: 8px;
    }

    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .popular-posts li,
    .category-list li {
        padding: 10px 0;
        font-size: 14px;
        gap: 8px;
    }

    .views,
    .count {
        font-size: 11px;
    }

    /* 단일 게시글 */
    .post-content {
        padding: 25px 18px;
        border-radius: 10px;
    }

    .post-header {
        margin-bottom: 20px;
    }

    .post-category-single a {
        padding: 6px 15px;
        font-size: 12px;
    }

    .post-title-single {
        font-size: 22px;
        line-height: 1.4;
        margin: 15px 0;
    }

    .post-meta-single {
        gap: 15px;
        font-size: 13px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .post-body {
        font-size: 15px;
        line-height: 1.7;
        margin: 20px 0;
    }

    .post-body p {
        margin: 15px 0;
    }

    .post-body h2 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .post-body h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    /* 관련 게시글 */
    .related-posts {
        margin: 30px 0 20px;
        padding: 20px 15px;
        border-radius: 8px;
    }

    .related-posts h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .related-grid {
        gap: 10px;
    }

    .related-item {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 6px;
    }

    /* 댓글 섹션 */
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .comments-section h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .comment-form {
        padding: 20px 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .comment-item {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 8px;
    }

    .comment-content {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 꿈해몽 전용 - 모바일 */
    .request-section {
        margin: 20px 0 25px 0;
    }

    .request-section h2 {
        font-size: 19px;
        margin-bottom: 15px;
    }

    .request-box {
        padding: 18px 15px;
        border-radius: 10px;
    }

    .request-box::before {
        width: 4px;
    }

    .request-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-left: 10px;
    }

    .request-question {
        font-size: 14px;
        line-height: 1.7;
        padding: 12px 10px;
        border-radius: 6px;
    }

    .expert-opinion {
        padding: 18px 15px;
        margin: 15px 0;
        border-radius: 10px;
    }

    .expert-opinion::before {
        width: 3px;
    }

    .expert-opinion h2,
    .expert-opinion h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .expert-opinion p {
        font-size: 14px;
        line-height: 1.7;
    }

    .dream-image {
        margin: 18px 0;
    }

    .dream-image img {
        border-radius: 8px;
    }

    .image-credit {
        font-size: 12px;
        margin-top: 6px;
    }

    .similar-dream {
        padding: 15px 12px;
        margin: 12px 0;
        border-radius: 8px;
    }

    .similar-dream::before {
        width: 3px;
    }

    .similar-dream h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .similar-dream p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 검색 페이지 - 모바일 */
    .search-form-main {
        flex-direction: column;
        gap: 10px;
        margin: 20px 0;
    }

    .search-input {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 8px;
    }

    .search-button {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
    }

    .search-result-count {
        font-size: 14px;
        margin-top: 12px;
    }

    .search-result-count strong {
        font-size: 16px;
    }

    .popular-searches {
        margin-top: 25px;
        padding: 20px 15px;
        border-radius: 10px;
    }

    .popular-searches h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .keyword-tags {
        justify-content: center;
        gap: 8px;
    }

    .keyword-tag {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* 푸터 */
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 20px;
    }

    .footer-info h3,
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-info p,
    .footer-contact p,
    .disclaimer {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-links a {
        font-size: 14px;
        padding: 4px 0;
    }

    .copyright {
        font-size: 12px;
        padding-top: 20px;
    }

    /* 빈 게시글 메시지 */
    .no-posts {
        padding: 40px 15px;
        font-size: 16px;
    }
}

/* ========================================
초소형 모바일 (480px 이하)
======================================== */

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .site-name {
        font-size: 18px;
    }

    .site-tagline {
        font-size: 10px;
    }

    .content-area {
        padding: 15px 12px;
    }

    .page-title {
        font-size: 20px;
    }

    .post-card {
        padding: 15px 12px;
    }

    .post-title {
        font-size: 16px;
    }

    .post-excerpt {
        font-size: 13px;
    }

    .post-content {
        padding: 20px 15px;
    }

    .post-title-single {
        font-size: 20px;
    }

    .post-body {
        font-size: 14px;
    }

    .request-box,
    .expert-opinion {
        padding: 15px 12px;
    }

    .request-title {
        font-size: 15px;
    }

    .request-question,
    .expert-opinion p {
        font-size: 13px;
    }

    .page-link {
        padding: 7px 9px;
        font-size: 12px;
        min-width: 32px;
    }

    .widget {
        padding: 15px 12px;
    }

    .widget-title {
        font-size: 15px;
    }

    .popular-posts li,
    .category-list li {
        font-size: 13px;
    }
}

/* ========================================
터치 영역 최적화
======================================== */

@media (max-width: 768px) {
    /* 최소 터치 영역 44x44px */
    a, button, .page-link, .keyword-tag {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .post-card {
        cursor: pointer;
    }

    /* 스크롤 최적화 */
    html {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
        overflow-anchor: none; /* 모바일에서도 스크롤 점프 방지 */
    }

    /* 이미지 반응형 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 테이블 반응형 */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 긴 URL 줄바꿈 */
    .post-body {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ========================================
다크모드 지원 (선택사항)
======================================== */

@media (prefers-color-scheme: dark) {
    .request-box {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }

    .request-title {
        color: #f7fafc;
    }

    .request-question {
        color: #e2e8f0;
        background: rgba(45, 55, 72, 0.7);
    }

    .expert-opinion {
        background: linear-gradient(135deg, #3d2828 0%, #2d1a1a 100%);
        border-color: #5a3838;
    }

    .expert-opinion h2,
    .expert-opinion h3 {
        color: #fc8181;
    }

    .expert-opinion p {
        color: #e2e8f0;
    }
}


