/* Search bar styling */
.search-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    margin-left: 1rem;
}

.search-form {
    display: flex;
    position: relative;
    height: 36px;
}

.search-input {
    width: 200px;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    width: 240px;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
    border-color: #d4af37;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 36px;
    width: 36px;
    background: none;
    border: none;
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #fff;
}

/* RTL support for Arabic */
[dir="rtl"] .search-input {
    padding: 8px 12px 8px 40px;
}

[dir="rtl"] .search-button {
    right: auto;
    left: 0;
}

/* Mobile search styling */
.mobile-search-container {
    width: 100%;
    margin: 1rem 0;
    padding: 0 1rem;
}

.mobile-search-container .search-form {
    width: 100%;
}

.mobile-search-container .search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-search-container .search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-container {
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }
    
    .search-input {
        width: 160px;
    }
    
    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop search on mobile */
    header .search-container {
        display: none;
    }
    
    /* Show mobile search */
    .mobile-search-container {
        display: block;
    }
}
