/* Search Container Styles */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
}

.search-content {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.search-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.search-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.search-close:hover {
    color: #333;
}

.search-form {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form input:focus {
    outline: none;
    border-color: #999;
}

.search-results {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
}

.search-result {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.search-result-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.search-result-title a:hover {
    color: #666;
}

.search-result-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.search-result-date {
    margin-right: 1rem;
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
}

/* Tag styling is now imported from tags.css */
.search-result-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 9999px;
    background-color: #e9f5ff;
    color: #0066cc;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.search-result-tag:hover {
    background-color: #cce5ff;
}

.search-result-excerpt {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.5;
}

.search-result-excerpt mark {
    background-color: #fffacd;
    padding: 0 0.125rem;
}