/* Search Overlay */
.fari__search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
}

.fari__search-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
}

.fari__search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.fari__search-header h3 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

.fari__search-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.fari__search-close:hover {
    color: #0073aa;
}

.fari__search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #333;
    border-radius: 50px;
    background-color: #1a1a1a;
    color: #ffffff;
    outline: none;
}

.fari__search-input:focus {
    border-color: #0073aa;
}

.fari__search-input::placeholder {
    color: #888;
}

.fari__search-loading {
    text-align: center;
    color: #0073aa;
    margin-top: 10px;
}

/* Search Results */
.fari__search-results {
    margin-top: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #2a2a2a;
}

.search-result-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.search-result-title a {
    color: #ffffff;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #0073aa;
}

.search-result-category {
    font-size: 12px;
    color: #0073aa;
    margin-top: 5px;
}

.search-no-results {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fari__search-container {
        margin: 40px auto;
        padding: 15px;
    }
}