/**
 * sheslab — Landing V2/V3 styles
 * 매거진 톤 유지 + 트위터식 가시성
 * V3 (2026-05-19): 글로브 축소 + V2 요소 첫 화면 hook
 */

/* ─────────────────────────────────────────────────────────────────────
 * V4 — Globe Dashboard (실시간 arc + 카드 stream 제거)
 *  글로브를 핵심 시각 자산으로 유지 (축소 X)
 *  → 실시간 활동 arc로 "살아있는 글로브" 인상
 * ───────────────────────────────────────────────────────────────────── */
.globe-section--compact {
    margin: 14px 0 18px;
    grid-template-columns: 1fr !important;  /* 카드 stream 제거 — 글로브만 */
}
.globe-section--compact .globe-wrap {
    max-width: 360px;    /* 480 → 360 (약간 축소, 여전히 hero급) */
    margin: 0 auto;
}
.globe-section--compact .feed-stream {
    display: none;  /* 정적 카드 stream 제거 — Latest whispers 섹션이 대체 */
}

/* Arc 광선 (실시간 활동) — V4-1: 5.5s로 연장 (가독성 ↑) */
.globe-arc {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    opacity: 0;
    pointer-events: none;
    animation: globe-arc-pulse 5.5s cubic-bezier(.4, 0, .2, 1) forwards;
}
.globe-arc--tip     { stroke: #B5739E; }  /* 분홍 — 글 */
.globe-arc--comment { stroke: #7E6CC4; }  /* 보라 — 댓글 */
.globe-arc--like    { stroke: #D9A155; }  /* 금색 — 좋아요 */

.globe-pulse {
    fill: rgba(181, 115, 158, 0.6);
    opacity: 0;
    pointer-events: none;
    animation: globe-pulse-grow 2s ease-out forwards;
}
.globe-pulse--tip     { fill: rgba(181, 115, 158, 0.6); }
.globe-pulse--comment { fill: rgba(126, 108, 196, 0.6); }
.globe-pulse--like    { fill: rgba(217, 161, 85, 0.6); }

@keyframes globe-arc-pulse {
    0%   { opacity: 0;    stroke-dasharray: 0 200; }
    15%  { opacity: 0.85; stroke-dasharray: 30 170; }
    50%  { opacity: 0.95; stroke-dasharray: 120 80; }
    85%  { opacity: 0.45; stroke-dasharray: 200 0; }
    100% { opacity: 0;    stroke-dasharray: 200 0; }
}
@keyframes globe-pulse-grow {
    0%   { opacity: 0.9; r: 2; }
    100% { opacity: 0;   r: 14; }
}

/* 활동 범례 (글로브 아래) */
.globe-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.78rem;
    color: var(--muted, #888);
}
.globe-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.globe-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.globe-legend-dot--tip     { background: #B5739E; }
.globe-legend-dot--comment { background: #7E6CC4; }
.globe-legend-dot--like    { background: #D9A155; }

@media (prefers-reduced-motion: reduce) {
    .globe-arc, .globe-pulse { animation: none; opacity: 0.7; }
}

/* ─────────────────────────────────────────────────────────────────────
 * V3 — Join Hero (마스트헤드 직후 가입 CTA 영역)
 * ───────────────────────────────────────────────────────────────────── */
.join-hero {
    max-width: 480px;
    margin: 18px auto 8px;
    padding: 0 20px;
    text-align: center;
}
.join-hero .join-cta {
    margin: 0 auto 6px;
}

/* ─────────────────────────────────────────────────────────────────────
 * Sub-headcopy (AI Companion 차별화 암시 카피)
 * ───────────────────────────────────────────────────────────────────── */
.mast-subheadcopy {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--muted, #6b6b6b);
    text-align: center;
    margin: 8px 0 4px;
    letter-spacing: 0.01em;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ─────────────────────────────────────────────────────────────────────
 * Trending hashtag strip
 * ───────────────────────────────────────────────────────────────────── */
.trending-strip {
    max-width: 720px;
    margin: 24px auto 8px;
    padding: 0 20px;
    text-align: center;
}
.trending-label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--muted, #888);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    justify-content: center;
}
.trending-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(181, 115, 158, 0.08);
    color: var(--primary, #B5739E);
    border: 1px solid rgba(181, 115, 158, 0.18);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 120ms ease;
}
.trending-chip:hover {
    background: rgba(181, 115, 158, 0.16);
    text-decoration: none;
}
.trending-loading,
.trending-empty {
    color: var(--muted, #aaa);
    font-size: 0.82rem;
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────────
 * Join CTA (회원 가입 secondary)
 * ───────────────────────────────────────────────────────────────────── */
.join-cta {
    display: block;
    margin: 14px auto 6px;
    padding: 12px 28px;
    background: var(--primary, #B5739E);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 4px 14px rgba(181, 115, 158, 0.25);
}
.join-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(181, 115, 158, 0.35);
}
.join-cta-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted, #999);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}
.join-cta-hint.logged-in {
    color: var(--primary, #B5739E);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────
 * Latest whispers feed (트위터식)
 * ───────────────────────────────────────────────────────────────────── */
.latest-feed {
    max-width: 640px;
    margin: 32px auto 24px;
    padding: 0 20px;
}
.latest-feed-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    text-align: center;
}
.latest-feed-list {
    display: flex;
    flex-direction: column;
}
.whisper-card {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 120ms ease;
}
.whisper-card:hover {
    background: rgba(0, 0, 0, 0.02);
}
.whisper-card:last-child {
    border-bottom: none;
}
.whisper-head {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 4px;
}
.whisper-nick {
    font-weight: 600;
    color: var(--primary, #B5739E);
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.whisper-nick:hover { text-decoration: underline; }
.whisper-meta {
    color: var(--muted, #999);
    font-size: 0.74rem;
}
.whisper-body {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    color: var(--text, #1a1a1a);
    word-break: break-word;
    white-space: pre-wrap;
}
.whisper-foot {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.whisper-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--muted, #888);
}
.whisper-icon {
    font-size: 0.92rem;
}
.latest-feed-loading,
.latest-feed-empty {
    text-align: center;
    color: var(--muted, #999);
    font-size: 0.84rem;
    padding: 20px 0;
    font-style: italic;
}
.latest-feed-more {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--primary, #B5739E);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}
.latest-feed-more:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .mast-subheadcopy { font-size: 0.95rem; padding: 0 16px; }
    .trending-strip { padding: 0 16px; }
    .latest-feed-title { font-size: 1.2rem; }
    .whisper-body { font-size: 0.92rem; }
    .join-cta { font-size: 0.9rem; padding: 11px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .join-cta { transition: none; }
    .whisper-card { transition: none; }
}
