@charset "utf-8";

/* ══ 나의 동행찾기 페이지 (.ml-* 스코프) ══════════════════════════════ */

/* ── Hero: 오늘의 추천 동행 ────────────────────────────────────────── */
.ml-hero {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 60%);
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.ml-hero::before {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ml-hero-badge {
    position: absolute;
    top: 16px; left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #4338ca;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.ml-hero-badge svg { width: 12px; height: 12px; }
.ml-hero-avatar {
    flex-shrink: 0;
    margin-top: 20px;
}
.ml-avatar-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,.18);
}
.ml-avatar-circle.av-warm   { background: linear-gradient(135deg, #e11d48, #fb7185); }
.ml-avatar-circle.av-blue   { background: linear-gradient(135deg, #4f7ef0, #7b9ff5); }
.ml-avatar-circle.av-teal   { background: linear-gradient(135deg, #0d9488, #34d399); }
.ml-avatar-circle.av-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ml-avatar-circle.av-rose   { background: linear-gradient(135deg, #9f1239, #e11d48); }
.ml-avatar-circle.av-amber  { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.ml-avatar-sm { width: 52px; height: 52px; font-size: 1.2rem; border-width: 2px; }
.ml-avatar-circle.av-img { background: #f3f4f6; overflow: hidden; }
.ml-avatar-circle.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ml-hero-body {
    flex: 1;
    min-width: 0;
    padding-top: 20px;
}
.ml-hero-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.ml-hero-name span { font-size: 0.875rem; font-weight: 500; color: #6b7280; margin-left: 6px; }
.ml-hero-parish {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 12px;
}
.ml-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.ml-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.ml-tag.tag-mass  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ml-tag.tag-act   { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }
.ml-tag.tag-mbti  { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.ml-tag svg { width: 13px; height: 13px; }

.ml-hero-score {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ml-score-bar-wrap {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.ml-score-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4338ca, #818cf8);
    transition: width .4s;
}
.ml-score-pct {
    font-size: 1rem;
    font-weight: 700;
    color: #4338ca;
    white-space: nowrap;
    min-width: 38px;
}
.ml-score-label {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.ml-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    height: 40px;
    padding: 0 20px;
    background: var(--accent, #ff6b50);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.ml-hero-cta:hover { background: #e05a40; color: #fff; }
.ml-hero-cta svg { width: 16px; height: 16px; }

/* ── 필터 필 ────────────────────────────────────────────────────────── */
.ml-filter-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 24px;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.ml-filter-wrap::-webkit-scrollbar { display: none; }
.ml-filter-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 17px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}
.ml-filter-pill:hover { border-color: #334155; color: #334155; }
.ml-filter-pill.is-on {
    border-color: #334155;
    background: #334155;
    color: #fff;
}
.ml-filter-pill svg { width: 14px; height: 14px; }

/* ── 카드 그리드 ─────────────────────────────────────────────────────── */
.ml-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.ml-section-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ml-section-title svg { width: 17px; height: 17px; color: #7c5cbf; }
.ml-section-count {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.ml-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .ml-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ml-grid { grid-template-columns: 1fr; }
    .ml-hero { flex-direction: column; align-items: flex-start; }
    .ml-hero-avatar { margin-top: 28px; }
}

.ml-card {
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.ml-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    transform: translateY(-2px);
    border-color: #c7d2fe;
}

.ml-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.ml-card-info { flex: 1; min-width: 0; }
.ml-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
}
.ml-card-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.ml-card-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ml-card-score .ml-score-bar-wrap { flex: 1; height: 4px; }
.ml-card-score .ml-score-pct { font-size: 0.875rem; }
.ml-card-score .ml-score-label { font-size: 0.7rem; }

.ml-card-foot {
    margin-top: auto;
}
.ml-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 36px;
    border: 1.5px solid var(--accent, #ff6b50);
    border-radius: 8px;
    color: var(--accent, #ff6b50);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ml-card-btn:hover { background: var(--accent, #ff6b50); color: #fff; }
.ml-card-btn svg { width: 14px; height: 14px; }

/* 비로그인 안내 배너 */
.ml-login-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 0.8125rem;
    color: #6b7280;
}
.ml-login-notice { flex-wrap: wrap; }
.ml-login-notice svg { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; }
.ml-login-notice a { color: #4338ca; font-weight: 600; text-decoration: none; }
.ml-login-notice a:hover { text-decoration: underline; }

/* 자격 미충족 안내: 인증센터/프로필 작성 링크(필요한 것만, 둘 다면 2개) */
.ml-notice-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ml-notice-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ff5a3d;
    color: #ff5a3d !important;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none !important;
}
.ml-notice-link svg { width: 14px; height: 14px; color: #ff5a3d; }
.ml-notice-link:hover { background: #ff5a3d; color: #fff !important; }
.ml-notice-link:hover svg { color: #fff; }

/* ── 페이지네이션 래퍼 ─────────────────────────────────────────────── */
.ml-paging-wrap {
    margin-top: 8px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}
