* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: #F9FAFB;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 60px;
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #4E5968;
    font-weight: 500;
}

.companies {
    font-size: 0.95em;
    color: #718096;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 2px solid #E5E8EB;
    border-radius: 12px;
    background: white;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

#searchInput:focus {
    border-color: #3182F6;
    box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.1);
}

#searchInput::placeholder {
    color: #B0B8C1;
}

#searchBtn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: #3182F6;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

#searchBtn:hover {
    background: #1B64DA;
    transform: translateY(-1px);
}

#searchBtn:active {
    transform: translateY(0);
}

.search-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    color: #4E5968;
}

.search-options label {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3182F6;
}

.loading {
    text-align: center;
    color: #4E5968;
    font-size: 1.2rem;
    padding: 20px;
    font-weight: 500;
}

.results {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-item {
    padding: 20px 0;
    border-bottom: 1px solid #F2F4F6;
}

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

.result-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.result-title a {
    color: #191F28;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #3182F6;
}

.result-meta {
    color: #3182F6;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-content {
    color: #4E5968;
    line-height: 1.6;
    font-size: 0.95rem;

    /* 2줄까지만 표시 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: #F2F4F6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4E5968;
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover {
    background: #E5E8EB;
}

.no-results {
    text-align: center;
    color: #4E5968;
    font-size: 1.2rem;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-weight: 500;
}

footer {
    margin-top: 40px;
    text-align: center;
}

.footer-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    color: #4a5568;
    font-size: 0.95em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 반응형 */
@media (max-width: 768px) {
    .logo {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .companies {
        font-size: 0.85em;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }

    #searchInput,
    #searchBtn {
        border-radius: 15px;
    }

    .result-title a {
        font-size: 1.1em;
    }
}

.feature-info {
    font-size: 0.95rem;
    color: #8B95A1;
    margin-top: 8px;
    font-weight: 400;
}

.search-info {
    text-align: center;
    color: #4E5968;
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-weight: 500;
}

/* 자동완성 드롭다운 */
.autocomplete-dropdown {
    max-width: 900px;
    margin: -10px auto 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E8EB;
    display: none;
    overflow: hidden;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 1px solid #F2F4F6;
    transition: background 0.2s;
    font-weight: 500;
}

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

.autocomplete-item:hover {
    background: #F9FAFB;
}

.autocomplete-item strong {
    color: #3182F6;
}

.autocomplete-loading {
    padding: 14px 24px;
    text-align: center;
    color: #8B95A1;
    font-weight: 500;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F2F4F6;
}

::-webkit-scrollbar-thumb {
    background: #B0B8C1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B95A1;
}