/* =================================
   Global Search Form Styles
==================================== */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f0f2f5; /* Light grey background */
    border-radius: 20px;
    padding: 0 5px 0 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.search-form:focus-within {
    background-color: #fff;
    border-color: var(--accent-color); /* Use your theme's accent color */
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.3); /* Example shadow */
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    width: 150px; /* Adjust width as needed */
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 200px; /* Expand on focus */
}

/* For Arabic version */
html[dir="rtl"] .search-form {
    padding: 0 15px 0 5px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: var(--accent-color);
}

/* Responsive adjustments for the search form */
@media (max-width: 992px) {
    /* Hides the form on desktop-tablet transition, you can adjust this */
    .desktop-only .search-form {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Moves the search form into the main flow on mobile */
    .header-right-controls {
        flex-grow: 1; /* Allows search form to take space */
    }
    .search-form {
        flex-grow: 1;
        margin: 0 10px;
    }
    .search-input {
        width: 100%; /* Full width inside the form */
    }
    .search-input:focus {
        width: 100%;
    }
}

/* Add this to /assets/css/search-results.css */
.search-result-item .item-content mark {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 3px;
    color: #000;
}

