/* sheslab — MAKE-UP 매거진 + UGC 보드
 * IP 리스크 방어: 텍스트 기반 UGC, 이미지는 본인 사진만 + 동의
 * 디자인: Bodoni Moda 매거진 톤 + 종이 위에 잉크
 */

.mu-wrap { padding: 14px 24px 100px; max-width: 720px; margin: 0 auto; }
.mu-back {
    display: inline-block; margin-bottom: 22px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.74rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted, #888);
    text-decoration: none;
}

/* ───── HERO 매거진 ───── */
.mu-hero {
    text-align: center;
    padding: 32px 0 36px;
    border-bottom: 1px solid rgba(0,0,0,0.10);
    position: relative;
}
.mu-edition {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700; font-size: 0.72rem;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-muted, #5A5A5A);
    margin-bottom: 18px;
}
.mu-title {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
    font-weight: 900;
    font-optical-sizing: auto;
    font-size: clamp(3rem, 12vw, 5.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.92;
    color: var(--text, #1A1A1A);
    margin: 0 0 14px;
    background: linear-gradient(180deg, var(--text, #1A1A1A) 0%, var(--primary-dark, #8E5878) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mu-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    color: var(--text-muted, #5A5A5A);
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.5;
}

/* ───── 섹션 헤더 (chapter divider) ───── */
.mu-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 40px 0 22px;
}
.mu-section-head::before,
.mu-section-head::after {
    content: '';
    width: 36px; height: 1px;
    background: rgba(181, 115, 158, 0.40);
}
.mu-section-head h2 {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(0.84rem, 2.4vw, 0.96rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-dark, #8E5878);
    margin: 0;
}

/* ───── 4가지 진입 인덱스 (Editorial) ───── */
.mu-index { display: flex; flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.10);
    border-bottom: 1px solid rgba(0,0,0,0.10);
}
.mu-index-row {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 22px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-decoration: none; color: inherit;
    cursor: pointer;
}
.mu-index-row:last-child { border-bottom: none; }
.mu-index-row:hover { background: rgba(0,0,0,0.025); }
.mu-index-num {
    font-family: 'Bodoni Moda', serif;
    font-weight: 900; font-size: 1.5rem;
    color: var(--text, #1A1A1A);
    min-width: 32px; line-height: 1;
}
.mu-index-body { flex: 1; min-width: 0; }
.mu-index-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700; font-size: 1rem;
    color: var(--text, #1A1A1A);
    margin-bottom: 4px;
}
.mu-index-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.88rem;
    color: var(--text-muted, #5A5A5A);
    line-height: 1.55;
    word-break: keep-all;
}
.mu-index-arrow {
    color: rgba(0,0,0,0.35);
    font-size: 1.3rem;
    align-self: center;
    padding-left: 8px;
}

/* ───── 룩 피드 카드 (UGC) ───── */
.mu-feed {
    display: flex; flex-direction: column;
    margin-top: 8px;
}
.mu-look-card {
    padding: 18px 4px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.15s;
}
.mu-look-card:hover { background: rgba(0,0,0,0.02); }
.mu-look-card:last-child { border-bottom: none; }

.mu-look-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.mu-look-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-soft, #FFE5EC), var(--lilac-soft, #F2EBF5));
    border: 1px solid rgba(232, 164, 184, 0.30);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.mu-look-byline {
    display: flex; flex-direction: column;
    gap: 1px; flex: 1; min-width: 0;
}
.mu-look-nick {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--primary-dark, #8E5878);
    line-height: 1.2;
}
.mu-look-time {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.74rem;
    color: var(--text-muted, #888);
}

.mu-look-name {
    font-family: 'Bodoni Moda', 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 3.4vw, 1.4rem);
    letter-spacing: 0.04em;
    color: var(--text, #1A1A1A);
    margin: 0 0 6px;
    line-height: 1.2;
}
.mu-look-mood {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    margin-bottom: 12px;
}

.mu-look-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.02);
    padding: 12px 14px;
    border-left: 2px solid var(--secondary, #E8A4B8);
    margin: 0 0 14px;
}
.mu-look-step {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text, #1A1A1A);
    word-break: keep-all;
}
.mu-look-step-label {
    display: inline-block;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark, #8E5878);
    margin-right: 8px;
    min-width: 50px;
}

.mu-look-story {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text, #1A1A1A);
    margin: 0 0 12px;
    word-break: keep-all;
}

.mu-look-actions {
    display: flex; align-items: center; gap: 4px;
    margin-left: -8px;
}
.mu-look-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted, #888);
    font-family: 'Pretendard', sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.mu-look-action:hover { background: rgba(232, 164, 184, 0.10); }
.mu-look-action.like.liked { color: var(--secondary, #E8A4B8); font-weight: 700; }
.mu-look-action.like.liked .mu-icon { transform: scale(1.1); }

.mu-look-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(212, 165, 116, 0.10);
    border: 1px solid rgba(212, 165, 116, 0.30);
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--accent, #D4A574);
    margin-left: 8px;
    vertical-align: middle;
}

/* ───── Share Look CTA ───── */
.mu-share-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    margin: 24px 0 32px;
    background: var(--text, #1A1A1A);
    color: #FFF;
    text-decoration: none;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.mu-share-cta:hover { background: #2A2A2A; }

/* ───── Share Modal (텍스트 기반 — IP 안전) ───── */
.mu-share-back {
    position: fixed; inset: 0;
    background: rgba(58, 32, 50, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 950;
    display: none;
    align-items: flex-end; justify-content: center;
}
.mu-share-back.open { display: flex; }
@media (min-width: 720px) { .mu-share-back { align-items: center; } }

.mu-share-modal {
    background: #FEFCFA;
    border-radius: 16px 16px 0 0;
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    padding: 22px 22px 24px;
    box-shadow: 0 -10px 40px rgba(142, 88, 120, 0.22);
    animation: muUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 720px) {
    .mu-share-modal { border-radius: 16px; max-height: 80vh; }
}
@keyframes muUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mu-share-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mu-share-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text, #1A1A1A);
    margin: 0;
}
.mu-share-close {
    appearance: none; background: transparent; border: none;
    font-size: 1.6rem; color: var(--text-muted, #888);
    cursor: pointer; padding: 2px 6px;
}

.mu-field { margin-bottom: 14px; }
.mu-field-label {
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text, #1A1A1A);
    margin-bottom: 6px;
}
.mu-field-hint {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.74rem;
    color: var(--text-muted, #888);
    margin-bottom: 8px;
    line-height: 1.45;
}
.mu-field input,
.mu-field textarea,
.mu-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    background: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.92rem;
    color: var(--text, #1A1A1A);
}
.mu-field textarea { resize: vertical; min-height: 60px; max-height: 200px; }
.mu-field input:focus,
.mu-field textarea:focus,
.mu-field select:focus {
    outline: none;
    border-color: var(--secondary, #E8A4B8);
    box-shadow: 0 0 0 2px rgba(232, 164, 184, 0.15);
}

.mu-steps-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.mu-steps-grid .mu-step-key {
    align-self: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark, #8E5878);
}
.mu-steps-grid input {
    margin: 0;
}

.mu-share-rules {
    background: rgba(232, 164, 184, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted, #5A5A5A);
    line-height: 1.6;
    word-break: keep-all;
}
.mu-share-rules strong { color: var(--primary-dark, #8E5878); }

.mu-share-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 16px;
}
.mu-share-cancel {
    appearance: none; background: transparent;
    border: 1px solid rgba(0,0,0,0.20);
    padding: 8px 18px; border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600; font-size: 0.86rem;
    color: var(--text-muted, #5A5A5A);
    cursor: pointer;
}
.mu-share-submit {
    appearance: none;
    background: linear-gradient(135deg, var(--primary-dark, #8E5878), var(--secondary, #E8A4B8));
    color: #FFF;
    border: none;
    padding: 8px 22px; border-radius: 999px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700; font-size: 0.86rem;
    letter-spacing: 0.08em;
    cursor: pointer;
}
.mu-share-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.mu-share-msg {
    margin-top: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.84rem;
    text-align: center;
    min-height: 1.2em;
    color: var(--text-muted, #888);
}
.mu-share-msg.success { color: #2E8B57; }
.mu-share-msg.error { color: #C0392B; }

/* ───── Empty / Loading ───── */
.mu-empty {
    text-align: center;
    padding: 40px 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text-muted, #888);
}

/* ───── 인용구 footer ───── */
.mu-quote {
    text-align: center;
    padding: 36px 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 24px;
}
.mu-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text, #1A1A1A);
    margin: 0 auto;
    max-width: 460px;
}
.mu-quote-by {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    margin-top: 14px;
}

/* ───── E-Ink 호환 (이미 theme.css에서 처리되지만 명시) ───── */
html[data-theme="eink"] .mu-title {
    background: none !important;
    -webkit-text-fill-color: #1A1A1A !important;
    color: #1A1A1A !important;
}
html[data-theme="eink"] .mu-look-tag {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.15) !important;
    color: #1A1A1A !important;
}
html[data-theme="eink"] .mu-look-steps {
    border-left-color: rgba(0,0,0,0.30) !important;
    background: rgba(0,0,0,0.025) !important;
}
html[data-theme="eink"] .mu-share-cta {
    background: #1A1A1A !important;
}
html[data-theme="eink"] .mu-share-submit {
    background: #1A1A1A !important;
}

@media (max-width: 480px) {
    .mu-wrap { padding: 14px 16px 100px; }
    .mu-look-name { font-size: 1.15rem; }
    .mu-steps-grid { grid-template-columns: 1fr; gap: 4px; }
    .mu-steps-grid .mu-step-key { margin-top: 8px; }
}
