/* ═══════════════════════════════════════════════════════════
   주소월드 — Main Stylesheet (White Theme)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    --bg-primary:    #f8fafc;
    --bg-secondary:  #f0f4ff;
    --white:         #ffffff;
    --border:        #e2e8f0;
    --accent:        #3b5bdb;
    --accent-light:  #eef2ff;
    --accent-dark:   #2f4bc8;
    --purple:        #7c3aed;
    --text-primary:  #1e293b;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --shadow-xs:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover:  0 8px 24px rgba(59,91,219,0.15);
    --radius:        14px;
    --radius-sm:     10px;
    --radius-xs:     8px;
    --header-h:      70px;
    --wrap:          1200px;
    --t:             0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── 레이아웃 ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
}
.section-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .icon { font-size: 1.4rem; }

/* ═══════════════════════════════════════
   헤더
═══════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

/* 로고 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}
.logo img { height: 70px; width: auto; object-fit: contain; }

/* 메인 네비 */
.nav-main {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-main > a {
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--t);
    white-space: nowrap;
}
.nav-main > a:hover,
.nav-main > a.active { color: var(--accent); background: var(--accent-light); }

/* 카테고리 드롭다운 */
.cat-dropdown { position: relative; }
.cat-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
}
.cat-dropdown-btn:hover { color: var(--accent); background: var(--accent-light); }
.cat-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 8px;
    z-index: 300;
}
.cat-dropdown:hover .cat-dropdown-menu,
.cat-dropdown-menu.open { display: block; }
.cat-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--t);
}
.cat-dropdown-menu a:hover { background: var(--accent-light); color: var(--accent); }
.cat-icon { font-size: 1rem; }

/* 헤더 검색 */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 6px 14px;
    transition: all var(--t);
}
.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
    background: var(--white);
}
.header-search svg { width: 16px; height: 16px; stroke: var(--text-muted); flex-shrink: 0; }
.header-search input {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-primary);
    width: 160px;
    outline: none;
}
.header-search input::placeholder { color: var(--text-muted); }

/* 햄버거 메뉴 */
.menu-toggle {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* 카테고리 인라인 바 (헤더 아래) */
.cat-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    max-width: var(--wrap);
    margin: 0 auto;
}
.cat-bar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--t);
    border: 1.5px solid transparent;
}
.cat-bar a:hover { color: var(--accent); background: var(--accent-light); }
.cat-bar a.active { color: var(--accent); background: var(--accent-light); border-color: rgba(59,91,219,0.2); }

/* ═══════════════════════════════════════
   히어로 섹션
═══════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f3f0ff 50%, var(--bg-primary) 100%);
    padding: 60px 0 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(59,91,219,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-desc {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.75;
}
.hero-search {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59,91,219,0.15);
}
.hero-search input {
    flex: 1;
    padding: 13px 20px;
    border: none;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}
.hero-search button {
    padding: 13px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--t);
}
.hero-search button:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════
   카테고리 탭
═══════════════════════════════════════ */
.cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
}
.cat-tab:hover, .cat-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════
   리뷰 카드 그리드
