/*
Theme Name: ReviewMaster Pro
Theme URI: https://reviewmaster.kr
Author: K.HYUN
Author URI: https://reviewmaster.kr
Description: 한국형 프리미엄 리뷰 매거진 테마 Ver 2.0 — 모바일 퍼스트, 40-70대 독자 최적화, 광고 개수 제한, 애드센스 자동광고 강제 차단, 접이식 목차, 큰 본문 폰트(18px), 초고속 로딩.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewmaster-pro
Tags: blog, news, magazine, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, theme-options
*/

/* ========================================
   Base Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a202c;
    background: #FFFFFF;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Design Tokens (Light Only)
   ======================================== */
:root {
    /* 컬러 */
    --c-bg: #FFFFFF;
    --c-bg-soft: #F7F9FB;
    --c-bg-card: #FFFFFF;
    --c-text: #1a202c;
    --c-text-soft: #4a5568;
    --c-text-muted: #718096;
    --c-border: #E2E8F0;
    --c-border-soft: #EDF2F7;
    
    /* 섹션 컬러 */
    --c-news: #DC2626;
    --c-news-bg: #FEF2F2;
    --c-review: #2563EB;
    --c-review-bg: #EFF6FF;
    --c-info: #059669;
    --c-info-bg: #ECFDF5;
    
    /* 쿠팡 컬러 */
    --c-coupang: #FF6B35;
    
    /* 레이아웃 */
    --container: 760px;
    --container-wide: 1200px;
    --header-h: 56px;
    
    /* 간격 */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
    --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
    --s-12: 48px; --s-16: 64px;
    
    /* 라운드 */
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

.site-main {
    min-height: 60vh;
    padding: var(--s-5) 0 var(--s-12);
}

/* ========================================
   Header - 56px, Sticky
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    transition: transform 0.3s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: var(--s-3);
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

/* 로고 */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

.site-logo img,
.custom-logo {
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.site-logo-mark {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--c-review), #3B82F6);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 15px;
}

.site-logo-text .em {
    color: var(--c-review);
}

/* 네비게이션 (데스크톱) */
.main-navigation {
    display: none;
    flex: 1;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: var(--s-1);
}

.main-navigation a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-soft);
    border-radius: var(--r-sm);
    transition: all 0.15s;
    min-height: 36px;
    line-height: 20px;
}

.main-navigation a:hover {
    color: var(--c-text);
    background: var(--c-bg-soft);
}

.main-navigation .current-menu-item > a {
    color: var(--c-review);
    background: var(--c-review-bg);
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--s-1);
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    color: var(--c-text-soft);
    transition: background 0.15s;
}

.icon-btn:active,
.icon-btn:hover {
    background: var(--c-bg-soft);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

/* 모바일 메뉴 토글 */
@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .header-inner {
        height: 64px;
    }
    :root { --header-h: 64px; }
}

/* 모바일 메뉴 드로어 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 200;
    transition: right 0.3s ease;
    padding: var(--s-5);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-6);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--c-border);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.mobile-menu a {
    display: block;
    padding: var(--s-4);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    border-radius: var(--r-sm);
    transition: background 0.15s;
    min-height: 48px;
    line-height: 20px;
}

.mobile-menu a:active {
    background: var(--c-bg-soft);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Reading Progress Bar
   ======================================== */
.reading-progress {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99;
    background: transparent;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--c-review), #3B82F6);
    transition: width 0.1s ease;
}

/* ========================================
   Home Hero (홈 상단 간단 배너)
   ======================================== */
.home-hero {
    padding: var(--s-8) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--c-bg-soft) 0%, transparent 100%);
    border-bottom: 1px solid var(--c-border-soft);
}

.home-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: var(--s-3);
}

.home-hero-title .em {
    color: var(--c-review);
}

.home-hero-sub {
    font-size: 15px;
    color: var(--c-text-soft);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .home-hero {
        padding: var(--s-16) 0 var(--s-10);
    }
    .home-hero-title {
        font-size: 38px;
    }
    .home-hero-sub {
        font-size: 17px;
    }
}

/* ========================================
   Section
   ======================================== */
.section {
    padding: var(--s-8) 0 var(--s-6);
}

.section + .section {
    border-top: 1px solid var(--c-border-soft);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-badge.b-news { background: var(--c-news-bg); color: var(--c-news); }
.section-badge.b-review { background: var(--c-review-bg); color: var(--c-review); }
.section-badge.b-info { background: var(--c-info-bg); color: var(--c-info); }

.section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

.section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-soft);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: var(--r-sm);
}

.section-more:active {
    background: var(--c-bg-soft);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    .section {
        padding: var(--s-10) 0;
    }
}

