/* Global CSS Variables */
:root {
    --primary-color: #ad0bf2;
    --secondary-color: #ffffff;
    --accent-color: #000000;
    --search-form-padding: 12px 16px;
    --search-field-padding: 10px 14px;
    --voice-search-btn-size: 50px;
    --voice-icon-size: 24px;
    --search-submit-font-size: 18px;
    --search-submit-padding: 10px 20px;
    --lang-switcher-font-size: 14px;
    --lang-switcher-font-weight: 600;
    --lang-switcher-height: 36px;
}

/* Styling for the Search Form */
.search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: var(--search-form-padding);
    max-width: 600px;
    margin: 15px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

/* Search Wrapper */
.search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

/* Search Field */
.search-field {
    flex: 1;
    padding: var(--search-field-padding);
    border: none;
    outline: none;
    border-radius: 25px;
    background-color: #f9f9f9;
    color: #000000;
    font-size: 1rem;
    min-width: 150px;
}

/* Voice Search Button */
.voice-search-btn {
    background: linear-gradient(135deg, #000000, #000000);
    border: none;
    height: var(--voice-search-btn-size);
    width: var(--voice-search-btn-size);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.voice-search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Voice Icon */
.voice-icon {
    font-size: var(--voice-icon-size);
    color: var(--secondary-color);
}

/* Search Submit Button */
.search-submit {
    background: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: var(--search-submit-padding);
    color: var(--secondary-color);
    font-size: var(--search-submit-font-size);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.search-submit:hover {
    background-color: #444;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Language Switcher */
.lang-switcher {
    background-color: var(--secondary-color);
    font-size: var(--lang-switcher-font-size);
    font-weight: var(--lang-switcher-font-weight);
    height: var(--lang-switcher-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
}

/* Media Query for Desktop */
@media (min-width: 1025px) {
    /* Change the size of the search form */
    .search-form {
        padding: 14px 20px;
        background-color: #f1f1f1; /* Change background color */
    }

    /* Change the color of the submit button */
    .search-submit {
        background: #000000;
        color: #fff;
    }

    .search-field {
        font-size: 1.1rem; /* Larger font size */
    }
}

/* Media Query for Tablet */
@media (max-width: 1024px) {
    /* Make search form smaller and change padding */
    .search-form {
        padding: 12px 16px;
        background-color: #ecf0f1;
    }

    .voice-search-btn {
        height: 45px;
        width: 45px;
    }

    .search-submit {
        font-size: 16px;
        padding: 8px 16px;
    }

    /* Adjust language switcher */
    .lang-switcher {
        font-size: 12px;
    }

    .search-field {
        font-size: 1rem;
    }
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 15px;
        background-color: #ffffff;
        padding: 10px 12px;
    }

    .voice-search-btn {
        height: 40px;
        width: 40px;
    }

    .search-submit {
        font-size: 14px;
        padding: 6px 12px;
    }

    .search-field {
        font-size: 0.9rem;
    }

    .lang-switcher {
        font-size: 10px;
        padding: 0 8px;
    }
}

/* Media Query for Extra Small Mobile */
@media (max-width: 480px) {
    /* Customize for smallest screens */
    .search-form {
        padding: 8px 10px;
    }

    .voice-search-btn {
        height: 35px;
        width: 35px;
    }

    .search-submit {
        font-size: 18px;
        padding: 4px 10px;
    }

    .lang-switcher {
        font-size: 8px;
        padding: 0 4px;
    }

    .search-field {
        font-size: 0.9rem;
    }
}