═══════════════════════════════════════ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    text-decoration: none;
}
.review-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.review-card-img {
    height: 160px;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.review-card-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.review-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.review-card-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.review-card-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   별점
═══════════════════════════════════════ */
.stars { display: inline-flex; gap: 1px; font-size: 0.85rem; }
.stars .filled { color: #f59e0b; }
.stars .empty  { color: #d1d5db; }
.rating-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 3px;
}

/* ═══════════════════════════════════════
   추천 버튼
═══════════════════════════════════════ */
.vote-wrap { display: flex; gap: 6px; }
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: all var(--t);
    font-family: inherit;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.vote-btn.voted { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════
   신뢰 사이트 카드
═══════════════════════════════════════ */
.trusted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.trusted-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
    color: var(--text-primary);
    text-decoration: none;
}
.trusted-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}
.trusted-img {
    width: 56px; height: 56px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.trusted-img img { width: 100%; height: 100%; object-fit: cover; }
.trusted-info { flex: 1; min-width: 0; }
.trusted-name {
    font-size: 0.95rem; font-weight: 800; color: var(--text-primary);
    margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trusted-desc {
    font-size: 0.78rem; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}
.trusted-tag {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.68rem; font-weight: 700; color: #16a34a;
    background: #f0fdf4; padding: 2px 8px; border-radius: 10px; margin-top: 4px;
}

/* ═══════════════════════════════════════
   리뷰 상세 페이지
═══════════════════════════════════════ */
.review-detail-hero {
    background: linear-gradient(135deg, var(--accent-light), #f3f0ff);
    padding: 40px 0;
    border-bottom: 1.5px solid var(--border);
}
.review-detail-inner {
    display: flex; align-items: flex-start; gap: 28px;
}
.review-detail-thumb {
    width: 120px; height: 120px;
    border-radius: var(--radius); overflow: hidden; flex-shrink: 0;
    background: var(--white); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.review-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-detail-info { flex: 1; }
.review-detail-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.review-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.review-content { font-size: 0.95rem; line-height: 1.9; color: var(--text-secondary); }
.review-content h2, .review-content h3 { color: var(--text-primary); margin: 28px 0 12px; font-weight: 800; }
.review-content ul, .review-content ol { padding-left: 20px; margin: 12px 0; }
.review-content li { margin-bottom: 6px; }
.review-content strong { color: var(--text-primary); }

/* ═══════════════════════════════════════
   빵 조각 (Breadcrumb)
═══════════════════════════════════════ */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   검색 결과 없음
═══════════════════════════════════════ */
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results p { font-size: 0.95rem; line-height: 1.7; }

/* ═══════════════════════════════════════
   페이지네이션
═══════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border);
    background: var(--white); color: var(--text-secondary);
    font-size: 0.88rem; font-weight: 600;
    transition: all var(--t); text-decoration: none;
}
.page-btn:hover, .page-btn.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ═══════════════════════════════════════
   푸터
═══════════════════════════════════════ */
.site-footer { background: #1e293b; color: #94a3b8; padding: 44px 0 24px; }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 40px;
    justify-content: space-between; margin-bottom: 32px;
}
.footer-brand-name { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-brand-desc { font-size: 0.82rem; max-width: 280px; line-height: 1.75; }
.footer-col-title { font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.82rem; color: #94a3b8; transition: color var(--t); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center; font-size: 0.78rem;
}
.footer-copy { color: #64748b; }
.footer-disclaimer { color: #475569; font-size: 0.74rem; }

/* ═══════════════════════════════════════
   유틸리티
═══════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-accent  { background: var(--accent-light); color: var(--accent); }
.badge-green   { background: #f0fdf4; color: #16a34a; }
.badge-orange  { background: #fff7ed; color: #ea580c; }
.font-bold { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none; }

/* ═══════════════════════════════════════
   반응형
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .nav-main > a { padding: 7px 10px; font-size: 0.85rem; }
}
@media (max-width: 768px) {
    .section { padding: 36px 0; }
    .hero { padding: 40px 0 32px; }
    .review-grid { grid-template-columns: 1fr; }
    .trusted-grid { grid-template-columns: 1fr; }
    .review-detail-inner { flex-direction: column; }
    .review-detail-thumb { width: 80px; height: 80px; }
    .nav-main { display: none; }
    .nav-main.open {
        display: flex; flex-direction: column; position: absolute;
        top: var(--header-h); left: 0; right: 0;
        background: var(--white); border-bottom: 1.5px solid var(--border);
        padding: 12px 20px; box-shadow: var(--shadow-sm); z-index: 199;
    }
    .menu-toggle { display: block; }
    .header-search input { width: 100px; }
    .footer-inner { flex-direction: column; gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   관리자 패널
═══════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--header-h));
    background: #f1f5f9;
}
.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #1e293b;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.admin-sidebar a {
    display: block;
    padding: 12px 24px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.18s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.07);
    border-left-color: #3b5bdb;
}
.admin-content { flex: 1; padding: 32px; overflow-y: auto; }

/* 통계 카드 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-num { font-size: 2rem; font-weight: 900; color: #3b5bdb; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; color: #64748b; font-weight: 600; }

/* 관리자 테이블 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1.5px solid #e2e8f0;
    font-size: 0.87rem;
}
.admin-table th {
    padding: 12px 16px;
    background: #f8fafc;
    color: #374151;
    font-weight: 700;
    text-align: left;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
}
.admin-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

/* 관리자 버튼 */
.btn-admin {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.18s; font-family: inherit;
}
.btn-primary   { background: #3b5bdb; color: #fff; }
.btn-primary:hover  { background: #2f4bc8; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-secondary { background: #f1f5f9; color: #374151; border: 1.5px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }

/* 관리자 폼 */
.admin-form {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 800px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem; font-weight: 700; color: #374151; margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #3b5bdb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b5bdb, #7c3aed);
    color: #fff; border: none; border-radius: 10px;
    font-size: 0.95rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59,91,219,0.25);
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,91,219,0.35); }

/* 플래시 메시지 */
.flash { padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; margin-bottom: 20px; }
.flash-success { background: #f0fdf4; color: #16a34a; border: 1.5px solid #86efac; }
.flash-error   { background: #fef2f2; color: #dc2626; border: 1.5px solid #fca5a5; }

.admin-section-title {
    font-size: 1rem; font-weight: 800; color: #1e293b;
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0;
}

/* 관리자 반응형 */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%; position: static; height: auto;
        flex-direction: row; flex-wrap: wrap; padding: 10px;
    }
    .admin-sidebar a { padding: 8px 14px; border-left: none; border-radius: 8px; font-size: 0.82rem; }
    .admin-content { padding: 20px 16px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
/* ═══════════════════════════════════════════════════════
   리뷰 등록 폼 전용 스타일
═══════════════════════════════════════════════════════ */

/* select 공통 */
.form-select, select.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
select.form-input:focus, .form-select:focus {
    border-color: #3b5bdb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}

/* 폼 2열 행 */
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; }

/* 에디터 툴바 */
.editor-toolbar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}
.editor-toolbar button {
    padding: 5px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}
.editor-toolbar button:hover {
    background: #3b5bdb;
    color: #fff;
    border-color: #3b5bdb;
}

/* 별점 선택 — 가로 */
.rating-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
}
.rating-select > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rating-select input[type="radio"] {
    accent-color: #3b5bdb;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.rating-select label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    margin-bottom: 0;
}
.rating-select > div:has(input:checked) label {
    color: #3b5bdb;
}

/* 파일 업로드 */
.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}
.file-upload:hover {
    border-color: #3b5bdb;
    background: #eef2ff;
    color: #3b5bdb;
}
.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.file-preview {
    max-width: 200px;
    max-height: 140px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
}

/* 리뷰 폼 래퍼 */
.review-form {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 860px;
}

/* review-form 내부 form-group 기본 마진 */
.review-form .form-group { margin-bottom: 20px; }
.review-form .form-group:last-child { margin-bottom: 0; }
.review-form .form-group > label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
}

/* ═══════════════════════════════════════════════════════
   홈페이지 전용 스타일
═══════════════════════════════════════════════════════ */

/* ── Hero 배지 ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59,91,219,0.1);
    border: 1.5px solid rgba(59,91,219,0.2);
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}
.pulse {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-anim 1.5s infinite;
    flex-shrink: 0;
}
@keyframes pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── Hero 제목 ── */
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.25;
    margin-bottom: 14px;
}
.hero h1 span { color: var(--accent); }
.hero > .wrap > p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* ── Hero 검색창 SVG ── */
.hero-search svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--text-muted);
}
.hero-search input {
    flex: 1;
    padding: 13px 16px;
    border: none;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    outline: none;
}
.hero-search button {
    padding: 13px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--t);
    white-space: nowrap;
}
.hero-search button:hover { background: var(--accent-dark); }

/* ── Hero 통계 ── */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 32px;
    box-shadow: var(--shadow-xs);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stat {
    flex: 1;
    text-align: center;
}
.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 12px;
}

/* ── 카테고리 그리드 ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: var(--text-primary);
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--accent-light);
}
.cat-emoji { font-size: 1.8rem; line-height: 1; }
.cat-label { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }

/* ── 리뷰 카드 그리드 ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.review-item-wrap {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--t);
    box-shadow: var(--shadow-xs);
}
.review-item-wrap:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* 카드 썸네일 */
.card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.review-item-wrap:hover .card-thumb img { transform: scale(1.04); }

/* 카드 배지 */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}
.card-trusted {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: #f0fdf4;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    border: 1px solid #86efac;
}

