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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

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

#searchInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#searchBtn {
    padding: 15px 40px;
    font-size: 1.1em;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#searchBtn:hover {
    transform: scale(1.05);
}

.suggestions {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.filters {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters label {
    font-weight: 500;
    margin-right: 10px;
}

.filters select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.results {
    background: white;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.result-title {
    font-size: 1.5em;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.result-title:hover {
    text-decoration: underline;
}

.result-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.result-snippet {
    line-height: 1.6;
    color: #333;
}

.result-snippet mark {
    background: #ffe066;
    padding: 2px 4px;
    border-radius: 3px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active {
    background: #667eea;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #searchBtn {
        width: 100%;
    }
}
