/* Search Container Styles */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-input {
    width: 250px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-input::placeholder {
    color: #999999;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-result-snippet {
    color: #cccccc;
    font-size: 0.8rem;
    line-height: 1.4;
}

.search-result-snippet mark {
    background: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #999999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-input {
        width: 180px;
    }
    
    .search-results {
        width: 300px;
    }
}