/* 카드 바디 */
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-name { font-size: 1rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.3px; }
.card-excerpt { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ── 태그 ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.tag-item {
    display: inline-flex;
    padding: 2px 9px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--t);
}
.tag-item:hover { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════════════
   리뷰 상세 페이지
═══════════════════════════════════════════════════════ */
.review-hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, #f3f0ff 100%);
    padding: 0 0 36px;
    border-bottom: 1.5px solid var(--border);
}
.review-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin-bottom: 28px;
}
.review-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: rgba(59,91,219,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}
.review-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 10px;
    line-height: 1.25;
}
.review-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}
.review-url a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background var(--t);
}
.review-url a:hover { background: var(--accent-dark); }
.review-info { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0; font-size: 0.82rem; color: var(--text-muted); }
.review-rating-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.review-rating-big { font-size: 2.4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.review-detail {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 28px 0;
    box-shadow: var(--shadow-xs);
}
.review-content { font-size: 0.97rem; line-height: 1.9; color: var(--text-secondary); }
.review-content h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin: 32px 0 12px; border-left: 4px solid var(--accent); padding-left: 12px; }
.review-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 24px 0 10px; }
.review-content ul, .review-content ol { padding-left: 22px; margin: 12px 0; }
.review-content li { margin-bottom: 7px; }
.review-content strong { color: var(--text-primary); font-weight: 700; }
.review-content a { color: var(--accent); text-decoration: underline; }

