/* Search Specific Styles */

.suggestion-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item.selected {
    background-color: var(--light-gray-color);
}

.suggestion-content {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-content:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: bold;
    color: var(--text-color);
}

.suggestion-meta {
    font-size: 0.8em;
    color: var(--light-text-color);
    margin-top: 5px;
}

.suggestion-category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7em;
    margin-right: 5px;
}

.suggestion-date {
    font-style: italic;
}

.suggestion-view-all {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.suggestion-view-all:hover {
    background-color: var(--light-gray-color);
}

.search-results-container {
    margin-top: 30px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.search-results-header h2 {
    font-size: 2em;
    color: var(--heading-color);
}

.search-results-header span {
    font-size: 1.1em;
    color: var(--light-text-color);
}

.search-result-card {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.search-result-card .result-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
}

.search-result-card .result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .result-image img {
    transform: scale(1.05);
}

.search-result-card .result-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-result-card .result-meta {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.search-result-card .result-category {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 10px;
}

.search-result-card .result-title a {
    font-size: 1.5em;
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-card .result-title a:hover {
    color: var(--primary-color);
}

.search-result-card .result-excerpt {
    font-size: 1em;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 15px;
}

.search-result-card .result-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--light-text-color);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: var(--light-text-color);
}

.no-results i {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-results h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.error-message {
    text-align: center;
    padding: 50px;
    color: var(--error-color);
}

.error-message i {
    font-size: 3em;
    margin-bottom: 20px;
}

.error-message h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-result-card {
        flex-direction: column;
    }

    .search-result-card .result-image {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .search-result-card .result-content {
        padding: 15px;
    }

    .search-result-card .result-title a {
        font-size: 1.3em;
    }
}


