/* --- Search Dashboard Component Styles --- */

:root {
    --sd-primary: #3b82f6; 
    --sd-bg-card: #ffffff;
    --sd-text-main: #1e293b;
    --sd-text-sub: #64748b;
    --sd-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.search-dashboard {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 헤더 영역 */
.search-header-area {
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sd-text-main);
    margin-bottom: 25px;
}

/* 검색바 래퍼 */
.search-bar-wrapper {
    position: relative;
    width: 100%;
    /* transition: transform 0.2s;  <-- 이거 삭제 (움직임 제거) */
}



/* 인풋창 (밸런스형) */
.search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    
    /* [평소] 너무 진하지 않은 '연한 회색' 테두리 (확실히 보임) */
    border: 1px solid #e2e8f0; 
    
    border-radius: 16px;
    background: var(--sd-bg-card);
    
    /* [평소] 아주 살짝 입체감 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    
    color: var(--sd-text-main);
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out; /* 부드러운 전환 효과 */
}

.search-input:focus {
    /* [클릭 시] 테두리가 파란색으로 변함 */
    border-color: var(--sd-primary); 
    
    /* [클릭 시] 파란색 빛(Glow)이 은은하게 퍼짐 (너무 과하지 않게) */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); 
}

/* 인풋창 : 마우스 올렸을 때 테두리 색 변경 추가 */
.search-input:hover {
    border-color: #cbd5e1; /* 평소보다 약간 진한 회색 */
}

/* 로딩 스피너 (위치 수정됨) */
.loader {
    display: none;
    position: absolute;
    right: 20px; /* 버튼이 없으니 더 오른쪽으로 붙임 */
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--sd-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 결과 카드 */
.result-card {
    background: var(--sd-bg-card);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
    opacity: 0;
    animation: slideUp 0.4s forwards;
    text-align: left;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sd-shadow);
    border-color: #cbd5e1;
}

.result-meta {
    font-size: 0.85rem;
    color: var(--sd-text-sub);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-link-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sd-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tag-badge {
    font-size: 0.75rem;
    background-color: #f1f5f9;
    color: var(--sd-text-sub);
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 5px;
    font-weight: 500;
}

/* 상태 메시지 (결과 없음 등) */
.status-msg {
    text-align: center;
    padding: 50px 0;
    color: var(--sd-text-sub);
}

.status-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; opacity: 0.6; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.highlight-text { background: #dbeafe; color: #1d4ed8; padding: 0 2px; border-radius: 2px; }