/* ── 댓글 ── */
.comments-section { margin-top: 40px; }
.comment-form { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.comment-header { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.comment-item:last-child { border-bottom: none; }
.comment-nick { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.comment-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin-top: 4px; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ── 별점 선택 (댓글) ── */
.star-select { display: flex; gap: 4px; margin-bottom: 12px; }
.star-select input { display: none; }
.star-select label { font-size: 1.4rem; cursor: pointer; color: #d1d5db; transition: color 0.15s; }
.star-select label:hover,
.star-select label:hover ~ label,
.star-select input:checked ~ label { color: #f59e0b; }

/* ── 검색 페이지 ── */
.search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--t);
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.search-result-thumb { width: 80px; height: 60px; border-radius: var(--radius-xs); overflow: hidden; flex-shrink: 0; background: var(--accent-light); }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; }
.search-result-name { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.search-result-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }

/* ── 반응형 보완 ── */
@media (max-width: 768px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cat-card { padding: 12px 8px; }
    .cat-emoji { font-size: 1.4rem; }
    .card-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .hero-stat-divider { width: 80px; height: 1px; margin: 0; }
    .review-detail { padding: 20px 16px; }
    .review-image { max-height: 240px; }
}

/* ═══════════════════════════════════════════════════════
   리뷰 상세 페이지 (rv-* 클래스)
═══════════════════════════════════════════════════════ */

/* 풀너비 히어로 이미지 */
.rv-hero-img {
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    background: var(--accent-light);
}
.rv-hero-img img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* 메타 바 (이미지 좌 + 정보 우) */
.rv-meta-bar {
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 28px 0;
}
.rv-meta-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

/* 왼쪽 이미지 */
.rv-left-img {
    width: 380px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--accent-light);
}
.rv-left-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.rv-left-img--icon {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* 오른쪽 정보 */
.rv-right-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.rv-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--accent-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    width: fit-content;
    text-decoration: none;
}
.rv-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.25;
}
.rv-tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
.rv-info-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* 별점 박스 */
.rv-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 130px;
    flex-shrink: 0;
}
.rv-rating-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.rv-rating-stars { font-size: 0.95rem; }
.rv-rating-sub { font-size: 0.74rem; color: var(--text-muted); text-align: center; margin-top: 2px; }

/* 액션 영역 */
.rv-actions { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.rv-excerpt { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }
.rv-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background var(--t);
    width: fit-content;
    text-decoration: none;
}
.rv-visit-btn:hover { background: var(--accent-dark); color: #fff; }
.rv-stats {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 본문 영역 */
.rv-body { padding: 36px 0 60px; }
.rv-content {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xs);
    font-size: 0.97rem;
    line-height: 1.95;
    color: var(--text-primary);
}

/* 기존 다크모드 인라인 스타일 오버라이드 */
.rv-content * {
    color: inherit !important;
    background-color: transparent !important;
}
.rv-content h1, .rv-content h2 {
    color: var(--text-primary) !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 28px 0 12px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    line-height: 1.4;
    background: transparent !important;
}
.rv-content h3 {
    color: var(--text-primary) !important;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 20px 0 8px;
}
.rv-content p {
    color: var(--text-secondary) !important;
    margin-bottom: 14px;
}
.rv-content strong, .rv-content b {
    color: var(--text-primary) !important;
    font-weight: 700;
}
.rv-content em, .rv-content i {
    color: var(--accent) !important;
}
.rv-content a {
    color: var(--accent) !important;
    text-decoration: underline;
}
.rv-content ul, .rv-content ol {
    padding-left: 22px;
    margin: 12px 0;
    color: var(--text-secondary) !important;
}
.rv-content li { margin-bottom: 7px; color: var(--text-secondary) !important; }
.rv-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    background: var(--accent-light) !important;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin: 16px 0;
    color: var(--text-secondary) !important;
}

/* 댓글 */
.rv-comments { }
.rv-comments-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.rv-comment-form {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}
.rv-comment-form-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.rv-star-wrap label { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.rv-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.rv-form-row .form-input { flex: 1; }
.rv-textarea { width: 100%; min-height: 100px; resize: vertical; margin-bottom: 10px; }
.rv-form-submit { text-align: right; }
.rv-comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.rv-comment-item:last-child { border-bottom: none; }
.rv-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.rv-comment-nick { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.rv-comment-stars { font-size: 0.82rem; }
.rv-comment-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.rv-comment-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.rv-no-comments { text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.9rem; }

/* 반응형 */
@media (max-width: 768px) {
    .rv-hero-img { max-height: 240px; }
    .rv-hero-img img { max-height: 240px; }
    .rv-info-row { flex-direction: column; }
    .rv-rating-box { flex-direction: row; align-items: center; padding: 12px 16px; min-width: auto; }
    .rv-content { padding: 20px 16px; }
    .rv-form-row { flex-direction: column; }
}

/* rv 레이아웃 반응형 보완 */
@media (max-width: 768px) {
    .rv-meta-inner { flex-direction: column; gap: 16px; }
    .rv-left-img { width: 100%; }
    .rv-left-img img { height: 200px; }
}
