/* 파일 경로: LiveTok/wwwroot/css/pages/index.css */

.taro_btn {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* 스크롤바 숨기기 (선택) */
    scrollbar-width: none; 
}
.taro_btn::-webkit-scrollbar {
    display: none;
}

    .taro_btn .fnav {
        text-align: center;
        width: auto;
        /* 넘치는 경우 강제로 컨테이너 길이를 아이템에 맞춤 */
        min-width: max-content; 
    }

        .taro_btn .fnav ul {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 25px;
            padding: 4px;
            display: inline-flex;
            gap: 2px;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
        }

        .taro_btn .fnav li {
            width: auto;
            margin: 0;
        }

            .taro_btn .fnav li a {
                background: transparent;
                border: none;
                border-radius: 20px;
                color: #6366f1;
                text-shadow: none;
                cursor: pointer;
                display: block;
                font-size: 1.6rem;
                font-weight: 600;
                letter-spacing: -0.5px;
                line-height: 1.2;
                margin: 0;
                padding: 10px 22px;
                position: relative;
                text-align: center;
                transition: all 0.25s ease-in-out;
                white-space: nowrap;
            }

                .taro_btn .fnav li a:hover {
                    background: rgba(99, 102, 241, 0.08);
                    color: #4f46e5;
                }

                .taro_btn .fnav li a.active, .taro_btn .fnav li a.reservation-alert-tab.active {
                    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
                    color: #ffffff;
                    font-weight: 700;
                    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
                    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
                }

