/* 검색 페이지 전용 스타일 */
.search-page.content-wrapper {
    min-height: auto;
    padding-bottom: 12px;
}

.search-controls {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--bs-body-bg, #fff);
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

.has-fixed-nav .search-controls {
    top: 52px;
    z-index: 1020;
}

.search-results-scroll {
    max-height: none;
    overflow-y: auto;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 2rem;
}

.search-result-item {
    background-color: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    border-color: #dee2e6;
}

.search-result-item:active {
    transform: translateY(0);
    background-color: #f8f9fa;
}


.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced gap from 0.75rem */
    padding-bottom: 2rem;
}

.search-result-item {
    background-color: #fff;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    /* Slightly reduced border radius */
    padding: 0.75rem 1rem;
    /* Reduced padding from 1rem 1.25rem */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    /* More subtle shadow */
}

.search-result-item:hover {
    transform: translateY(-1px);
    /* reduced elevation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* reduced shadow */
    background-color: #fff;
    border-color: #dee2e6;
}

.search-result-item:active {
    transform: translateY(0);
    background-color: #f8f9fa;
}

.search-result-meta {
    margin-bottom: 0.2rem;
    /* Reduced margin from 0.4rem */
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-badge {
    background-color: #f0f7ff;
    color: #0d6efd;
    padding: 0.15rem 0.5rem;
    /* Slightly reduced padding */
    border-radius: 6px;
    font-size: 0.75rem;
    /* Slightly reduced font size */
    letter-spacing: -0.01em;
}

.search-result-text {
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
    word-break: keep-all;
    /* 한글 단어 단위 줄바꿈 */
}

/* Modern Loading Spinner */
/* Modern Loading Spinner (Common UI used) */
.search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
    /* Animation definition moved to common.css */
}

/* .spinner-container, .custom-spinner styles are inherited from common.css */

/* Legacy styles removed: .search-loading-card, .search-loading-hint */

/* Legacy styles removed: .search-loading-card, .search-loading-hint */

.highlight-keyword {
    background-color: #fff59d;
    /* 연한 형광 노랑 */
    font-weight: bold;
    border-radius: 2px;
    padding: 0 2px;
}

/* Scroll-to-top button */
.scroll-to-top-btn {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 1030;
}

.scroll-to-top-btn.is-visible {
    opacity: 0.65;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

@media (min-width: 992px) {
    .scroll-to-top-btn {
        right: max(24px, calc((100vw - (960px + 24px)) / 2 - 48px));
    }
}

@media (min-width: 1200px) {
    .scroll-to-top-btn {
        right: max(24px, calc((100vw - (1140px + 24px)) / 2 - 48px));
    }
}

@media (min-width: 1400px) {
    .scroll-to-top-btn {
        right: max(24px, calc((100vw - (1320px + 24px)) / 2 - 48px));
    }
}