/* 검색 페이지 전용 스타일 */

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 검색 헤더 */
.search-header {
    margin-bottom: 30px;
}

.search-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.search-breadcrumb a {
    color: #333;
    text-decoration: none;
}

.search-breadcrumb a:hover {
    text-decoration: underline;
}

.search-header h1 {
    color: #333;
    font-size: 28px;
    margin: 0;
}

/* 검색 폼 */
.search-form-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.search-submit-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-submit-btn:hover {
    background: #1a1a1a;
}

.search-filters {
    display: flex;
    justify-content: center;
}

.category-filter {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #555;
}

/* 검색 결과 정보 */
.search-result-info {
    margin-bottom: 25px;
}

.search-result-info h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 8px;
}

.search-category-info {
    color: #333;
    font-size: 18px;
    font-weight: normal;
}

.result-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 검색 결과 항목 */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #333;
}

.result-content {
    flex: 1;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.result-category {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.result-date {
    color: #666;
    font-size: 12px;
}

.search-result-item h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.search-result-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-item h3 a:hover {
    color: #333;
}

.result-snippet {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-snippet mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.result-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: #333;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-thumbnail {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 검색 결과 없음 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions h4 {
    color: #333;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    color: #666;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li:before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
}

/* 검색 환영 페이지 */
.search-welcome {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.search-welcome-icon {
    font-size: 64px;
    margin-bottom: 25px;
}

.search-welcome h2 {
    color: #333;
    margin-bottom: 15px;
}

.search-welcome p {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.search-tips {
    max-width: 500px;
    margin: 0 auto;
}

.search-tips h3 {
    color: #333;
    margin-bottom: 20px;
}

.popular-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.keyword-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.keyword-tag:hover {
    background: #333;
    color: white;
    border-color: #333;
    text-decoration: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .search-page-container {
        padding: 15px;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-submit-btn {
        margin-left: 0;
        align-self: stretch;
    }
    
    .search-result-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .result-thumbnail {
        width: 100%;
        height: 150px;
        order: -1;
    }
    
    .result-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .popular-keywords {
        gap: 8px;
    }
    
    .keyword-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    gap: 8px;
}

.pagination .page-link {
    text-decoration: none;
    color: #333;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-link:hover {
    background-color: #e9f5ff;
}

.pagination .page-link.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}
