@charset "UTF-8";

#contents p {
    text-decoration: none;
}

/* 통합검색 폼 스타일 */
.search-wrapper {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 40px 20px;
}

.search-box {
    position: relative;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 8px 8px 8px 30px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.search-box input[type="text"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 18px;
    padding: 15px 10px;
    background: transparent;
    border-color: #fff !important;
    box-shadow: 0 0 0 #fff;
}

.search-box input[type="text"]::placeholder {
    color: #aaa;
}

.search-box button {
    background: linear-gradient(135deg, #9FB0C9 0%, #465367 100%);
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 15px 35px;
    font-size: 16px;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s 
ease;
    white-space: nowrap;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.search-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.search-options input[type="radio"] {
    margin-right: 5px;
}

/* 인기검색어 스타일 */
.popular-keywords {
    /*max-width: 90%;*/
    margin: 0 auto 0px;
    padding: 0 0px;
}

.popular-keywords h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin: 0.3rem 0.2rem;
}

.keyword-item:hover {
    background: linear-gradient(135deg, #9FB0C9 0%, #465367 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.keyword-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #465367;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}

.keyword-item:hover .keyword-number {
    background: #fff;
    color: #667eea;
}

/* 검색 결과 스타일 */
.search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

.result-header {
    margin-bottom: 2rem;
    padding-bottom: 0rem;
    border-bottom: 0.15rem solid #465367;
}

.result-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

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

.result-count strong {
    color: #667eea;
    font-weight: 600;
}

.board-result {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.board-result:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-0px);
}

.board-name {
    display: inline-block;
    background: linear-gradient(302deg, #828D9F 0%, #465367 100%);
    color: #fff;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-family: 'Noto Serif KR', sans-serif;
    font-weight: 800;
    letter-spacing: 0.075em;
    word-spacing: 0.1em;
    line-height: 180%;
    margin-bottom: 1.8rem;
}

.result-item {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.result-thumbnail.no-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    color: #adb5bd;
    font-size: 40px;
}

.result-content-wrapper {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 16px;
    color: #6699BC;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 800;
    letter-spacing: 0.075em;
    word-spacing: 0.1em;
    line-height: 180%;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.result-title:hover {
    color: #BC6666;
}

.result-content {
    font-size: 1rem;
    color: #666;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 300;
    letter-spacing: 0.075em;
    word-spacing: 0.1em;
    line-height: 180%;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Noto Serif KR', sans-serif;
}

.no-result {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-result-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        padding: 15px;
        border-radius: 20px;
    }
    
    .search-box input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* 사이드 위젯 메타 텍스트 */
.tags-widget ul a {
    font-size: 0.8rem !important;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 500;
    letter-spacing: 0.075em;
    word-spacing: 0.1em;
    line-height: 180%;
}