/* ==========================================================================
   Search — Phase 13.3
   검색 결과 페이지 전용 CSS
   ========================================================================== */

/* --- Search Hero --- */
.yp-search-hero {
    background: var(--yp-blue);
    padding: 32px 0;
}
.yp-search-form {
    display: flex;
    gap: 8px;
}
.yp-search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--yp-radius);
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    outline: none;
    transition: var(--yp-transition);
}
.yp-search-input:focus { border-color: white; background: white; }
.yp-search-btn {
    padding: 14px 24px;
    background: var(--yp-gray-900);
    color: white;
    border: none;
    border-radius: var(--yp-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--yp-transition);
}
.yp-search-btn:hover { background: var(--yp-gray-800); }

/* --- Result Summary --- */
.yp-search-summary {
    padding: 16px 0;
    border-bottom: 1px solid var(--yp-gray-200);
}
.yp-search-summary-text {
    font-size: 14px;
    color: var(--yp-gray-600);
}
.yp-search-summary-text strong {
    color: var(--yp-blue);
    font-weight: 700;
}

/* --- Search Layout --- */
.yp-search-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px 0;
}

/* --- Filter Panel --- */
.yp-filter-panel {
    position: sticky;
    top: 80px;
}
.yp-filter-box {
    background: var(--yp-white);
    border: 1px solid var(--yp-gray-200);
    border-radius: var(--yp-radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}
.yp-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--yp-gray-800);
    margin-bottom: 10px;
}
.yp-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yp-filter-item {
    margin-bottom: 6px;
}
.yp-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--yp-gray-600);
    text-decoration: none;
    transition: var(--yp-transition);
}
.yp-filter-link:hover { background: var(--yp-gray-50); color: var(--yp-blue); }
.yp-filter-link.active { background: var(--yp-blue); color: white; }
.yp-filter-count {
    font-size: 11px;
    background: var(--yp-gray-100);
    padding: 1px 6px;
    border-radius: 8px;
    color: var(--yp-gray-500);
}
.yp-filter-link.active .yp-filter-count { background: rgba(255,255,255,0.2); color: white; }

/* --- Hot Keywords --- */
.yp-search-keywords {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
}
.yp-search-keyword {
    display: inline-block;
    padding: 6px 14px;
    background: var(--yp-gray-100);
    border-radius: 16px;
    font-size: 13px;
    color: var(--yp-gray-600);
    text-decoration: none;
    transition: var(--yp-transition);
}
.yp-search-keyword:hover { background: var(--yp-blue); color: white; }

/* --- Sort (reuse dir-sort) --- */
/* Sort bar is shared with directory */

/* --- Empty State --- */
.yp-search-empty {
    text-align: center;
    padding: 60px 20px;
}
.yp-search-empty-icon { font-size: 48px; margin-bottom: 16px; }
.yp-search-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--yp-gray-800);
    margin-bottom: 8px;
}
.yp-search-empty-desc {
    font-size: 14px;
    color: var(--yp-gray-500);
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .yp-search-layout {
        grid-template-columns: 1fr;
    }
    .yp-filter-panel {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .yp-filter-box {
        flex-shrink: 0;
        min-width: 200px;
        margin-bottom: 0;
    }
    .yp-search-form { flex-direction: column; }
    .yp-search-btn { width: 100%; }
}
