/**
 * Search Widget Component Styles
 * Reusable search bar matching header design
 * Based on design from Figma/screenshot
 */

/* Base search widget */
.search-widget {
    width: 100%;
}

.search-widget__form {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.search-widget__input {
    flex: 1;
    border: 2px solid #7bbd42;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 20px;
    font-size: 1rem;
    color: #666;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-widget__input::placeholder {
    color: #aaa;
}

.search-widget__input:focus {
    border-color: #66bb3f;
    box-shadow: 0 0 0 3px rgba(102, 187, 63, 0.1);
}

.search-widget__button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7bbd42;
    border: 2px solid #7bbd42;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.search-widget__button:hover {
    background: #6aab36;
    border-color: #6aab36;
}

.search-widget__button:active {
    transform: scale(0.98);
}

.search-widget__button svg {
    display: block;
}

/* ===========================
   Small Size (Sidebar)
   =========================== */
.search-widget--small .search-widget__input {
    height: 48px;
    font-size: 0.95rem;
    padding: 0 18px;
}

.search-widget--small .search-widget__button {
    width: 60px;
    height: 48px;
}

.search-widget--small .search-widget__button svg {
    width: 18px;
    height: 18px;
}

/* ===========================
   Large Size (Header/Main Areas)
   =========================== */
.search-widget--large .search-widget__input {
    height: 50px;
    font-size: 1rem;
    padding: 0 22px;
    min-width: 340px;
}

.search-widget--large .search-widget__button {
    width: 70px;
    height: 50px;
}

.search-widget--large .search-widget__button svg {
    width: 22px;
    height: 22px;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 768px) {
    .search-widget--large .search-widget__input {
        min-width: 200px;
    }

    .search-widget--small .search-widget__input {
        height: 44px;
        font-size: 0.9rem;
    }

    .search-widget--small .search-widget__button {
        width: 54px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .search-widget--small .search-widget__input {
        height: 42px;
        padding: 0 14px;
    }

    .search-widget--small .search-widget__button {
        width: 50px;
        height: 42px;
    }
}