/* ========================================
   Post Cards (모바일: 세로 리스트, PC: 그리드)
   ======================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.post-item {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.2s;
}

.post-item:active,
.post-item:hover {
    border-color: var(--c-review);
    box-shadow: var(--shadow-md);
}

.post-item a {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--s-3);
    padding: var(--s-3);
    height: 100%;
}

.post-item-thumb {
    aspect-ratio: 1;
    background: var(--c-bg-soft);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.post-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-body {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    min-width: 0;
}

.post-item-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.post-item-cat.cat-news { color: var(--c-news); }
.post-item-cat.cat-review { color: var(--c-review); }
.post-item-cat.cat-info { color: var(--c-info); }

.post-item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    margin-top: 2px;
}

.post-item-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--c-text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-item-meta .sep {
    width: 2px;
    height: 2px;
    background: var(--c-text-muted);
    border-radius: 50%;
}

/* PC 그리드 */
@media (min-width: 768px) {
    .posts-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-5);
    }
    
    .post-item a {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .post-item-thumb {
        aspect-ratio: 16/10;
        border-radius: 0;
    }
    
    .post-item-body {
        padding: var(--s-4);
        gap: var(--s-2);
    }
    
    .post-item-title {
        font-size: 16px;
    }
}

/* ========================================
   Single Post - 최적화
   ======================================== */
.single-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

.post-header {
    padding: var(--s-5) 0 var(--s-4);
    border-bottom: 1px solid var(--c-border-soft);
    margin-bottom: var(--s-5);
}

.post-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    margin-bottom: var(--s-3);
    letter-spacing: 0.02em;
}

.post-category.cat-news { background: var(--c-news-bg); color: var(--c-news); }
.post-category.cat-review { background: var(--c-review-bg); color: var(--c-review); }
.post-category.cat-info { background: var(--c-info-bg); color: var(--c-info); }

.post-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: var(--c-text);
    margin-bottom: var(--s-4);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    font-size: 13px;
    color: var(--c-text-muted);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-meta-item svg {
    width: 13px;
    height: 13px;
}

.post-featured {
    margin: 0 0 var(--s-5);
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--c-bg-soft);
}

.post-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 34px;
    }
}

/* ========================================
   Table of Contents (접이식)
   ======================================== */
.toc {
    margin: 0 0 var(--s-6);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-4);
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    min-height: 48px;
    text-align: left;
}

.toc-toggle-left {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.toc-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--c-text-soft);
}

.toc-arrow {
    transition: transform 0.3s ease;
}

.toc.is-open .toc-arrow {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc.is-open .toc-content {
    max-height: 1000px;
}

.toc-list {
    padding: 0 var(--s-4) var(--s-4);
    counter-reset: toc;
}

.toc-list li {
    counter-increment: toc;
    border-top: 1px solid var(--c-border);
}

.toc-list li:first-child {
    border-top: 1px solid var(--c-border-soft);
    padding-top: var(--s-2);
    margin-top: var(--s-2);
}

.toc-list a {
    display: flex;
    gap: var(--s-3);
    padding: var(--s-3) 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-text);
    transition: color 0.15s;
    min-height: 44px;
    align-items: center;
}

.toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--c-review);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.toc-list a:active,
.toc-list a.is-active {
    color: var(--c-review);
}

/* ========================================
   Post Content - 40-70대 최적화 (본문 18px)
   ======================================== */
.post-content {
    font-size: 18px;  /* 👁️ 40-70대 가독성 */
    line-height: 1.9;  /* 👁️ 넉넉한 행간 */
    color: var(--c-text);
}

.post-content > * + * {
    margin-top: var(--s-5);
}

.post-content h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: var(--s-10);
    margin-bottom: var(--s-4);
    padding-top: var(--s-4);
    border-top: 3px solid var(--c-text);
    scroll-margin-top: 100px;
    line-height: 1.4;
}

.post-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: var(--s-6);
    margin-bottom: var(--s-3);
    color: var(--c-text);
    scroll-margin-top: 100px;
    line-height: 1.45;
}

.post-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-top: var(--s-5);
    margin-bottom: var(--s-2);
}

.post-content p {
    line-height: 1.9;
}

.post-content a {
    color: var(--c-review);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.post-content strong {
    font-weight: 700;
    color: var(--c-text);
}

.post-content blockquote {
    margin: var(--s-6) 0;
    padding: var(--s-4) var(--s-5);
    background: var(--c-bg-soft);
    border-left: 4px solid var(--c-review);
    border-radius: var(--r-md);
    font-size: 17px;
    color: var(--c-text-soft);
}

.post-content img {
    border-radius: var(--r-md);
    margin: var(--s-5) auto;
    box-shadow: var(--shadow-sm);
}

.post-content ul, .post-content ol {
    padding-left: 24px;
    list-style: revert;
}

.post-content ul li, .post-content ol li {
    margin-bottom: var(--s-2);
    line-height: 1.8;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s-5) 0;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.post-content table th, .post-content table td {
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    text-align: left;
}

.post-content table th {
    background: var(--c-bg-soft);
    font-weight: 700;
}

@media (min-width: 768px) {
    .post-content {
        font-size: 18px;
    }
    .post-content h2 { font-size: 26px; }
    .post-content h3 { font-size: 21px; }
}

/* ========================================
   Coupang Product Card - 큰 터치 영역
   ======================================== */
.coupang-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-4);
    background: var(--c-bg-card);
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    margin: var(--s-6) 0;
    position: relative;
    overflow: hidden;
}

