/* ============================================================
   러비너프 상담사 매칭 카드 — 공용 (Phase 4 #4)
   Prefix: lnc-*
   각 결과 페이지(goonghap/oracle/oracle-today/compat-*)에서 로드
============================================================ */

.lnc-match,
.lnc-match * {
    box-sizing: border-box;
    font-family: 'SUIT', -apple-system, BlinkMacSystemFont, system-ui, Roboto,
        "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
        "Malgun Gothic", sans-serif;
}

.lnc-match {
    max-width: 420px;
    margin: 0 auto 14px;
}

/* CTA 박스 안에 내장되는 경우: 부모의 폭을 따르고 상·하 여백만 유지 */
.lnc-match--embed {
    max-width: none;
    margin: 4px 0 14px;
    text-align: left;
}

.lnc-match__title {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 800;
    color: #d84868;
    letter-spacing: 0.3px;
}

.lnc-match__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lnc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8dbe5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(44, 30, 58, 0.06);
    text-decoration: none;
    color: #2c1e3a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.lnc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(216, 72, 104, 0.18);
    border-color: #ff9cae;
    color: #2c1e3a;
    /* base.css 의 a:hover{background-color:transparent} 오버라이드 */
    background-color: #fff;
}

.lnc-card__avatar {
    position: relative;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}
.lnc-card__avatar-img,
.lnc-card__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: #f3e8ec;
    border: 2px solid #ffe3ea;
    box-sizing: border-box;
}
.lnc-card__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #b8a2c4;
}
.lnc-card__status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    background: #b8a2c4;
    box-sizing: content-box;
    z-index: 2;
}
.lnc-card__status-dot--on       { background: #ff8f72; }
.lnc-card__status-dot--standby  { background: #37d47a; animation: lnc-pulse 1.8s ease-in-out infinite; }
.lnc-card__status-dot--away     { background: #b8a2c4; }

@keyframes lnc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(55, 212, 122, 0.55); }
    50%      { box-shadow: 0 0 0 5px rgba(55, 212, 122, 0); }
}

.lnc-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lnc-card__row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lnc-card__nick {
    font-size: 14px;
    font-weight: 900;
    color: #2c1e3a;
}
/* base.css 의 a:hover{color:inherit} 오버라이드 — 상위 컨텍스트 색상 상속 방지 */
.lnc-card:hover .lnc-card__nick  { color: #2c1e3a; }
.lnc-card:hover .lnc-card__title { color: #7a6a82; }
.lnc-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}
.lnc-card__badge--standby { background: #e8fff0; color: #1f8f3a; }
.lnc-card__badge--on      { background: #ffefe8; color: #c05a2e; }
.lnc-card__badge--away    { background: #f3ecf2; color: #7a6a82; }

.lnc-card__title {
    font-size: 12px;
    color: #7a6a82;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lnc-card__cta {
    font-size: 11px;
    font-weight: 800;
    color: #ff6986;
    padding: 6px 10px;
    border: 1.5px solid #ff6986;
    border-radius: 999px;
    flex-shrink: 0;
}
.lnc-card:hover .lnc-card__cta {
    background: #ff6986;
    color: #fff;
}

/* 다크 계열 페이지(oracle, oracle-today) 오버라이드 */
.td-page .lnc-match__title,
.or-page .lnc-match__title { color: #ffd96a; }

@media (max-width: 360px) {
    .lnc-card        { padding: 10px 12px; gap: 10px; }
    .lnc-card__avatar { width: 44px; height: 44px; }
    .lnc-card__nick   { font-size: 13px; }
    .lnc-card__title  { font-size: 11px; }
    .lnc-card__cta    { font-size: 10px; padding: 5px 8px; }
}