/* Live Badge */
.live-badge {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
    box-sizing: border-box;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #24ca2e;
    border-radius: 50%;
    box-shadow: 0 0 6px #24ca2e;
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 768px) {
    .live-badge {
        height: 32px;
        padding: 0 12px;
        font-size: 1.05rem;
        border-radius: 16px;
        gap: 5px;
    }
    .search-row {
        padding: 0;
        gap: 6px;
    }
    .modern-search {
        height: 32px;
        padding: 0 12px;
        border-radius: 16px;
    }
    .search-icon {
        font-size: 1.25rem;
        margin-right: 6px;
    }
    .modern-input {
        font-size: 1.1rem;
    }
    .taro_btn {
        padding: 5px 0 10px 0 !important;
        justify-content: center !important;
        overflow: visible !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .taro_btn .fnav {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Grid로 3등분 (Flex보다 균등 분배 보장) */
    .taro_btn .fnav ul {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1px !important;
        padding: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .taro_btn .fnav li {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .taro_btn .fnav li a,
    .taro_btn .fnav li a:link,
    .taro_btn .fnav li a:visited,
    .taro_btn .fnav li a.js-charge-link {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        padding: 10px 1px !important;
        letter-spacing: -1px !important;
        width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        color: #6366f1 !important;
        margin: 0 !important;
    }
    /* span 내부 텍스트도 동일하게 */
    .taro_btn .fnav li a span {
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
        letter-spacing: inherit !important;
        display: inline !important;
    }
    /* active: gradient 배경으로 변경 */
    .taro_btn .fnav li a.active,
    .taro_btn .fnav li a.reservation-alert-tab.active {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #6366f1, #10b981) !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
}

/* ── 추천 + 검색 영역 [2026-05-08 sticky 해제 — 본문과 함께 스크롤되도록] ── */
.rec-search-sticky {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
    /* 부모 .contents 의 좌우 패딩(15px)을 상쇄해 전체 폭 채우기 */
    margin: -5px -15px 8px;
    padding: 6px 15px 8px;
}

@media (min-width: 769px) {
    .rec-search-sticky {
        /* desktop: padding-left 이 24px 로 바뀜 */
        margin-left: -24px;
        padding-left: 24px;
    }
}

.search-row {
    max-width: 100%;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-search {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    height: 36px;
    position: relative;
    transition: box-shadow 0.3s;
}

.search-icon {
    font-size: 1.4rem;
    color: #a0a0a0;
    margin-right: 8px;
}

.modern-input {
    font-size: 1.2rem;
}

.modern-search:focus-within {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.3);
}

.search-icon {
    font-size: 2rem;
    color: #a0a0a0;
    margin-right: 15px;
}

.search-input-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.modern-input {
    border: none !important;
    background: transparent;
    padding: 0;
    font-size: 1.5rem;
    width: 100%;
    height: 100%;
    outline: none !important;
    box-shadow: none !important;
    color: #333;
    font-weight: 500;
}

.modern-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.clear-icon {
    font-size: 2rem;
    color: #d0d0d0;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px;
    margin-right: -10px;
}

.clear-icon:hover {
    color: #a0a0a0;
}


.teacher_list ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -4px;
    justify-content: flex-start;
}

.teacher_list li {
    box-sizing: border-box;
    flex: 0 0 25%;
    margin: 0;
    display: flex;
    min-width: 0;
    padding: 4px;
}

    .teacher_list li[data-status="0"] .box {
        background:
            linear-gradient(#fffbf0, #fffbf0) padding-box,
            linear-gradient(135deg, rgba(251,146,60,0.45), rgba(16,185,129,0.25)) border-box;
    }

.box {
    width: 100%;
    height: 100%;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(99,102,241,0.3), rgba(16,185,129,0.3)) border-box;
    border-radius: 12px;
    padding: 2px 8px 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

    .box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(99,102,241,0.15);
        background:
            linear-gradient(#ffffff, #ffffff) padding-box,
            linear-gradient(135deg, rgba(99,102,241,0.55), rgba(16,185,129,0.55)) border-box;
    }

    .box .tname {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    .tname-text {
        font-size: 1.6rem;
        font-weight: 800;
        color: #1e1b4b; /* 딥 인디고 프리미엄 텍스트 */
    }
    
    .tname-badge {
        background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(16,185,129,0.12));
        color: #6366f1;
        font-size: 1.25rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
        letter-spacing: 0.5px;
        border: 1px solid rgba(99,102,241,0.2);
    }

.thumb {
    text-align: center;
}

    .thumb .img-frame {
        position: relative;
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 11 / 14;
        border-radius: 8px;
        border: 2px solid #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        margin: 0 auto 2px auto;
    }

        .thumb .img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.photo-status-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    transition: background-color 0.3s;
    z-index: 10;
}

    .photo-status-banner.ready {
        background: linear-gradient(90deg, rgba(99,102,241,0.85), rgba(16,185,129,0.85));
    }

    .photo-status-banner.on {
        background: linear-gradient(45deg, rgba(217, 30, 24, 0.85), rgba(192, 57, 43, 0.9));
    }

    .photo-status-banner.appointment-alert {
        background-color: rgba(255, 140, 0, 0.85);
    }

/* ===== 전문분야 마퀴(흐르는 태그) ===== */
.spec-marquee {
    overflow: hidden;
    width: 100%;
    margin: 4px 0 2px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.spec-track {
    display: flex;
    gap: 5px;
    width: max-content;
    animation: specMarquee 12s linear infinite;
}
.spec-tag {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
/* 카테고리별 고정 색상 */
.spec-tag[data-cat="우울·불안"]    { color: #1a73e8; background: #e8f0fe; }
.spec-tag[data-cat="연애·이별"]    { color: #d81b60; background: #fde8ef; }
.spec-tag[data-cat="부부·가족"]    { color: #e65100; background: #fef3e0; }
.spec-tag[data-cat="직장·스트레스"] { color: #f9a825; background: #fff8e1; }
.spec-tag[data-cat="자존감"]       { color: #2e7d32; background: #e8f5e9; }
.spec-tag[data-cat="대인관계"]     { color: #00838f; background: #e0f7fa; }
.spec-tag[data-cat="트라우마"]     { color: #283593; background: #e8eaf6; }
.spec-tag[data-cat="중독·습관"]    { color: #c62828; background: #fbe9e7; }
.spec-tag[data-cat="진로·적성"]    { color: #7b1fa2; background: #f3e5f5; }
.spec-tag[data-cat="육아·양육"]    { color: #558b2f; background: #f1f8e9; }
.spec-tag[data-cat="성격·성향"]    { color: #4e342e; background: #efebe9; }
.spec-tag[data-cat="감정조절"]     { color: #e91e63; background: #fce4ec; }
@keyframes specMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* 호버 시 애니메이션 일시 정지 */
.spec-marquee:hover .spec-track {
    animation-play-state: paused;
}

.tdesc {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
    padding: 4px 6px;
    margin: 0;
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 500;
    color: #555;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.call-buttons {
    margin-top: 3px;
    display: flex;
    gap: 3px;
    justify-content: center;
}

.call-btn, .appointment-alert-btn, .unsubscribe-btn {
    border: none;
    padding: 8px 2px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.modern-prepaid {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(16,185,129,0.1));
    color: #059669;
    border: 1px solid rgba(16,185,129,0.3);
    font-weight: 700;
}

.modern-prepaid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.2);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(16,185,129,0.18));
}

.appointment-alert-btn {
    background-color: #ff8c00;
    color: white;
}

.unsubscribe-btn {
    background-color: #6c757d;
    color: white;
}

/* 사진 하단 프로필 링크 영역 */
.thumb-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
}

.heart-btn {
    position: absolute;
    bottom: 30px; /* 상태 배너 바로 위 */
    left: 5px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 15;
    transition: background-color 0.2s, transform 0.1s;
}

.heart-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.heart-btn:active, .heart-btn.heart-pop {
    transform: scale(1.1);
}

.heart-btn.hearted .heart-icon {
    color: #ff4757;
}

.heart-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.heart-count {
    font-size: 1.1rem;
    font-weight: 500;
}

.profile-link-btn {
    display: inline-block;
    padding: 4px 14px;
    font-size: 1.15rem;
    border: none;
    background: linear-gradient(135deg, #6366f1, #10b981);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}

.profile-link-btn:hover {
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
    transform: translateY(-1px);
    color: white;
}

.fitem_wrap {
    overflow-x: hidden; /* 음수 마진으로 인한 가로 스크롤/흔들림 완벽 차단 */
}

.fitem-content {
    display: none;
}

    .fitem-content.active {
        display: block;
    }

.call-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    flex: 1;
}

/* 버튼이 하나뿐일 때 (상담중, 알림신청 등) 전체 너비 사용 */
.call-buttons .appointment-alert-btn,
.call-buttons .unsubscribe-btn {
    flex: 1;
}

.tname-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.box .tname {
    transition: background-color 0.2s ease-in-out;
}

.tname-link:hover .tname {
    background-color: rgba(99,102,241,0.05);
}

@media (max-width: 1024px) {
    .teacher_list li {
        flex-basis: 33.333%;
    }
}

@media (max-width: 768px) {
    .teacher_list li {
        flex-basis: 50%;
    }
}

@media (max-width: 480px) {
    .teacher_list li {
        flex-basis: 50%;
    }
}

/* =========================================
   로딩 버튼 스타일
   ========================================= */
.call-btn.is-loading, .appointment-alert-btn.is-loading, .unsubscribe-btn.is-loading {
    color: transparent !important; /* 기존 텍스트 숨기기 */
    pointer-events: none;
    position: relative;
}

    .call-btn.is-loading::after, .appointment-alert-btn.is-loading::after, .unsubscribe-btn.is-loading::after {
        content: '';
        display: block;
        position: absolute;
        width: 16px;
        height: 16px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid rgba(255, 255, 255, 0.5);
        border-top-color: white;
        border-radius: 50%;
        animation: button-loading-spinner 1s ease infinite;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* =========================================
   토스트 알림 메시지 스타일
   ========================================= */
.toast-notification {
    position: fixed;
    bottom: -100px; /* 처음에는 화면 아래에 숨김 */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
}

    .toast-notification.show {
        opacity: 1;
        bottom: 20px; /* 화면에 나타날 때의 위치 */
    }

    .toast-notification.success {
        background-color: #28a745; /* 초록색 */
    }

    .toast-notification.error {
        background-color: #dc3545; /* 빨간색 */
    }

    .toast-notification.info {
        background-color: #17a2b8; /* 청록색 */
    }

/* =========================================
   추천 상담사 TOP 10 — 자동 로테이션 캐러셀
   (sticky 컨테이너 안에 위치 — 카드 외형 없음)
   ========================================= */
.recommend-section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* 헤더 행 */
.recommend-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px 5px;
}

.recommend-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.recommend-section-title em {
    font-style: normal;
    background: linear-gradient(135deg, #6366f1, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recommend-crown { font-style: normal; }

.recommend-section-sub {
    font-size: 1.05rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

/* 캐러셀 래퍼 — 카드 넘침 숨김 */
.recommend-carousel-wrap {
    overflow: hidden;
    position: relative;
    padding: 4px 0 5px;
    margin: 0 -2px;
}

/* 슬라이딩 트랙 */
.recommend-track {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0 2px;
    will-change: transform;
}

/* ── 닷(dot) 페이지 인디케이터 ── */
.recommend-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    min-height: 8px;
}

.rec-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(99,102,241,0.22);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
    flex-shrink: 0;
}

.rec-dot.active {
    width: 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #10b981);
}

/* 개별 카드 — 가로형, 폭은 JS가 inline style 로 설정 */
.rec-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background:
        linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)) padding-box,
        linear-gradient(135deg, rgba(99,102,241,0.25), rgba(16,185,129,0.25)) border-box;
    box-shadow: 0 2px 8px rgba(99,102,241,0.07);
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* 대기중 카드 강조 */
.rec-card.rec-ready {
    background:
        linear-gradient(rgba(255,255,255,0.98), rgba(255,255,255,0.98)) padding-box,
        linear-gradient(135deg, #6366f1, #10b981) border-box;
    box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}

.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.18);
}

/* 랭킹 번호 뱃지 — photo-wrap 좌상단에 겹침 */
.rec-rank {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    font-family: 'Nunito', 'Malgun Gothic', sans-serif;
    padding: 0 4px;
    color: white;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.rec-rank.gold   { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.rec-rank.silver { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.rec-rank.bronze { background: linear-gradient(135deg, #b45309, #d97706); }
.rec-rank.normal { background: linear-gradient(135deg, #6366f1, #818cf8); }

/* 사진 래퍼 */
.rec-photo-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* 사진 */
.rec-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #6366f1, #10b981) border-box;
    box-shadow: 0 2px 8px rgba(99,102,241,0.15);
    display: block;
}

/* 이니셜 아바타 */
.rec-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 2px 8px rgba(99,102,241,0.22);
    flex-shrink: 0;
}

/* 상태 점 */
.rec-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: #d1d5db;
    box-sizing: border-box;
}

.rec-status-dot.ready {
    background: #10b981;
    animation: recDotPulse 2s ease-in-out infinite;
}

.rec-status-dot.on    { background: #f87171; }
.rec-status-dot.alert { background: #fb923c; }

@keyframes recDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    55%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* 텍스트 영역 */
.rec-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

/* 이름 */
.rec-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e1b4b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    line-height: 1.3;
}

/* 전문분야 한 줄 */
.rec-specialty {
    font-size: 1.0rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 상태 뱃지 */
.rec-badge {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: -0.2px;
    align-self: flex-start;
}

.rec-badge.ready { color: #059669; background: rgba(16,185,129,0.12); }
.rec-badge.on    { color: #dc2626; background: rgba(248,113,113,0.12); }
.rec-badge.alert { color: #d97706; background: rgba(251,146,60,0.12); }

/* 모바일 */
@media (max-width: 480px) {
    .rec-search-sticky { padding-top: 5px; padding-bottom: 6px; }
    .recommend-section-title { font-size: 1.2rem; }
    .rec-photo-wrap { width: 44px; height: 44px; }
    .rec-photo, .rec-avatar { width: 44px; height: 44px; }
    .rec-avatar { font-size: 1.6rem; }
    .rec-card { padding: 8px 10px; gap: 8px; }
    .rec-name { font-size: 1.05rem; }
    .rec-specialty { font-size: 0.9rem; }
    .rec-badge { font-size: 0.85rem; padding: 1px 5px; }
}