.coupang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
}

.coupang-card-top {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--s-3);
}

.coupang-thumb {
    aspect-ratio: 1;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
}

.coupang-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--s-2);
}

.coupang-body {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.coupang-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    width: fit-content;
}

.coupang-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-text);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coupang-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-text);
    margin-top: var(--s-1);
}

.coupang-price .won {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-soft);
}

.coupang-discount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 2px;
}

.coupang-discount .rate {
    color: #FF6B35;
    font-weight: 800;
}

.coupang-discount .original {
    color: var(--c-text-muted);
    text-decoration: line-through;
}

.coupang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--r-sm);
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.coupang-btn:active {
    transform: scale(0.98);
}

.coupang-btn svg {
    width: 16px;
    height: 16px;
}

.coupang-disclosure {
    margin-top: var(--s-2);
    padding: var(--s-3);
    background: var(--c-bg-soft);
    border-radius: var(--r-sm);
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   Ad Slot - 깔끔한 광고 박스
   ======================================== */
.ad-wrap {
    margin: var(--s-6) 0;
    text-align: center;
    position: relative;
}

.ad-wrap::before {
    content: 'AD';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 8px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    color: var(--c-text-muted);
    letter-spacing: 0.1em;
    z-index: 2;
}

.ad-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-soft);
    border-radius: var(--r-sm);
    padding: var(--s-3);
    overflow: hidden;
}

.ad-inner .adsbygoogle {
    width: 100%;
    display: block;
}

.ad-placeholder {
    font-size: 12px;
    color: var(--c-text-muted);
    padding: 40px 20px;
}

/* ========================================
   Related Posts
   ======================================== */
.related-wrap {
    margin-top: var(--s-12);
    padding-top: var(--s-8);
    border-top: 1px solid var(--c-border);
}

.related-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: var(--s-5);
}

@media (min-width: 768px) {
    .related-title {
        font-size: 22px;
    }
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--s-10);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-soft);
    background: white;
}

.pagination .page-numbers:active {
    background: var(--c-bg-soft);
}

.pagination .current {
    background: var(--c-review);
    color: white;
    border-color: var(--c-review);
}

/* ========================================
   Tags
   ======================================== */
.post-tags {
    margin-top: var(--s-8);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    align-items: center;
}

.post-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-soft);
}

.post-tags a {
    padding: 6px 10px;
    background: var(--c-bg-soft);
    border-radius: 100px;
    font-size: 12px;
    color: var(--c-text-soft);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border);
    padding: var(--s-10) 0 var(--s-5);
    margin-top: var(--s-12);
}

.footer-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--s-5);
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.footer-desc {
    font-size: 13px;
    color: var(--c-text-soft);
    line-height: 1.6;
}

.footer-menus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: var(--s-3);
    color: var(--c-text);
    letter-spacing: 0.02em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.footer-col a {
    font-size: 13px;
    color: var(--c-text-soft);
    padding: 4px 0;
    display: inline-block;
}

.footer-bottom {
    font-size: 12px;
    color: var(--c-text-muted);
    text-align: center;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
    }
    .footer-about {
        flex: 1.5;
    }
    .footer-menus {
        flex: 2;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Sticky CTA (리뷰 글 하단 고정 버튼)
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--s-3) var(--s-4);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-border);
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--r-sm);
    min-height: 48px;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--c-text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 50;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
    }
}

/* ========================================
   Search / 404
   ======================================== */
.search-form {
    display: flex;
    gap: var(--s-2);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 15px;
    font-family: inherit;
    min-height: 48px;
    -webkit-appearance: none;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--c-review);
}

.search-form button {
    padding: 0 var(--s-5);
    background: var(--c-text);
    color: white;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    min-height: 48px;
}

/* ========================================
   Accessibility
   ======================================== */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 12px;
    background: var(--c-text);
    color: white;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

::selection {
    background: var(--c-review);
    color: white;
}

/* ========================================
   Print
   ======================================== */
@media print {
    .site-header, .site-footer,
    .ad-wrap, .sticky-cta, .back-to-top,
    .mobile-menu, .toc {
        display: none !important;
    }
    .post-content {
        font-size: 12pt;
    }
}
