/* search.css - Search Results Page Styles */

.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.search-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-info {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.search-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.results {
    min-height: 400px;
}

.results .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.no-results h2 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.no-results a {
    color: #4285f4;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

.result-item {
    display: block;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.result-title {
    font-size: 1.25rem;
    color: #212529;
    margin: 0;
    font-weight: 600;
}

.result-labels {
    display: flex;
    gap: 0.5rem;
}

.label {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.label-public {
    background: #d4edda;
    color: #155724;
}

.label-private {
    background: #f8d7da;
    color: #721c24;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.result-excerpt {
    color: #495057;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Highlight search terms */
.highlight {
    background-color: #fff3cd;
    padding: 0 0.2em;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 1.75rem;
    }
    
    .result-item {
        padding: 1rem;
    }
    
    .result-title {
        font-size: 1.1rem;
    }
    
    .result-meta {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }
}