/* ====================================================================
   BestLiveCam.kr — Korean cam-review site
   Design: Korean minimalist, mobile-first, Pretendard font
   ==================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    /* Brand colors — KR-style: clean white + bold accent */
    --color-accent: #e91e3d;       /* Korean cam vertical red */
    --color-accent-soft: #ffe9ec;
    --color-accent-dark: #b8152e;
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fa;       /* Naver-style soft gray */
    --color-bg-card: #ffffff;
    --color-border: #e5e7eb;
    --color-border-strong: #d1d5db;
    --color-success: #16a34a;
    --color-warning: #f59e0b;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.10);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    word-break: keep-all;       /* CRITICAL for Korean text — break by words */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === Disclosure bar (top) === */
.disclosure-bar {
    background: #fff8ec;
    border-bottom: 1px solid #f0e1c0;
    color: #6b5520;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.5rem 1rem;
}
.disclosure-bar a { color: #6b5520; text-decoration: underline; }

/* === Site Header === */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.site-logo-mark {
    width: 32px; height: 32px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.site-nav {
    display: none;
    gap: 1.4rem;
    flex-grow: 1;
    margin-left: 1.5rem;
}
@media (min-width: 760px) {
    .site-nav { display: flex; }
    .site-nav-toggle { display: none; }
}
.site-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a.is-19 {
    color: var(--color-accent);
    font-weight: 700;
}

.site-nav-toggle {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.site-nav-toggle svg { width: 22px; height: 22px; stroke: var(--color-text); stroke-width: 2; }

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 1rem 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-bg-alt);
    text-decoration: none;
    font-weight: 500;
}
.mobile-menu a.is-19 { color: var(--color-accent); font-weight: 700; }

/* === Container === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

/* === Breadcrumbs === */
.breadcrumbs {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 1rem 0 0.5rem;
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: underline; }
.breadcrumbs span { margin: 0 0.4rem; color: var(--color-text-light); }

/* === Hero === */
.hero {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, #fafafb 0%, #fff 100%);
    border-bottom: 1px solid var(--color-border);
}
.hero h1 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    max-width: 760px;
}
@media (min-width: 760px) { .hero h1 { font-size: 2.1rem; } }
.hero p {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 1rem;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 0.8rem;
}
.hero-trust .stars { color: #f5a623; letter-spacing: 0.05em; }

/* === Section === */
.section { padding: 2rem 0; }
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.section-subtitle { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }

/* === Cards grid (homepage) === */
.cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.card a { color: inherit; text-decoration: none; display: block; }
.card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f0f0ec, #e0e0d8);
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}
.card-tag.is-19 {
    background: var(--color-accent);
    color: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.card-excerpt { color: var(--color-text-muted); font-size: 0.86rem; line-height: 1.5; }

/* === Article === */
article header.article-header { margin-bottom: 1.5rem; }
.article-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
@media (min-width: 760px) { .article-header h1 { font-size: 2.2rem; } }
.article-meta {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.article-meta-author { display: flex; align-items: center; gap: 0.5rem; }
.article-meta-author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg-alt);
}
.article-meta-divider { color: var(--color-text-light); }

