/* Mobile Search - Icon Button Style */
@media (max-width: 768px) {
    .search-bar-icon-btn {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--theme-surface);
        border: 1px solid var(--theme-border);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10;
        color: var(--theme-text-secondary);
    }

    .search-bar-icon-btn:hover {
        background-color: var(--theme-bg);
        color: var(--theme-text-primary);
    }

    .search-bar.mobile-search.is-expanded .search-bar-icon-btn {
        right: auto;
        left: 0;
        top: 0;
        transform: none;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: default;
        pointer-events: none;
    }

    .search-bar-icon-btn .search-bar-icon {
        width: 18px;
        height: 18px;
        pointer-events: none;
    }

    .search-bar.mobile-search .search-bar-input {
        position: absolute;
        right: 0;
        top: 0;
        width: 0;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.875rem;
    }

    .search-bar.mobile-search.is-expanded .search-bar-input {
        width: 100%;
        padding: 0 2.75rem 0 3rem;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
        border: none;
    }

    .search-bar.mobile-search .search-bar-input::placeholder {
        opacity: 0;
    }

    .search-bar.mobile-search.is-expanded .search-bar-input::placeholder {
        opacity: 1;
        color: var(--theme-text-tertiary);
    }

    .search-bar.mobile-search .search-bar-clear {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1.75rem;
        height: 1.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-radius: calc(var(--border-radius) / 2);
        color: var(--theme-text-tertiary);
        font-size: 1.25rem;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s;
    }

    .search-bar.mobile-search.is-expanded .search-bar-input:not(:placeholder-shown) ~ .search-bar-clear {
        opacity: 1;
        pointer-events: auto;
    }

    .search-bar.mobile-search .search-bar-clear:hover {
        background-color: var(--theme-bg);
        color: var(--theme-text-secondary);
    }

    .search-bar.mobile-search.is-expanded .search-suggestions {
        right: 0;
        left: 0;
        width: 100%;
    }
}
