/* Navbar Search */
.nav-search {
    --nav-search-height: 36px;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-search__input {
    height: var(--nav-search-height);
    box-sizing: border-box;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
    width: 150px;
    transition: width 0.3s ease, background-color 0.2s ease;
}

.nav-search__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search__input:focus {
    outline: none;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-search__button {
    height: var(--nav-search-height);
    box-sizing: border-box;
    padding: 0 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: var(--forest-green);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.nav-search__button:hover {
    background-color: var(--secondary);
}

.nav-search__button svg {
    display: block;
}

@media (max-width: 800px) {
    .nav-search {
        display: none;
    }
}

/* Homepage Search Hero */
.search-hero {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.search-hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-hero__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.search-hero__subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.search-hero__form {
    width: 100%;
}

.search-hero__input-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.search-hero__input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-hero__input:focus {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.search-hero__button {
    padding: 0.875rem 1.5rem;
    border: none;
    background-color: var(--forest-green);
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-hero__button:hover {
    background-color: var(--secondary);
}

.search-hero__hint {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

@media (max-width: 600px) {
    .search-hero__title {
        font-size: 1.4rem;
    }

    .search-hero__input-wrapper {
        flex-direction: column;
        border-radius: 6px;
    }

    .search-hero__input {
        border-radius: 6px 6px 0 0;
    }

    .search-hero__button {
        border-radius: 0 0 6px 6px;
    }
}

/* Search Results Page */
.search-results-header {
    text-align: center;
    padding: 1rem 0;
}

.search-results-header h1 {
    font-size: 1.75rem;
    color: var(--primary);
}

.search-results-count {
    margin-bottom: 1rem;
    color: #666;
}

.search-form--results {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    gap: 0.5rem;
}

.search-input--results {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-size: 1rem;
}

.search-input--results:focus {
    outline: none;
    border-color: var(--forest-green);
}

.search-button--results {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--forest-green);
    color: var(--white);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button--results:hover {
    background-color: var(--secondary);
}

/* Search Result Cards */
.search-result {
    margin-bottom: 0.75rem;
}

.search-result__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border: 2px solid var(--forest-green);
    border-radius: 0.5rem;
    background-color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result__link:hover {
    border-color: var(--traffic-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-result__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.search-result__info {
    flex: 1;
}

.search-result__name {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.search-result__tagline {
    color: #666;
    font-size: 1rem;
}

.search-result__logo {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .search-form--results {
        flex-direction: column;
    }

    .search-result__content {
        flex-direction: column;
        text-align: center;
    }

    .search-result__logo {
        order: -1;
        margin-bottom: 0.5rem;
    }
}