.article-content { max-width: 760px; }
.article-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.6rem;
}
.article-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}
.article-content ul, .article-content ol {
    margin: 0 0 1.25rem 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { font-weight: 700; }
.article-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

/* === Lede === */
.article-content .lede {
    font-size: 1.05rem;
    color: var(--color-text);
    border-left: 4px solid var(--color-accent);
    padding: 0.85rem 1rem;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

/* === Affiliate disclosure inside article === */
.affiliate-disclosure {
    background: #fff8ec;
    border: 1px solid #f0e1c0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: #6b5520;
    margin: 1rem 0;
}

/* === Article hero === */
.article-hero {
    margin: 0 0 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 21 / 9;       /* compact panoramic — ниже чем 16/9 */
    max-height: 280px;          /* hard cap на десктопе */
    background: var(--color-bg-alt);
}
.article-hero img,
.article-hero picture { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
    .article-hero { aspect-ratio: 16 / 9; max-height: 200px; }
}

/* === Tables === */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
}
@media (min-width: 700px) { .article-content table { display: table; } }
.article-content th, .article-content td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
.article-content th {
    background: var(--color-bg-alt);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}
.article-content tr.is-best { background: #fff8f9; }
.article-content tr.is-best td:first-child { font-weight: 700; }

/* ====================================================================
   QUICK PICKS — конверсионный блок (горизонтальный scroll)
   ==================================================================== */
.quick-picks {
    margin: 1.75rem 0 2.25rem;
    padding: 1.4rem 1.25rem 1.5rem;
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
    border: 1px solid #ebe5dc;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.quick-picks-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin: 0 0 0.4rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--color-accent);
    line-height: 1.3;
}
.quick-picks-sub {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.quick-picks-sub a { color: var(--color-text-muted); text-decoration: underline; }

.quick-picks-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.4rem 0.25rem 0.85rem;
    margin: -0.4rem -0.25rem 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(233,30,61,0.35) transparent;
}
.quick-picks-grid::-webkit-scrollbar { height: 6px; }
.quick-picks-grid::-webkit-scrollbar-track { background: transparent; }
.quick-picks-grid::-webkit-scrollbar-thumb { background: rgba(233,30,61,0.3); border-radius: 3px; }

.quick-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 min(82vw, 240px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #fff;
    border: 1px solid #ebe5dc;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
@media (min-width: 600px) {
    .quick-pick { flex: 1 0 220px; max-width: 320px; }
}
.quick-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4cdc1; }
.quick-pick.is-best {
    border-color: var(--color-accent);
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
    box-shadow: 0 1px 2px rgba(233,30,61,0.06), 0 4px 14px rgba(233,30,61,0.07);
}
.quick-pick-badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border: 1px solid #ffd1d6;
    white-space: nowrap;
}
.quick-pick.is-runner .quick-pick-badge { color: #4a4540; background: #f4f1ec; border-color: #e3ddd1; }
.quick-pick.is-pick .quick-pick-badge { color: #6b665f; background: #f7f5f0; border-color: #ebe6d9; }

.quick-pick-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.25rem 0 0.7rem;
    padding-right: 5rem;
}
.quick-pick-logo {
    width: 42px; height: 42px;
    border-radius: 9px;
    object-fit: contain;
    background: #faf8f3;
    padding: 5px;
    border: 1px solid #ece6db;
    flex-shrink: 0;
}
.quick-pick-title { display: flex; flex-direction: column; min-width: 0; }
.quick-pick-name { font-size: 1.02rem; font-weight: 800; color: #1a1a1a; line-height: 1.15; letter-spacing: -0.01em; }
.quick-pick-rating { display: inline-flex; align-items: center; gap: 0.32rem; font-size: 0.74rem; color: #888; margin-top: 0.22rem; font-weight: 600; }
.quick-pick-stars { color: #f5a623; letter-spacing: 0.04em; font-size: 0.8rem; }

.quick-pick-tag {
    font-size: 0.86rem;
    color: #4a4540;
    line-height: 1.5;
    margin: 0 0 1rem;
    flex-grow: 1;
}
.quick-pick-cta {
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    margin-top: auto;
    box-shadow: 0 2px 5px rgba(233,30,61,0.18), inset 0 -2px 0 rgba(0,0,0,0.08);
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.quick-pick-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(233,30,61,0.28), inset 0 -2px 0 rgba(0,0,0,0.1);
    color: #fff !important;
}
.quick-pick-cta:active { transform: translateY(0); }
.quick-pick-cta-note {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* === 19+ banner / age-gate badge === */
.adult-zone-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.adult-zone-cta-text { flex-grow: 1; }
.adult-zone-cta h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; color: #fff; }
.adult-zone-cta p { font-size: 0.85rem; color: #d4d4d4; margin: 0; }
.adult-zone-cta-btn {
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.9rem;
    white-space: nowrap;
}
.adult-zone-cta-btn:hover { background: var(--color-accent-dark); }

/* === Author bio === */
.author-bio {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-bg-alt);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    margin: 2rem 0 1rem;
}
.author-bio-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg);
    flex-shrink: 0;
}
.author-bio-text { flex-grow: 1; min-width: 0; }
.author-bio-name { font-weight: 700; font-size: 1rem; }
.author-bio-title { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: 0.4rem; }
.author-bio-desc { font-size: 0.86rem; color: var(--color-text); line-height: 1.5; }

/* === Footer === */
.site-footer {
    background: #fafafb;
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-mark { font-size: 1.1rem; font-weight: 800; color: var(--color-text); margin-bottom: 0.5rem; }
.footer-brand-desc { font-size: 0.82rem; line-height: 1.5; max-width: 280px; }
.site-footer h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--color-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-bottom {
    max-width: 1180px;
    margin: 1.75rem auto 0;
    padding: 1.25rem 1rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-light);
}
.footer-bottom a { color: var(--color-text-muted); text-decoration: underline; }

/* === Age Gate Modal === */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.age-gate-overlay.is-hidden { display: none; }
.age-gate-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.age-gate-icon {
    width: 64px; height: 64px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.age-gate-modal h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.age-gate-modal p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.age-gate-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}
@media (min-width: 480px) { .age-gate-buttons { flex-direction: row; } }
.age-gate-btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 0;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.age-gate-btn-confirm {
    background: var(--color-accent);
    color: #fff;
}
.age-gate-btn-confirm:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.age-gate-btn-deny {
    background: #f3f4f6;
    color: #4b5563;
}
.age-gate-btn-deny:hover { background: #e5e7eb; color: #1f2937; text-decoration: none; }
.age-gate-fineprint {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 1.25rem;
    line-height: 1.5;
}

/* === Utility === */
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

@media print {
    .site-header, .site-footer, .age-gate-overlay, .disclosure-bar { display: none; }
    body { font-size: 12pt; }
}
