/* 파일 경로: G:\지금개발중\Source_Import\SimriCare24\SimriCare24\wwwroot\css\pages\index.css */

/* =========================================
   Modern Hero Section (Simri1 Custom)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    margin: 15px 0;
    border-radius: 16px;
    background: linear-gradient(270deg, #1b0a2c, #4b1a60, #8b3c9f, #22204c);
    background-size: 600% 600%;
    animation: MidnightAurora 15s ease infinite;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 1;
}

/* [심리24 변경 2026-05-08] sticky 해제 — 추천 + 검색이 본문과 함께 위로 스크롤되도록 */
.hero-sticky {
    /* position: sticky 제거 — 일반 흐름 */
}

@keyframes MidnightAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    word-break: keep-all; 
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0px;
    color: #e2d9eb;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.hero-text-container {
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem; 
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; 
    min-width: 130px; 
    padding: 1rem 1.2rem; 
    font-size: 1.4rem; 
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    white-space: nowrap; 
}

.hero-btn-primary {
    background-color: #ffffff;
    color: #7d429a;
}

.hero-btn-primary:hover {
    background-color: #f8f9fa;
    color: #f07167;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.8); 
}

.hero-btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Mobile Responsiveness optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem; 
        margin: 10px auto; 
        width: calc(100% - 20px); 
    }
    .hero-title {
        font-size: 1.7rem; 
        margin-bottom: 1.2rem;
    }
    .hero-buttons {
        gap: 0.6rem;
        flex-direction: row; 
    }
    .hero-btn {
        width: auto;
        padding: 0.9rem;
        font-size: 1.3rem; 
    }
}

.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: #6b4e8a;
                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(125, 66, 154, 0.08);
                    color: #4a2c63;
                }

                .taro_btn .fnav li a.active, .taro_btn .fnav li a.reservation-alert-tab.active {
                    background: linear-gradient(135deg, #7d429a 0%, #5e3079 100%);
                    color: #ffffff;
                    font-weight: 700;
                    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
                    box-shadow: 0 3px 8px rgba(94, 48, 121, 0.35);
                }

/* Live Badge */
.live-badge {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #7d429a 0%, #5e3079 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 10px rgba(94, 48, 121, 0.25);
    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 10px;
        gap: 6px;
    }
    .hero-search-row {
        padding: 0 6px;
        margin-top: 8px;
    }
    .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;
    }
    /* 탭바 공간 최대 확보 */
    .hero-sticky.hero-section,
    .hero-section {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
        width: calc(100% - 10px) !important;
    }
    .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: #6b4e8a !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: 배경만 변경, 크기/굵기는 동일 */
    .taro_btn .fnav li a.active,
    .taro_btn .fnav li a.reservation-alert-tab.active {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    .hero-text-container {
        min-height: 7.5rem; /* 글자가 두 줄이 되어도 전체 배너 크기가 흔들리지 않도록 고정 */
    }
}

.search-row {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 배너 안에 들어간 검색 행 */
.hero-search-row {
    margin: 10px auto 0 auto;
    padding: 0 10px;
}

/* 배너 안 live badge: 흰 반투명 스타일로 전환 */
.hero-search-row .live-badge {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.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(125, 66, 154, 0.15);
    border-color: rgba(125, 66, 154, 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-color: #fdf5e6;
        border-color: #e6ddc9;
    }

.box {
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 2px 8px 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
    overflow: hidden;
}

    .box:hover {
        transform: translateY(-3px);
        box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.12);
    }

    .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: #2b1f3c; /* 다크 보랏빛 프리미엄 텍스트 */
    }
    
    .tname-badge {
        background-color: #f1ecf5;
        color: #7d429a;
        font-size: 1.25rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 6px;
        letter-spacing: 0.5px;
    }

.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-color: rgba(20, 117, 119, 0.8);
    }

    .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: #ebf8f2;
    color: #059669;
    border: 1px solid rgba(5,150,105,0.2);
}

.modern-postpaid {
    background: #f5f3fa;
    color: #7d429a;
    border: 1px solid rgba(125,66,154,0.2);
}

.modern-prepaid:hover, .modern-postpaid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.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: 1.5px solid #8080c0;
    background: #8080c0;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-link-btn:hover {
    background: #6a6ab0;
    border-color: #6a6ab0;
}

.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: #f0f0f0;
}

@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; /* 청록색 */
    }
